Hi Everyone!
I decided to install Apache for win 32 for my development web server. I also need to give this server the avility to process php code, so I downloaded the php4 binaries for win 32 from php.net.
I installed apache with no problems and made it run normally. The problem is with PHP4. It seems that I can't make it work. I followed all the guides I found on the net, but they don't work. I decided to ask here to see if someone knows.
Php is installed in c:\php4\ directory.
The main web site is installed in c:\wwwroot\mainsite\
the httpd.cnf file has the following variables modified:
ScriptAlias /cgi-local/ "C:/wwwroot/mainsite/cgi-local/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
Now, this enables CGI, SSI and should enable PHP processing. Still, when I try to view a page with the phpinfo() command (a test.php3 file), it returns a 500 error (if it is placed inside the /cgi-local) or a 404 error if I place the file in the main root of the site.
The log shows this error:
File does not exist: c:/wwwroot/mainsite/php4/php.exe/test.php3 for 404
c:/wwwroot/mainsite/cgi-local/test.php3 is not executable; ensure interpreted scripts have "#!" first line
(2)No such file or directory: couldn't spawn child process: c:/wwwroot/mainsite/cgi-local/test.php3
Any help would be great!! Thanks!!