Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Solution:
This occur because only php and php-cli is installed. This can be verified from the php info page. There will be no MySQL entry.
To fix, just install php-mysql . This can be installed by command,
# yum install php-mysql
Now, mysql extension of php will be created. This can be verified from php extension directory. To get the extension directory, execute the command,
# php -i | grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules ===> Extension directory in my case.
Now,
#ls /usr/lib64/php/modules
curl.so json.so mysqli.so pdo_mysql.so phar.so zip.so
fileinfo.so pdo.so pdo_sqlite.so sqlite3.so mysql.so ===> mysql extension is installed.
Alternatively, this could be verified from the command,
#php -m | grep mysql
mysql
Now, proceed with the WordPress installation
Solution:
This occur because only php and php-cli is installed. This can be verified from the php info page. There will be no MySQL entry.
To fix, just install php-mysql . This can be installed by command,
# yum install php-mysql
Now, mysql extension of php will be created. This can be verified from php extension directory. To get the extension directory, execute the command,
# php -i | grep extension
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules ===> Extension directory in my case.
Now,
#ls /usr/lib64/php/modules
curl.so json.so mysqli.so pdo_mysql.so phar.so zip.so
fileinfo.so pdo.so pdo_sqlite.so sqlite3.so mysql.so ===> mysql extension is installed.
Alternatively, this could be verified from the command,
#php -m | grep mysql
mysql
Now, proceed with the WordPress installation