• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
CloudLinux : PHP Selector – missing the MySQL extension

CloudLinux : PHP Selector – missing the MySQL extension

Maddy Mattocks

  • 3 min read
CloudLinux : PHP Selector – missing the MySQL extension

Generating audio, please wait...

We came across the following error message on all sites, hosted on a server configured with cPanel, CloudLinux PHP Selector (CL Selector) and Percona as DBMS. Issue was happening on only one server and not on others though.


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

Some sites showed the error message of inability to load “pdo_mysql” and further investigations revealed that other two extensions mysqli and mysql also failed to load when checked through a simple phpinfo script. To our surprise all those modules were enabled in the check box available in the “PHP Version Selector” in cPanel. But those modules were not shown as loaded in the phpinfo page for all php versions.

Resolution Process

We tried running cagefsctl –rebuild-alt-php-ini, but that didn’t help.

We checked the php extension directory shown in the phpinfo page and for the version it was /opt/alt/php53/usr/lib64/php/modules

Below is the output of directory listing for these extensions

lrwxrwxrwx 1 root root 40 Nov 5 00:19 mysqli.so -> /opt/alt/php53/etc/percona5.5/mysqli.so
lrwxrwxrwx 1 root root 39 Nov 5 00:19 mysql.so -> /opt/alt/php53/etc/percona5.5/mysql.so
lrwxrwxrwx 1 root root 43 Nov 5 00:19 pdo_mysql.so -> /opt/alt/php53/etc/percona5.5/pdo_mysql.so

Since the issue spurted quite recently and file modification was quite recent ie Nov 5 ( Today too is Nov 5 ;-)) , we checked for possibilities of any recent updates which could have led for such an issue

Yum update log showed the following entries:

Nov 05 00:19:51 Updated: alt-php53-mysql-meta-1-14.el6.x86_64
Nov 05 00:19:52 Updated: 1:alt-php54-pear-1.9.5-1.el6.noarch
Nov 05 00:19:52 Updated: alt-php55-mysql-meta-1-12.el6.x86_64
Nov 05 00:19:52 Updated: alt-php52-mysql-meta-1-15.el6.x86_64
Nov 05 00:19:52 binutils-2.20.51.0.2-5.42.el6.x86_64: 100
Nov 05 00:19:53 Updated: 1:alt-php55-pear-1.9.5-1.el6.noarch
Nov 05 00:19:53 Updated: 1:alt-php53-pear-1.9.5-1.el6.noarch

Hence we concluded that the recent update broke the CloudLinux php and it needs to be addressed.

Another server with the same configuration without the update showed the links as given below


rwxrwxrwx 1 root root 41 Jul 11 05:21 pdo_mysql.so -> /opt/alt/php53/etc/mysql5.5/pdo_mysql.so

If you check the paths, you can see that the modified version shows /opt/alt/php53/etc/percona5.5/mysql.so , while the non updated version shows /opt/alt/php53//etc/mysql5.5/pdo_mysql.so

Hence we presume that the new update created the link to the percona folder, which CloudLinux failed to load .

Fix:

As simple work around we did the following fix. A perfect solution would be to update the Percona.

cd /opt/alt/php55/usr/lib64/php/modules
rm -f mysqli.so mysql.so pdo_mysql.so

cross checked the existence of directories in the destination path

root@server [/opt/alt/php53/etc]# ls
./ mariadb10/ mysql5.5/ pear.conf php.d@ rpm/ ../ mysql5.0/ mysql5.6/ percona5.5/ php.d.all/ cron.daily/ mysql5.1/ pear/ percona5.6/ php.ini

Recreated the links to the corresponding folders

[/opt/alt/php55/usr/lib64/php/modules]# ln -s /opt/alt/php53/etc/mysql5.5/pdo_mysql.so pdo_mysql.so
[/opt/alt/php55/usr/lib64/php/modules]# ln -s /opt/alt/php53/etc/mysql5.5/mysqli.so mysqli.so
[/opt/alt/php55/usr/lib64/php/modules]# ln -s /opt/alt/php53/etc/mysql5.5/mysql.so mysql.so

It fixed the issue 🙂 Try to use the cloudLinux PHPselector

PS: Re-added the posts after a few 404s from Google and other search engines.

Get 24/7 expert server management

  • cPanel
  • Linux
  • MySQL

Christmas and New year Special Offer – 25% Life Time Discount on all Plans

Christmas and New year Special Offer – 25% Life Time Discount on all Plans
  • Special Offers
logo

Customers are not always right, but they’re never wrong

SupportSages Logo
  • Customer Care
  • General
  • Training
logo

Free 30 Day Trail for Dedicated and Semi-Dedicated WebHosting Support Teams

Free 30 Day Trail for Dedicated and Semi-Dedicated WebHosting Support Teams
  • Linux
  • Special Offers
logo

Hottest offer ever – Dedicated SysAdmin staff from just $299 per month

SupportSages Logo
  • General
  • Special Offers
logo

Posts by Maddy Mattocks

Maddy has been with the industry for the last 12 years and is an Account Manager for few of our customers. He loves to optimize the webserver, database and is interested in setting up high performance clusters.