I wish to share my experience with running PHP 5.6 on Debian 12. As you all probably know, Debian 12 is comming with OpenSSL 3 and PHP 5.6 is not going to run with it. Therefore you need to run two Open SSL installations. Here is how to do it:
1. Download openssl 1.1.1 tar.gz from the official website (https://www.openssl.org/source/openssl-1.1.1u.tar.gz). Untar and ungz it. Then do configure it the following way:
This will install it in /openssl-1.1.1 directory.
2. Download the Libssl 1.1 package. It is no longer available in the Debian repository, so you can't install it with apt. You need to manually download it. Here is the link: http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_amd64.deb
Then install it the following way:
3. Test if Openssl 1.1.1 works. Go to the bin folder and test it out.
4. Install PHP 5.6:
5. Now edit the custom config file:
\
and add
remove this (it will not compile icu and intl):
They are the last two lines - it won't compile with them.
Ready. Build php 5.6 and it will work.
1. Download openssl 1.1.1 tar.gz from the official website (https://www.openssl.org/source/openssl-1.1.1u.tar.gz). Untar and ungz it. Then do configure it the following way:
Code:
./config --prefix=/openssl-1.1.1 --openssldir=/openssl-1.1.1
make
make install
This will install it in /openssl-1.1.1 directory.
2. Download the Libssl 1.1 package. It is no longer available in the Debian repository, so you can't install it with apt. You need to manually download it. Here is the link: http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_amd64.deb
Then install it the following way:
Code:
dpkg -i libssl1.1_1.1.1n-0+deb11u4_amd64.deb
3. Test if Openssl 1.1.1 works. Go to the bin folder and test it out.
4. Install PHP 5.6:
Code:
cd /usr/local/directadmin/custombuild
mkdir custom
cd custom
mkdir php
mkdir fpm
touch /usr/local/directadmin/custombuild/custom/fpm/custom_openssl
cd ../../
cp -p configure/php/configure.php56 custom/php/configure.php56
5. Now edit the custom config file:
Code:
vi custom/php/configure.php56
and add
Code:
--openssldir=/openssl-1.1.1
remove this (it will not compile icu and intl):
Code:
--with-icu-dir=/usr/local/icu \
--enable_intl
They are the last two lines - it won't compile with them.
Ready. Build php 5.6 and it will work.
Last edited: