Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    13

    Exclamation Php and PDO Extension

    Hi.

    Im trying to install Drupal on one the following server:
    WHM 11.28.64
    CENTOS 5.5 x86_64 standard on hadid
    PHP Version 5.2.14


    But im unable to install it because the drupal installation gives me the following error:
    PHP extensions Disabled
    Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
    •pdo

    Database support Disabled
    Your web server does not appear to support PDO (PHP Data Objects). Ask your hosting provider if they support the native PDO extension. See the system requirements page for more information.


    So im missing pdo support.

    I have tried to install DPO extension via WHM -> Software -> Module Installers -> PHP Extensions but i recive the following error:
    Failed to download pear/Structures_DataGrid within preferred state "stable", latest release is version 0.9.1dev1, stability "beta", use "channel://pear.php.net/Structures_DataGrid-0.9.1dev1" to install
    Warning: popen() has been disabled for security reasons in OS/Guess.php on line 242
    Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242
    Warning: fgets(): supplied argument is not a valid stream resource in OS/Guess.php on line 243
    Warning: fgets(): supplied argument is not a valid stream resource in /usr/lib/php/OS/Guess.php on line 243
    Warning: pclose(): supplied argument is not a valid stream resource in OS/Guess.php on line 252
    Warning: pclose(): supplied argument is not a valid stream resource in /usr/lib/php/OS/Guess.php on line 252
    pear/Structures_DataGrid_DataSource_PDO requires package "pear/Structures_DataGrid" (version >= 0.8.4)
    No valid packages found
    install failed


    So my question is what is the easiest way to install PDO to work with mysql?

    Thanks for the replies and info.
    /cas
    bombing for peace
    is like
    fu...ng for virginity

  2. #2
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Php and PDO Extension

    Hello,

    You need to recompile php to enable the module PDO. You can do it with the help of easy apache from whm or using the cpanel script /scripts/easyapache .

    You can also install PDO using source with the help of phpize.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    1

    Default Re: Php and PDO Extension

    Hi, I know this is an old post, but I would like to know how to configure this on cpanel, I can´t install drupal for this reason, what exactly do I have to add here /scripts/easyapache ?

    Please help me.

    Thank you

    Quote Originally Posted by LinuxTechie View Post
    Hello,

    You need to recompile php to enable the module PDO. You can do it with the help of easy apache from whm or using the cpanel script /scripts/easyapache .

    You can also install PDO using source with the help of phpize.

  4. #4
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Php and PDO Extension

    Hello,

    Inorder to install PDO you need to execute /scripts/easyapache .

Similar Threads & Tags
Similar threads

  1. PHP 5 PDO Support
    By pphillips in forum New User Questions
    Replies: 5
    Last Post: 02-15-2010, 12:39 AM
  2. 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
  3. php and pdo?
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-29-2006, 04:24 PM
  4. Pdo / Php 5.05
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2006, 03:44 AM
  5. Replies: 0
    Last Post: 01-30-2006, 06:34 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube