Apache2/PHP MySQL extension doesn't work/exist?

2 posts / 0 new
Last post
#1 Fri, 09/18/2009 - 21:08
KeithGS

Apache2/PHP MySQL extension doesn't work/exist?

Hello, I'm trying to enable the mysql extension to run connect to databases via PHP but I cannot find the extensions for it in the control panel, or know how to enable it for PHP/Apache2

example of what PHP returns:

[QUOTE] Fatal error: Call to undefined function mysql_connect() in /var/www/php.php on line 2 [/QUOTE]

PHP is saying the MySQL Module doesn't exist (MySQL itself works fine)

How can I enable it?

Thanks.

Sat, 09/19/2009 - 08:48
andreychek

I'm not sure which distro you're using -- but it sounds like you need either to install either the php5-mysql of php-mysql package (which one depends on your distro).

-Eric

Topic locked