Page 1 of 1

Fatal error:

Posted: Fri Jul 09, 2004 3:31 pm
by binary_w0lf
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 3

This is the error i get, when i try to access my local mysql server, at my Fedora Core 1. Searching around the net, and my desktop, i have discovered, that the PHP version my server is running, is not compiled with the mysql module.

Therefor , i downloaded php 4.something and compiled it with mysql, and still i get nothing..
The most logical thing, is that im doing something wrong in the installation, most propably, the new php version is installed in a directory that does not affect the previous version..

Please advice...

Posted: Fri Jul 09, 2004 3:36 pm
by markl999
You may just need to edit your php.ini and add/uncomment extension=mysql.so then restart the webserver.

Posted: Fri Jul 09, 2004 3:52 pm
by binary_w0lf
tryed that.. in didnt work, i think php needs recompiling at the current moment.. i need advice on that..

Thanks for the interest though!

Posted: Fri Jul 09, 2004 4:26 pm
by redmonkey
I have posted on a few threads recently regarding compiling PHP it may be worth searching under my username for 'compiling' or 'building'.

If you are building MySQL you will need to run 'make install-all-headers' in order for PHP to locate the required library and header files for MySQL during the compiling of PHP.

After building PHP did you check that your webserver (I'm guessing Apache?) config file had been updated to locate the correct installation of PHP?