did you install the cgi or the module version. From the readme that comes with php4.5
Installation:
For detailed installation instructions please refer to PHP.NET and/or the PHP Windows Mailinglist.
They can be found under Support. We will only describe common notes about some extensions. First of all, only the CGI is really stable under windows! Since we don't use any other webserver, we'll describe the basc installation of php4 on apache If you got PHP working with another webserver and you're willing to share the HowTo please submit the installation instructions to us.
Apache:
1. Stop the Apache Webserver.
Edit the httpd.conf and put in these lines, modified to your environment:
2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) directory, overwritte any older file!
for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
- Copy the php.ini-dist to your sysroot, this is the directory where you installed windows and rename it to php.ini.
- Edit the php.ini to fit your needs.