Re: Invalid URI in request error when trying to setup PHP3 withApach e on NT
| From: | Andy Hoffman | Date: | Wed, 02 Aug 2000 18:17:08 +0000 |
| Subject: | Re: Invalid URI in request error when trying to setup PHP3 withApach e on NT | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1486@lists.php.net to get a copy of this message | ||
Michael Josephson wrote:
> I've got a standard install of Apache 1.3.12 up and running and have
> unzipped PHP3 into e:\php3 and added:
>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3 .phtml
> Action application/x-httpd-php3 e:/php3/php.exe
>
> to httpd.conf
>
> I'd like php scripts to work from any directory so I haven't tried to setup
> a ScriptAlias.
Michael, as far as I've seen, the ScriptAlias item only has to do directly with
the httpd.conf file in this instance. Setting up the ScriptAlias is more for
Apache to easily locate your PHP.EXE than it is to limit your use of php files
to one particular directory.
I have the standard ScriptAlias, Action and AddType lines in my httpd.conf under
Apache 1.3.12, and as long as the folder can allow scripts to run, you're fine
to put php files wherever you like. The ScriptAlias does not limit you in
placement of php files on your server.
Also, on a hunch, try putting your Action line BEFORE your AddType lines... as
the Action registers a handler for a particular type, and you're trying to
associate extensions to that type before it's handled. Of course, that's a
guess. Try adding the ScriptAlias AND move the Action line above the AddType(s)
and see what happens.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
office: LVL G1.2607
email: andy.hoffman@bms.com
phone: 609-252-5788