Running old PHP/MySQL/Apache versions
Posted by: Chris98 (---.bb.sky.com)
Date: April 05, 2020 07:38PM

Good day,


For some very old software (around 2002) that I need to use, I need to use PHP 4.2.0, Apache 2.0.x and obviously whatever MySQL version was compatible at the time.

I've tried downloading the old PHP version from the old releases page, but it doesn't really seem to include many of the files that I need and I somehow doubt that this will work.

My WampServer version is 3.0.6. Is this even possible what I want to do? Does anyone have any suggestions or guidance for me as to how I can get all three working on my locaclhost?



Edited 1 time(s). Last edit at 04/05/2020 07:39PM by Chris98.

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Otomatic (Moderator)
Date: April 05, 2020 08:27PM

Hi,

With Wampserver 3, the oldest versions that can work are PHP 5.3.5 and, with reservations, Apache 2.2.34.

Wampserver 2.0 runs with PHP 5.2.5 and Apache 2.2.6

Wamp5.1.0 runs with PHP 5.0.0

I don't think there is any version of Wampserver that has run with a PHP 4.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Chris98 (---.bb.sky.com)
Date: April 05, 2020 08:42PM

Hmm thanks for your reply. Really appreciate it. Are you able to walk me through the steps for introducing both of those packages onto Wampserver 3 (namely PHP 5.3.5 and Apache 2.2.34)?

I might as well try it I guess and see if it is compatible. The last time I saw a website running this software in development was roughly 2011-2012, if I remember correctly. So it's possible they could have ported it to a PHP 5 server I guess.

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Otomatic (Moderator)
Date: April 05, 2020 09:56PM

Hi,

I'm not with my computer right now. I write on Smartphone..
I write a detailled answer tomorrow morning. How to run PHP 5.3.15 and Apache 2.2.34.
Because I only give procedure I do myself.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Chris98 (---.bb.sky.com)
Date: April 05, 2020 10:10PM

Thank you!

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Otomatic (Moderator)
Date: April 06, 2020 11:32AM

Hi,

How to install Apache 2.2.34 and PHP 5.3

- Uninstall Wampserver 32bit if already installed.
Verify that the services have been deleted and, if necessary, delete them via a control console using the following commands:
sc delete wampapache
sc delete wampmysqld
sc delete wampmariadb

- Verify that all VC ++ packages are installed and with the latest versions.
The VC2008 packages for Apache 2.2 and php 5.4 and 5.3 are absolutely necessary.
To do this, use the tool:
Checks VC++ packages installed
Do not use a previously loaded tool. Make a new download to make sure you are using the correct version.
To download missing packages, do not rely on Microsoft links, they are not reliable, download packages on http://wampserver.aviatechno.net in section Visual C++ Redistribuable Packages
Do not forget that if you have a 64 bit Windows, you must install both 32 and 64 bit versions of each package.
You must install each package "as an administrator", so right-click the exe file and then run as Administrator.

As I'm afraid Apache 2.2 will have problems running with Wampserver 3.2.0, we'll install an older version of Wampserver.
- Download the Wampserver 3.1.4 32bit installer
This installer is not available through a link on a page, here is the download link:
http://wampserver.aviatechno.net/files/install/wampserver3.1.4_x86.exe

- Launch the installation by right-clicking on the downloaded file and then "Run as administrator".
As far as I'm concerned, I've installed on G:\wamp to possibly take into account for the following explanations.

- Launch Wampserver by its shortcut and check that everything works correctly :
-- Access localhost home page
-- PhpMyAdmin access

- We're going to deactivate what we won't need, there's no need to bother!
-- Right-Click -> Wamp Settings -> Allow MariaDB to uncheck it.

- Exit Wampserver

Apache 2.2.34 can only run with PHP 5.4.45 maximum, so we will download the various addons needed.
- Apache 2.2.34 32 bit
http://wampserver.aviatechno.net/files/apache/wampserver3_x86_addon_apache2.2.34.exe
- PHP 5.4.45
http://wampserver.aviatechno.net/files/php/wampserver3_x86_addon_php5.4.45.exe
- PHP 5.3.29
http://wampserver.aviatechno.net/files/php/wampserver3_x86_addon_php5.3.29.exe
- MySQL 5.1.72
http://wampserver.aviatechno.net/files/mysql/wampserver3_x86_addon_mysql5.1.72.exe
- PhpMyAdmin 4.0.10.14
http://wampserver.aviatechno.net/files/apps/wampserver3_x86_x64_phpmyadmin4.0.10.14.exe

- Start installations of all downloaded files (5) by right-clicking on the downloaded file and then "Run as administrator".
-- You have to install the PHP 5.4.45 addon first, otherwise Apache 2.2.34 cannot be installed.
Note: Make sure that the installation is done in the Wampserver 3.1.4 installation folder (G:\wamp)
- PHP 5.4.45
- Apache 2.2.34
- PHP 5.3.29
- MySQL 5.1.72
- PhpMyAdmin 4.0.10.14

- Launch Wampserver
- Switching to PHP 5.4.45
Left-Click -> PHP -> Version -> 5.4.45
- Switch to MySQL 5.1.72
Left-Click -> MySQL -> Version -> 5.1.72
- Switch to Apache 2.2.34
Left-Click -> Apache -> Version -> 2.2.34
There will be a request from Windows to allow access to Apache 2.2.34
If we don't answer "Yes", the firewall will block http, so icon not green.
- And now we can switch to PHP 5.3.29.
Left-click -> PHP -> Version -> 5.3.29

Here we are, we're fine with Apache 2.2.34 and PHP 5.3.29
There may be some php_error.log and/or apache_error.log warnings

Fonctionne avec PHP version 5.3.5
http://wampserver.aviatechno.net/files/php/wampserver3_x86_addon_php5.3.5.exe
Important notes :
-- To launch PhpMyAdmin, do not use the Wampmanager menu (which would launch an incompatible version) but use the PhpMyAdmin 401014 link on the Wampserver home page 'http://localhost/'. The user is root and there is no password.

Procedure written in real time at the same time as I performed all the installations and manipulations on my Windows 10 Pro 64 bit.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 04/06/2020 11:49AM by Otomatic.

Options: ReplyQuote
Re: Running old PHP/MySQL/Apache versions
Posted by: Lerdic (---.rev.poneytelecom.eu)
Date: April 07, 2020 05:54AM

I think you can use PHP 5.2 and Apache from https://neard.io/modules/php/.


Options: ReplyQuote


Sorry, only registered users may post in this forum.