Re: PHP4 Refuses to Run in Any Directory Except c:\PHP4
| From: | Alan Popow | Date: | Mon, 14 May 2001 01:58:30 +0000 |
| Subject: | Re: PHP4 Refuses to Run in Any Directory Except c:\PHP4 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7528@lists.php.net to get a copy of this message | ||
On Sun, 13 May 2001 20:02:11 -0500, you wrote:
>I followed the install directions for php4 exactly but a simple phpinfo page
>wouldn't work. So I extracted all the files to c:\php instead and changed
>the paths accordingly, then it worked. So I started to change all the
>directory references back and I can change them all except for this line:
>Action application/x-httpd-php /php4/php.exe
>
>If I change it to Action application/x-httpd-php /dir/dir/dir/php.exe it
>gives me a type 400 error. I know that is the correct path however.
>Anybody else had this problem?
In the 'Action application' line, the /php4/ that appears gets substituted
by whatever you had in the initial ScriptAlias line.
In other words, if your scriptalias says
ScriptAlias /php4/ /dir/dir/dir/
Then for Apache, the action line written as:
Action application/x-httpd-php /php4/php.exe
becomes effectively:
Action application/x-httpd-php /dir/dir/dir/php.exe
If, instead, you type the action line with the '/dir/dir/dir/', then to
apache I think it pretty much ends up being meaningless gibberish since
/dir/dir/dir/ has never been defined as an alias.
Alan