I've finally found a way, by installing php4 as a cgi.
Here are the instructions to do so :
1 - Download the Windows binary of the version you would like to emulate here [
fr.php.net]
2 - Create a subdirectory named php4 in your EasyPHP/apache/cgi-bin/ directory
3 - Extract the php.exe, php4ts.dll, sapi/php4apache.dll, php.ini-recommended and the extensions directory in this new directory
4 - Rename php.ini-recommended to php.ini (this will be the php.ini used with php4)
5 - Edit your apache config file and add the line ScriptAlias /php4/ "${path}/apache/cgi-bin/php4/" after the allready defined ScriptAlias (~line 379)
6 - Create a new virtualhost for the website you would like to run in php4. Mine is as follow :
<Virtualhost *:80>
ServerName foobar
ServerAdmin me@localhost
DocumentRoot "${path}/www/foobar.com"
<Directory "${path}/www/foobar.com">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AddHandler php4-script .php .html .htm
Action php4-script /php4/php.exe
</Virtualhost>
It seems to be working for me, I have a phpinfo() of version 4.4.3.
Don't forget to edit the new php.ini if you have to tweak the settings.
Edited 1 time(s). Last edit at 10/28/2009 05:13PM by Pixelastic.