Re: PHP on Windows XP problem
| From: | Mike Maltese | Date: | Tue, 29 Jan 2002 08:32:11 +0000 |
| Subject: | Re: PHP on Windows XP problem | ||
| References: | 1 2 3 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5803@lists.php.net to get a copy of this message | ||
I've been able to get it to work without ScriptAlias, however it's been a
while and I've been using the Apache module for some time.
Try this:
ScriptAlias /php/ "f:/usr/"
AddType application/x-httpd-php .php .php3 <-- Put both extensions on
this line
Action application/x-httpd-php "/php/php.exe"
You might want to experiment with the module. It's been pretty stable for me
on Win2K Pro and Server.
----- Original Message -----
From: "Poul Theodorsen" <poul.theodorsen@mail.tdcadsl.dk>
To: "Mike Maltese" <mike@php.d2g.com>
Sent: Monday, January 28, 2002 11:37 PM
Subject: Re: [PHP-INST] PHP on Windows XP problem
> No, it didn't remove the problem - it just changed it. now I get this
error
> instead :
>
> [Tue Jan 29 08:21:22 2002] [error] [client 127.0.0.1] Invalid URI in
request
> GET /myphp/test.php HTTP/1.1
>
> I used this in the config file :
> # ScriptAlias /php/ "/usr/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> Action application/x-httpd-php "F:/usr/php.exe"
>
> The error seems to be caused by the explicit path in Action .... - if I
> change it back to "Action application/x-httpd-php "/usr/php.exe", I get
the
> same error as before :
>
> [Tue Jan 29 08:23:57 2002] [error] [client 127.0.0.1] File does not exist:
> f:/www/femw.org/web/usr/php.exe/myphp/test.php
>
> For some reason the path from the Action directive is inserted between the
> web root and the path to test.php. I suppose that the idea was that
"Action"
> shoud only tell Apache where to find php.exe. Am I wrong???
>
> Still more confused
> poul
>
>