Question enabling PHP modules for custom mod to keep PHP 5.2

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,339
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,339
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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.
:)