I need using PHP 5.2, how to do it?

Horse

Verified User
Joined
Aug 23, 2020
Messages
8
I need using PHP 5.2, how to do it?
Only using a VPS with directadmin for an old website, that using PHP 5.2, cant upgrading the website


I already tried these 3 methods :

- downgrade to Custombuild 1.2 (i read php 5.2 is available in this Custombuild version) https://forum.directadmin.com/threads/downgrade-cb2-0.53005/post-309243

cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/1.2/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build


in the Custombuild page http://IP:2222/admin/plugins/custombuild?tab=edit-options its already says Custombuild 1.2, but the page is just keep reloading


- i reinstalled Directadmin from scratch again, and tried this https://forum.directadmin.com/threa...-and-5-3-together-both-cgi.47849/#post-245558

Okay, this will be easier I think:
Code:
cd /usr/local/directadmin/custombuild
wget -O build http://www.custombuild.eu/build-PHP53ASPHP6.sh
chattr +i build
./build set php6_as_php5 yes
./build set php5_ver 5.2
./build set php6_cgi yes
./build php n

This way you should get PHP 5.2 (default) + PHP 5.3 running on the system.


but the Custombuild page just keep reloading too


- tried https://docs.directadmin.com/webservices/php/general#i-want-to-have-a-different-version-of-php
but for the second command line : ./build set php1_release 5.2
the output says: 5.2 is not a valid setting for php1_release option.



please help, is there method/info that working for using PHP 5.2?
In latest or older Directadmin version
 
Last edited:
You can install PHP 5.2 using the CloudLinux PHP selector with their system's software. It's $14/month to have access to a secure version of PHP 5.2.
 
Cant using Cloudlinux, the license $10-$14/month is a lot more expensive than Directadmin Personal license, $2/month
And only the PHP version i need, the other Cloudlinux features will not used

Directadmin Custombuild 2 have PHP 5.3,
why not adding PHP 5.2 too, at least just the tutorial to adding it manually.
There are should be some other clients & sites that still need PHP 5.2 for old scripts too, that will asking same question
 
you can always try to build it manually by many tutorials at google, without CloudLinux you may try to install old PHP in old OS, like centos7.
Nowadays php 5.x very old, php 7.3 marked as old too, in few months php 8 will came. For such old websites we keep one old server with centos 6 and another with cloudlinux and centos7.
 
It's either like Zhenyapan says, or teach your customers to be safe so they either upgrade their scripts or buy new versions.
 
  • Like
Reactions: Aar
Back
Top