I need a server for a testing/migration project running PHP 5.3. Yes I know its old and outdated and so on and so forth yet I still need this. What would be the recommended way? - should I go with debian squeeze? Its old and outdated (I think this was the last Debian release which had PHP 5.3) - should I go with debian Jessie and use snapshots.debian.org? Its going to be horrible pinning all needed packages I basically need to simulate an old environment with a surprisingly NEW MYSQL-SERVER of 5.6 PHP 5.3.X and Apache2.X - any suggestions on the most elegant way to achieve this? This is for testing and for the migration phase of a website to newer versions.
I would install a normal Debian 8 ISPConfig server, and then compile PHP 5.3 as additional PHP version.
hm, thanks. does that not also require a specific apache2 version I also need to compile? also, when compiling, do I need to then compile every single php module I need too? any links to a how-to compile? maybe this as an inspiration or do you have a better one? https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/
The apache version is the one that ships with Debian. You compile just PHP with the modules that you need. there are various tutorials available on that topic, see ISPConfig documentation page: https://www.ispconfig.org/documentation/
Thanks, I'll go look. if I compile my own php 5.3 can it be the only one? You mentioned "additional". Btw. this is a standalone system no ISPCFG
No, it can be an additional PHP version only. If you need it as main system php, then you probably have to use an old debian version.
@till can you give me a tip please? I found a tutorial by Falko for Centos 6.2 with php5 and mod_fcgid and despite following it to a T it simply displays the php code instead of rendering in in my browser. Any pointers? I msut say though that tut is old and I am using Centos 6.9 Any hints are very much appreciated! => https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-centos-6.2