Well,
After a few days, I made PHP 4.0.1 work in Apache 1.3.12 for Win32. Do you want to know how??? Believe me, its EASY!!!
Step 1: Firt of all, download from php.net the win32 binaries of PHP 4.0.1 (.0.2). Install it on a directory in your HDD called /php4/.
Next, do as the readme says in the PHP4 directory. Copy the php4ts.dll and msvcrt.dll to the c:\windows\system directory (\system32 for WinNT/2K).
Copy the php.ini-optimized to the c:\windows and rename it to php.ini. Change the following line of code:
extension_dir = c:\php4 ; directory in which the loadable extensions (modules) reside
enable_dl = On
Step 2: Download Apache for 1.3.12 for Win32 from apache web site.
Install the server.
Edit the httpd.conf file. Here we will add CGI execution, PHP execution and SSI execution.
First: CGI execution
Add the following lines:
ScriptAlias /cgi-local/ "C:/pathtowwwroot/cgi-local/"
<Directory "C:/pathtowwwroot/cgi-local/">
AllowOverride None
Options ExecCGI
</Directory>
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
Second: PHP4
Add the following lines:
ScriptAlias /php4/ "C:/php4/"
<Directory "C:/php4/">
AllowOverride None
Options ExecCGI
</Directory>
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
Third: Lets add some SSI
Add the following lines:
AddType text/html .shtml
AddHandler server-parsed .shtml
Please note that you still have to edit the httpd.conf to point to the directories you want. Place a test.php3 file on a directory inside your wwwroot with the <?php phpinfo(); ?> line and you should get PHP!!
Good luck!!