Your PHP installation appears to be missing the MySQL …
-
This is a solution to the fairly common problem:
Your PHP installation appears to be missing the MySQL which is required for WordPress.
Provided of course you do have apache/php/mysql installed and mostly working already.
If you do, one solution is to place this bit of code in wp-settings.php before the check for MySQL which will load the mysql module if it’s available:
if (!extension_loaded('mysql'))
{
if (!dl('mysql.so')) {
exit;
}
}However, next time you upgrade WordPress you will need to remember to re-hack this code into wp-settings.php (unless it gets added to an official release someday).
The better solution is to edit your php.ini (generally in /etc/php4/apache or similar under linux) and add the mysql module to the list of extensions at the very end of the file with:
extension=mysql.so
Restart Apache and you should be all set.
I’ve tested this specifically on Debian Sarge with Apache 2.0.54, MySQl 4.0.24, and PHP 4.3.10-15
I’m not taking credit for it, as Herman had most of the solution in this post ( https://comox.textdrive.com/pipermail/wp-hackers/2005-April/000821.html ), I’m just expanding on it. Hopefully this will make it onto the wiki and save folks some time in the future.
Also, minor nitpick, but “…missing the MySQL which…” needs to be re-written. Either lose ‘the’ or add ‘module’ for a better sounding sentance.
- The topic ‘Your PHP installation appears to be missing the MySQL …’ is closed to new replies.