Installation, Configuration, & Upgrades  :: 
Fatal error: Call to undefined function: mysql_connect()
 Top

  • Fatal error: Call to undefined function: mysql_connect() in /usr/local/myweb/mysite/pnadodb/drivers/adodb-mysql.inc.php on line 108

    This is the error I get on my first invocation of this freshly installed PostNuke. This particular line states the following:

    $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);

    So here is what happens, I navigate to http://www.mydomain.com/install.php and I get the language selection display, I select english and press the button, nothing happens (I'm not sure if anything more is supposed to happen.) so I close down the browser and then try to connect to index.php and get the error noted above.

    I've read the faq's and the README and don't see anything that I'm not already doing. I own this server so it's not a matter of not having permissions or anything like that, at least I don't think the permissions on my files are set to anything out of the ordinary.

    I'm a seasoned PHP-Nuke user and don't have any issues running phpnuke so I'm at a loss to determine what may be wrong here. This is my first attempt at using PostNuke so any help any of you can provide would be appreciated.

    I've done several searches through this forum and found only small things related to this kind of error, but nothing (that I could find anyway) that may give an answer to my particular problem.

    I'm using the following:

    FreeBSD 5.3
    apache 1.3
    mysql 4.0
    PostNuke 0.714_2

    Thanks for your help in advance.

    StressTest
  • I ran into simillar issues with my FreeBSD machine. The fix for me was to do install mod_php4 and do a fresh install with the --with-mysql option.
  • Yep, seems you just don't have MySQL support in your PHP.
  • If you are doing a first time install you should use the latest version of PostNuke - 0.750.
This list is based on the users active over the last 60 minutes.