Fix “Missing MySQL Extension” with PHP Selector

If you are using CloudLinux and PHP selector, sometimes you will get the following error after changing native PHP to other versions.

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

You can fix this by the following command.

cagefsctl --setup-cl-selector
cagefsctl --remount-all
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix lveinfo database error of CLN

Run the following command: service lvestats stoptar -zcvf /root/lveinfo_backup_$(date...

How to Install KernelCare on cPanel/WHM server

To install KernelCare, you need to log in with the root user on your cPanel server. Check for...

Switching all cPanel acc/s to "inherit" PHP version

You can change all cPanel users to inherit with this CLI command: for each in `cat...

How to fix issues like PHP selector not available

Some of our clients face the issues like "PHP selector not available" on cPanel accounts of their...

CloudLinux installed, but still showing CentOS

Some of our clients face the issue, that's why we're writing the tutorial to fix it. First of...