You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by "Keijser, Jan Just" <KE...@logica.com> on 1999/10/07 18:20:03 UTC
RE: general/5077: Path problem when using directory Alias and CGI
The following reply was made to PR general/5077; it has been noted by GNATS.
From: "Keijser, Jan Just" <KE...@logica.com>
To: "'apbugs'" <ap...@apache.org>
Cc: Subject: RE: general/5077: Path problem when using directory Alias and CGI
Date: Thu, 7 Oct 1999 12:12:09 -0400
This is not a bug, it's a *feature* of PHP: whenever you put a .php file in
a directory marked ExecCGI, PHP is run as a CGI and for security reasons it
will not accept command-line parameters. This is causing the problem (the
same thing happens on Linux/UNIX, BTW).
To solve this problem, turn *OFF* the ExecCGI part of the directory
containing your .php scripts.
Here's what I use:
ScriptAlias /php/ "C:/php/"
ScriptInterpreterSource registry
<Directory "C:/php">
AllowOverride None
Options None
</Directory>
You would have to add
Alias /project "d:/projects"
and you're all set.