Fix missing MySQL 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"

Or,

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

Note:

The exact error might be different on your website.

 

Solution


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...

Fix incorrect PHP handler or session path

  Using an incorrect PHP handler, session path or other PHP directives can cause various errors...

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...

How to fix errors after migrating WordPress?

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