Your PHP does not seem to install the MySQL extension "processing method necessary to run WordPress

Source: Internet
Author: User
Tags install php php and mysql

Transferred from: http://www.xuebuyuan.com/1549022.html

This is already an old problem, some people use their own server installed WordPress program, will appear "Your PHP does not appear to be installed to run WordPress necessary MySQL extension" such problems, including me, a few days ago, relocation server, reinstall system, Reinstall version Php,mysql, and then restore the site data, the above problems appear, "Baidu, you Know", and precisely this Baidu, toss a day, find out, method or the same, are copied to copy, really is people copy people, kill people, most of the site and not some technology The method mentioned in this article is to verify, but to blindly turn.

The online approach is broadly like this:

(1) For Windows Server, find PHP installation location, find php.ini, open

The first step:

Confirm that the following extensions are enabled

Extension=php_mysql.dll

Extension=php_mysqli.dll

Step Two:

; On Windows:

; Extension_dir = "ext" extension file storage location, confirm that the above extension files are stored in a folder called "ext", if not, download

Step three, service restart, problem solving

(2) For Linux servers, the workaround on the network is as follows

First step: Login with SSH, open php.ini

#vi/etc/php. ini

Step Two: Add thephp. ini

Extension=mysql.so

Step three: Find the following in php.ini

Extension_dir = "XXXXXXX"

Note: XXX refers to the extended installation directory, CENTOS64-bit hosts are generally installed in Extension_dir = "/usr/lib64/php/modules"

Fourth step: Find this Extension install directory, confirm whether there is mysql.so this file, if not, download

Restart the service,

To be sure, for most servers, the above method can be solved

However, my Linux server, using the corresponding method, found invalid, and online find is a kind, want to go, my server in the re-install CentOS, PHP and MySQL installed together, but the version is lower, PHP directly upgrade, MySQL upgrade failed, uninstall after reloading the new version, I wonder if there's something missing in upgrading PHP and installing MySQL,

With the Shh command.

Rpm-qa|grep-i PHP

Get the following results

Wbm-php-pear-1.5-1

php-mbstring-5.*

php-gd-5.*

php-xmlrpc-5.*

php-common-5.5.*

php-cli-5.*

php-imap-5.*

php-pgsql-5.*

php-snmp-5.*

php-odbc-5.*

php-pdo-5.*

php-5.*

php-xml-5.*

Even less the next Php-mysql, treatment method: Direct Installation

Yum Install Php-mysql

Restart Service Problem Resolution

Your PHP does not seem to install the MySQL extension "processing method necessary to run WordPress

Related Article

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.