Installing PDO_MYSQL PHP extension on CPanel?

后端 未结 3 1002
眼角桃花
眼角桃花 2021-01-15 10:46

I recieved this error while installing Magento on a customer\'s server, \'PHP Extension \"pdo_mysql\" must be loaded\'. How would one go about installing/enabling this exten

3条回答
  •  庸人自扰
    2021-01-15 11:06

    You can enable PDO in cPanel if you have cloudlinux installed. In cPanel search for PHP Version and on the resulting screen select and enable PDO and finally select save. * http://docs.cloudlinux.com/index.html?using_php_selector.html

    If you do not have CloudLinux and PhpSelector installed you will need an administrator account to install PDO through easyapache. In WHM follow this guide:

    Enabling PDO in Easyapache

    1. Log in to WHM ( http://domain.com/whm )
    2. Goto WHM »Software »EasyApache (Apache Update)
    3. Select "Previously Saved Config (** DEFAULT **)" and click "Start customizing based on profile"
    4. On the "Apache Version" page click "Next"
    5. On the "PHP Version" page click "Next"
    6. On the "Short Options List" page click"Exhaustive Options List"
    7. On the "Exhaustive Options List" ensure that PDO, PDO sqlite and PDO MySQL are selected.
    8. Then Click Build on the bottom of the page.

    PS. I note that you are on 11.24.5-STABLE. This is a extremely old version of WHM/cPanel. You should update your server as this version of cPAnel is no longer supported by cPanel.

提交回复
热议问题