RedHat Enterprise Linux 4
Relevant packages installed:
php-4.3.9-3.8
php-mysql-4.3.9-3.8
MySQL-server-standard-5.0.15-0.rhel4
httpd and mysql daemons are both running.
I have a phpinfo() file that shows up perfectly. Okay then, httpd and php are working.
However, when I pull up a simple script to connect to mysql, I get:
PHP Code:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/connect.php on line 4
When I first got this error, I read that you had to install the php-mysql package, so I did that, but the error persists. Any help would be appreciated.
EDIT: Forgot to mention that although php was installed with the distro, it indeed has "--with-mysql=shared,/usr" as seen in phpinfo()...
Maybe the "/usr" is the problem since the mysql data directory is /var/lib/mysql?