php 5.3, 5.4, 5.5 cannot compile against openssl 1.1.0 or higher. Try php 5.6 or higher.

cristian

Verified User
Joined
Feb 18, 2013
Messages
31
Hi guys
Is possible to install php 5.3 on DA with centos 8 ?
I have a fresh install Centos 8 and DA and i have to move some websites that use php 5.3 from old VPS with centos 6 and php 5.3 - custombuild 1.


I tried to setup:
php1_release=7.3
php1_mode=php-fpm
php2_release=5.6
php2_mode=php-fpm
php3_release=5.3
php3_mode=fastcgi


but i get this error

php 5.3, 5.4, 5.5 cannot compile against openssl 1.1.0 or higher. Try php 5.6 or higher.


can i downgrade to openssl 1.0 ? is this the solution ?
i don't really need 7.3 and 5.6 is fine by me if i can install 5.3


Thank you
 
 
Thank you smtalk. God bless you for your kindness.


Worked for me after i switch to openssl 1.0.
The link for openssl-1.0.2s is not working now i added new link -
---

cd /usr/local/directadmin/custombuild
mkdir -p custom/php
cp -p configure/php/configure.php53 custom/php/configure.php53
mkdir -p custom/fpm/.custom_openssl
touch custom/fpm/.custom_openssl
perl -pi -e 's|with-openssl|with-openssl=/usr/local/lib_http2|g' custom/php/configure.php53
wget https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2s.tar.gz
tar xzf openssl-1.0.2s.tar.gz
cd openssl-1.0.2s
./config --prefix=/usr/local/lib_http2 no-ssl2 no-ssl3 zlib-dynamic -fPIC
make depend
make install
cd /usr/local/directadmin/custombuild
./build set php1_mode php-fpm
./build set php1_release 5.3
./build php n
./build rewrite_confs


---
 
Back
Top