note 37630 deleted from install.windows by betz
| From: | betz@php.net | Date: | Fri, 23 Apr 2004 10:59:21 +0000 |
| Subject: | note 37630 deleted from install.windows by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68632@lists.php.net to get a copy of this message | ||
Note Submitter: fok@seznam.cz
----
When I installing PHP on my Windows machine I couldn't get it working. All what I get was an
error in Apache error log.
couldn't spawn child process: c:/php/test.php
c:/php/test.php is not executable; ensure interpreted scripts have "#!" first line
The problem was in my configuration added to httpd.conf
ScriptAlias /php/ "c:/PHP/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "C:/PHP/php.exe" #this is wrong
Action application/x-httpd-php "/php/php.exe" #this is correct
Directive Action doesn't use absolute directories but relative to httproot.
FOK