Your PHP installation appears to be missing the MySQL extension which is required by WordPress
Q. I'm installing Wordpress blog system under Debian Linux and getting an error which read as follows:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress
How do I fix this problem under Debian Linux?
A.. First make sure MySQL server is running, type the following command at a shell prompt:
# /etc/init.d/mysql status
If MySQL is not running, enter:
# /etc/init.d/mysql start
If MySQL is not installed, type the following command to install MySQL server:
# apt-get install mysql-server
Make sure MySQL module for php5 is installed:
# dpkg --list | grep php5-mysql
To install php5-mysql module enter:
# apt-get install php5-mysql
Just restart Apache2 web server:
# /etc/init.d/apache2 restart
Now PHP support for MySQL should work without a problem. Also make sure you set localhost or 127.0.0.1 as MySQL hostname while performing wordpress installation.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- What is MySQL?
- PHP not connecting to a MySQL database server
- Redhat Enterprise Linux (RHEL) install and configure MySQL database
- Ubuntu Linux install or add php gd support to Apache
- Securing MySQL server
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: /etc/init.d/apache2, /etc/init.d/mysql, apt-get command, debian linux, debian php5 mysql support, hostname, install php5 mysql module, mysql module, mysql server, php installation, php5, web server ~ Last updated on: April 25, 2008




April 27th, 2008 (3 weeks ago) at 8:32 pm
I’m having the same problem trying to install on my localhost in Windows XP environment - any tips on how to fix that? I tried the above and that didn’t work. I’m running Apache 2 and PHP MyAdmin 5.2 (I believe). Everything else works fine and I can create and access MySQL databases in PHP MyAdmin without any issues.