PHP4 installation problem - Please Help!

From: Date: Mon, 18 Sep 2000 17:04:58 +0000
Subject: PHP4 installation problem - Please Help!
Groups: php.install 
Request: Send a blank email to php-install+get-2448@lists.php.net to get a copy of this message
I decided to install Apache for my development web server. I also need to give this server the avility to process php code, so I downloaded the php4 binaries 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), 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!! Agustín Chernitsky InterEmpresa Thanks, Agustin Chernitsky. _______________________________________________________________________ Free Unlimited Internet Access! Try it now! http://www.zdnet.com/downloads/altavista/index.html _______________________________________________________________________

« previous php.install (#2448) next »