These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Apache2/PHP MySQL extension doesn't work/exist? on the new forum.
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.
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