we will be solving this our message where your php installation appears to be missing the mysql extension which is required by wordpress
Table of Contents
Method 1 – temporarily solve
so, this error usually happens when you do a migration to a new hosting which is running the new version of PHP, while your WordPress still running the old version of WordPress. So, to temporarily solve the issue.
PHP selector

you will need to log in to your new hosting cPanel and on your cPanel, scroll down to the part where you see the PHP selector
PHP conf lowest version

on the PHP selector you will need to roll back your PHP to the lowest version, you can try to match the version with the version that you are previously hosted
but if you cannot find that it can try the lowest version work on your way up. Click update to set it
Okay once you have done that go back through your website and do a refresh on the website as you can see here, we have successfully recovered the website. Now this is a temporary solution.
Method 2 – permanently solve
WordPress update

To permanently solve this issue, we need to update on our WordPress this is to make sure there are the latest WordPress will support the latest PHP that we are hosted on
cPanel PHP latest

Okay now we have successfully upgraded to the latest version WordPress we go back to the cPanel to use the latest PHP version click on back, select the latest PHP version and click update.
Once we have done that we go back to our website and we try to refresh our website to see if this is supported okay it seems that we are hitting issues even if the latest version of WordPress and the latest version of PHP so we need to drill down further to solve the error.
Method 3
A good place to look for is you need to look if there are any PHP dot in on your root website footer or you need to check your .htaccess for any customized code
so, from here onwards there are no one-size-fits-all solutions and issue it depends very much on what you are facing and you need to troubleshoot accordingly
you may also revert to the previous PHP version but I would recommend upgrading PHP as there will, there may be compatibility issues in the future
debug or checking the error log
so to start the troubleshooting or we go back to the cPanel

next click on file manager

next I’ll do a reload to make sure I’m getting the latest file from the hosting site so the best way to troubleshoot this is to a debug or checking the error log.
Now there are some PHP warning over the log but I am pretty should not cause the WordPress to fail so the best way to troubleshoot this is to look for the htaccess file or any PHP dot in file at the root folder of your website
- Read More: