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