Installing PDO_MYSQL PHP extension on CPanel?

后端 未结 3 986
眼角桃花
眼角桃花 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:14

    I'm using Magento CE 1.7, CentOS 6, and WHM 11.38, and here's what I did to resolve the 'PHP Extension "pdo_mysql" must be loaded' error I received during my Magento install:

    1. Open WHM and go to Home » Software » Easy Apache (Apache Update)
    2. Scroll to the bottom and select "Start customizing based on profile"
    3. Click "Next step" twice
    4. Scroll to the bottom and select "Exhaustive Options List"
    5. Select checkboxes for PDO and PDO MySQL, and rebuild Apache
    6. Go to Magento's root, copy php.ini.sample to php.ini
    7. Open the newly created php.ini file and add the following:

      extension=pdo.so
      extension=pdo_sqlite.so
      extension=sqlite.so
      extension=pdo_mysql.so

    This might be a good time to restart Apache using terminal (# service httpd restart). Hope that helps!

提交回复
热议问题