Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Default Installing PDO_MYSQL - PDO drivers not loading

    I ran easyApache with PDO and PDO mysql enabled.

    When I view PHPINFO, configure command includes

    Code:
    '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-sqlite=shared'
    it shows one table for PDO which shows PDO Drivers under the heading PDO Support, and 'no value' under the heading Enabled

    When I check PHP.INI I see the folllowing:


    Code:
    extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
    ..
    extension=pdo.so
    extension=pdo_sqlite.so
    extension=sqlite.so
    extension=pdo_mysql.so
    and in the above directory I have the following files:
    Code:
    -rwxr-xr-x 1 root root  136008 Mar 13 19:30 pdo_mysql.so*
    -rwxr-xr-x 1 root root  304656 Mar 13 19:30 pdo.so*
    -rwxr-xr-x 1 root root 1703444 Mar 13 19:30 pdo_sqlite.so*
    -rwxr-xr-x 1 root root 1307195 Mar 13 19:30 sqlite.so*
    I'm not sure why the PDO drivers are not enabled?

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Default Re: Installing PDO_MYSQL - PDO drivers not loading

    Well I added the extension section of the php.ini to the local php.ini for the account in question, and it is working now. Strange?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Installing PDO_MYSQL - PDO drivers not loading

    If you have a local php.ini file, you must copy the full php.ini to that local account copy, then revise any select settings you want changed. If you do not copy the full php.ini file, several options will not be included in the account's php.ini at all (including IonCube Loader, Zend Optimizer, and so on).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Nov 2010
    Location
    Mexico
    Posts
    43
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Installing PDO_MYSQL - PDO drivers not loading

    I'm having the same problem. I have register globals off for main php.ini for security reasons. Im unable to make PDO module work. I have some clients using Magento and its mandatory for them to make it work. Unable to make local php.ini's work... even using suphp on htaccess will fail...

    any ideas how to solve this? HELP!!

    Edit: forgot to say I have copied the whole php.ini in user folder, double checked extensions were there, checked the server and PDO is there (in fact at first it wasnt so I compiled again with PDO) but no luck...

    I have CSF installed and I think I may have disabled something for security reasons that is blocking this.
    Last edited by luigidelgado; 05-14-2011 at 08:21 PM. Reason: Forgot to mention important info

Similar Threads & Tags
Similar threads

  1. PDO_mysql
    By jamest123 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-28-2008, 07:59 AM
  2. --with-pdo-mysql=shared or --with-pdo-mysql=/usr
    By internetfab in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-14-2007, 09:01 AM
  3. pdo_mysql
    By Olate in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 11-13-2007, 09:10 PM
  4. PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)?
    By PondRicefied in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2007, 09:36 PM
  5. Connect to mySQL from DSN using ODBC drivers??
    By franki in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-03-2003, 02:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube