PHP Installation Php5-mysql Expansion

Source: Internet
Author: User

Your PHP installation appears to be missing the MySQL extension which are required by WordPress Error and solution by VIVEK gite on APRIL, updated In Debian/ubuntu, MYSQL, PHP, troubleshooting

I ' m setting up WordPress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

Your PHP installation appears to be missing the MySQL extension which are required by WordPress

How does I fix this problem under Debian or Ubuntu Linux?

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 a 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
Next, restart the Apache2 Web server:
# /etc/init.d/apache2 restart
Now PHP support for MySQL should work without a problem. Also make sure your set localhost or 127.0.0.1 as MySQL hostname while performing WordPress installation.

PHP Installation Php5-mysql Expansion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.