Installing PDO_MYSQL PHP extension on CPanel?

I got this error while installing Magento on client server, "PHP Extension" pdo_mysql "must be loaded". How would one install / enable this extension using CPanel Accelerated?

The server information looks like this:

  • cPanel Version 11.24.5-STABLE
  • cPanel Build 38506
  • Apache version 2.2.13 (Unix)
  • PHP version 5.2.8
  • MySQL version 5.0.81-community
  • I686 architecture
  • Linux operating system
  • Kernel version 2.6.18-128.1.6.el5
  • cPanel Pro 1.0 (RC1)

Thank!

+2


source to share


3 answers


You can enable PDO in cPanel if you have cloudlinux installed. In cPanel find your PHP version and on the screen that appears select and enable PDO and finally select save. * http://docs.cloudlinux.com/index.html?using_php_selector.html

If you don't have CloudLinux and PhpSelector, you need an administrator account to install PDO via easyapache. In WHM follow this tutorial:

Enabling PDO in Easyapache



  • Login to WHM ( http://domain.com/whm )
  • Goto WHM "Software" EasyApache (Apache update)
  • Select "Previously Saved Configuration (** DEFAULT **)" and click "Start Profile Based Configuration"
  • On the Apache Version page click Next
  • On the PHP Version page click Next
  • On the "Short Options List" page, click on "Comprehensive Options List"
  • In the "Exhaustive list of options", make sure PDO, PDO sqlite and PDO MySQL are selected.
  • Then click Build at the bottom of the page.

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

+6


source


I am using Magento CE 1.7, CentOS 6 and WHM 11.38, and here is what I did to allow the "PHP extension" pdo_mysql "to be loaded" that I got during the Magento installation:

  • Open WHM and go to the Easy Apache Software home page (Apache update)
  • Scroll down and select "Start Profile Based Configuration"
  • Click Next Step twice
  • Scroll down and select "Comprehensive Options List"
  • Select checkboxes for PDO and PDO MySQL and rebuild Apache
  • Go to Magento root, copy php.ini.sample file to php.ini
  • 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 the terminal (# service httpd restart). Hope it helps!

+2


source


I don't think you can do this on a shared host or using cPanel.

Convince the web host to install it for you.

+1


source







All Articles