Fix missing MySQL extension or PHP extension or session error

 

The most common reason for the error is using an invalid PHP handler/directive in the [.htaccess] and [.user.ini] files on CloudLinux-based servers. When you access the site, it will display the following error:

 

Error:

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

Please check that the mysqli PHP extension is installed and enabled."

Or,

"PHP Warning: session_start(): open(/var/cpanel/php/sessions/ea-php56/sess_03i13, O_RDWR) failed: No such file or directory"

Or,

PHP extension missing: You have enabled the PHP extension in "Select PHP Version/PHP.ini," but it has not been enabled, or it is missing in PHPInfo.

Or,

Error 503. The server or the resource is busy.

Or,

403 Forbidden Access to this resource on the server is denied!

Note:

The exact error might be different on your website.

 

Solution 01: Reset PHP Extensions


  1. Go to cPanel > Select PHP Version > Extensions.

  2. Click "Reset to default".

  3. Done! Check your website.

  4. If the issue persists, apply Solution 02.

 

Solution 02


Fix incorrect PHP handler or session path

 

  • 406 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset or regenerate the .htaccess file in WordPress?

A [.htaccess] file is a configuration file that tells your server how to handle certain things on...

How to fix the 403 forbidden error in WordPress?

In this article, we will show you how to easily fix the 403 forbidden error in WordPress. What...

How to deactivate plugins when not able to access WordPress admin?

Often during troubleshooting, you may need to deactivate all plugins and activate them one by...

Fix incorrect PHP handler or session path

  Server software and configuration can vary from provider to provider, which in turn causes...

How to fix errors after migrating WordPress?

  Migrations from cPanel-based servers are usually seamless. But sometimes, a few issues might...