Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.