The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PDO_MYSQL installation

Discussion in 'General Discussion' started by The WebDruid, Apr 11, 2007.

  1. The WebDruid

    The WebDruid Member

    Joined:
    Sep 1, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Just wondering how to get this installed on a server? We've got a customer who's wanting to use PDO_MYSQL in one of their programs but only has access to PDO_SQLITE.

    I've tried using PECL to install it with no luck:
    /bin/sh is available for all users (permissions of 755), so I'm not sure why it doesn't like the permissions of it.

    Any help would be quite appreciated.


    Thanks,

    Andrew
     
  2. The WebDruid

    The WebDruid Member

    Joined:
    Sep 1, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Never mind, I worked out how to do it. It's all working nicely now.

    Download the file from pecl.php.net -> extract -> phpize -> ./configure -> make -> make install, then we had to move the file into the right directory.


    Thanks anyway,

    Andrew
     
  3. intel352

    intel352 Well-Known Member

    Joined:
    Nov 25, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NC, USA
    thanks for that post, it was helpful :)
     
  4. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    it's quite easy with cPanels new easyapache3 and rawopts

    Just do (for all php5 versions):
    Code:
    echo "--with-pdo-mysql=shared" >> /var/cpanel/easy/apache/rawopts/all_php5
    then build apache, dont forget to select PDO.

    Then go into php.ini and add:
    Code:
    extension=pdo.so
    extension=pdo_mysql.so
     
  5. hamerr

    hamerr Member

    Joined:
    Sep 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    And what if I own a reseller account and i want to enable the PDO extension ? And what about the regular users such as domain owners ? Is there and easy way to enable it ? Thanks :confused:
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    As this is something that would affect the entire server, it cannot be done by anyone other than a root-level user.
     
Loading...

Share This Page