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.

Question enabling PHP modules for custom mod to keep PHP 5.2

Discussion in 'EasyApache' started by Kent Brockman, May 23, 2014.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello friends!
    I have this box where we strongly need to keep PHP 5.2 because its hosting several old dynamic websites programming is not able to be updated.

    I read here that you can set the modules to compile by default in /var/cpanel/easy/apache/rawopts/all_php5:

    Code:
    --with-curl 
    --with-gd
    --enable-exif
    --with-gettext
    --with-imap=/opt/php_with_imap_client/
    --enable-mbstring
    --with-mysql-sock=/var/lib/mysql/mysql.sock
    --with-mysqli=/usr/bin/mysql_config
    --with-openssl=/usr
    --enable-pdo=shared
    --with-pdo-mysql=shared
    --with-pdo-sqlite=shared
    --with-sqlite=shared
    --with-mime-magic
    --enable-soap
    --with-pspell
    --enable-wddx
    --with-xmlrpc
    --with-xsl=/opt/xslt/
    --with-kerberos
    --with-curl
    --enable-zip
    Well, it's any limitation here? can I add more modules if needed?
    I know I have other modules which are not in this list, like:
    • bz2
    • ctype
    • ftp
    • mcrypt
    Are them included by default?

    And a last question: since the server was compiled by an ex-exployee who I cannot ask about this, how do I test if it is compiled with or without fcgi?

    Thanks!
    (I know it's not recommended to keep PHP 5.2, but you know, sometimes there are exceptions)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I have seen other users successfully compile additional extensions with the custom PHP 5.2 version, however it's important to note that it's not officially supported by cPanel. I believe you would use "--enable-fastcgi" to use FastCGI but I have not personally tested that. In all likelihood, it might be easier to force users to upgrade their scripts to support newer versions of PHP.

    Thank you.
     
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Michael, I understand. But when you have 200 customers with OLD websites, it's not that easier to upgrade everybody. It would be better if cPanel allowed to choose between two versions of PHP, like some years ago you used to do.
    :)
     
Loading...

Share This Page