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...
Fatal error:
Moderator: General Moderators
- binary_w0lf
- Forum Newbie
- Posts: 14
- Joined: Mon Mar 22, 2004 11:48 am
- Location: Greece : Salonika
- binary_w0lf
- Forum Newbie
- Posts: 14
- Joined: Mon Mar 22, 2004 11:48 am
- Location: Greece : Salonika
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?
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?