Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


php 5.2.17 on cpanel and curl
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

php 5.2.17 on cpanel and curl

SaahibSaahib Host Rep, Veteran
edited August 2014 in Help

I have a stupid requirement where I have to use PHP version 5.2.17 until some old sites incompatible with new version of PHP get updated.

So, this server runs cPanel.. cPanel now don't support 5.2.17, but with custom_opt_mods you can still get 5.2.17 support.
Here is the link how it has to be done and this is what I have done:
http://syslint.com/syslint/how-to-install-php-5-2-on-cpanelwhm-11-40/

Now problem is that cPanel easyapache wont' work good with 5.2.17 custom_mod. So to compile it with desired option, you have to edit this file:

/var/cpanel/easy/apache/rawopts/all_php5

I have following in it :

-disable-fileinfo
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-libxml
--enable-pdo=shared
--enable-sockets
--prefix=/usr/local
--with-curl=/opt/curlssl/
--with-imap=/opt/php_with_imap_client/
--with-imap-ssl=/usr
--with-kerberos
--with-jpeg-dir=/usr/lib64/
--with-gd
--with-libdir=lib64
--with-libxml-dir=/opt/xml2/
--with-mcrypt=/opt/libmcrypt/
--with-mysql=/usr
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-mysqli=/usr/bin/mysql_config
--with-openssl=/usr
--with-openssl-dir=/usr
--with-pdo-mysql=shared
--with-pdo-sqlite=shared
--with-sqlite=shared
--with-pic
--with-png-dir=/usr/lib64/
--enable-zip
--with-zlib
--with-zlib-dir=/usr/lib64
--with-pcre-dir=/opt/pcre-8.20
--with-pcre-regex=/opt/pcre-8.20

Now problem I am facing is with curl..

My phpinfo shows curl support as :

But here developer needs like this :

So, any idea what I need to do ?
Earlier it was compiled with --with-curl option, I recompiled with --with-curl=/opt/curlssl but no difference.

Comments

  • try --with-curl=/opt/curl or try just --with-curl

  • Can you run those sites in a chroot or containered environment and use redirect rules?

    Using 5.2.x is just begging for your site to be hacked.

Sign In or Register to comment.