Click to See Complete Forum and Search --> : Unable to process PHP on Apache


Anon
07-17-2000, 10:13 AM
I am running Apache v1.3.12 on a WinNT4 workstation, and apache is running fine.
But i am not able to get PHP4 to work. The errormessage is ususally 'file not found', and often error 404 or 500.

My PHP config lines from the apache config:

ScriptAlias /php/ "c:/docroot/php/"
AddType application/x-httpd-php3 .php
Action application/x-httpd-php "/php/php.exe"

According to other posts, this should be it. But this gives me a 500, and the errorlog reads:
(2)No such file or directory: couldn't spawn child process: c:/internweb/php/test.php

Can anyone help me here...

Regards Johnny

Anon
07-17-2000, 10:42 AM
Erhm... I just solve the problem just now... Stupid me... :-)

ScriptAlias /php/ "c:/php4/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

This really was the trick... The script alias should point to the path for the php.exe executable, and NOT for the root of your PHP files... hmmzz

Well... Im off PHP'ing :-)

Johnny