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

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
recompile php from easy apache. login to whm with root >> click on easy apache >> select the active profile and click on customize >> under php extension you should see mysql extension >> enable / install it >> and you are done.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

The error suggests that the PHP that the website is using is missing the extension required for the Wordpress website to connect to the database, so installing this missing module is the resolution for the issue you are facing..

In addition to the Easyapache execution, you can also do that from the shell where you can execute the below command on your cPanel server, which will the required module for you..

# yum install ea-php*-mysql*
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
459
113
UK
cPanel Access Level
Root Administrator
@fino47

If you are a website owner with no root administrative access to WHM or to a root shell, the advice, so far, given in this thread will be of no use to you directly.

Check in your cPanel php.ini config that the extensions are not disabled (in which case you can simply enable them)

If you do not see the extensions you need, you will need to contact your hosting provider, and ask them to recompile Apache with the required extensions.
 
Last edited:
  • Like
Reactions: cPanelMichael