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.

PHP Extensions

Discussion in 'General Discussion' started by jfha73, Apr 17, 2010.

  1. jfha73

    jfha73 Member

    Joined:
    Apr 17, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Does anybody have any information about how to install new extensions for PHP using cPanel?

    I am trying using the PHP PEAR Packages, but it doesn't give me some of the core extensions and also if I have one, how do I compile it and install it using cPanel?

    Thanks.
     
  2. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    You should be able to install pear/PECL packages via the WHM under:

    Main >> Software >> Module Installers

    if that doesn't work via SSH might work

    Code:
    pear install PACKAGENAME
    You can also download the source and normally install it with

    Code:
    tar xzf PACKAGENAME.tar.gz
    cd PACAKGENAME
    phpize
    ./configure
    make
    make install
    if you cannot get pear via CLI or WHM to install it for you.
     
  3. SeanHogan

    SeanHogan Member

    Joined:
    Jan 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    what about other php extensions?
    Not pear.

    Specifically, how would you add pdo_mysql extension
     
  4. nightaddix

    nightaddix Active Member
    PartnerNOC

    Joined:
    Jul 7, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    You should be able to locate that in the 'Exhaustive options list' by running /scripts/easyapache and re-building your Apache / PHP installs. You can read more about EasyApache @ The Apache Web Server and cPanel & WHM

    Good luck !
     
Loading...

Share This Page