faqts : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

27 of 38 people (71%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Configuring PHP4 on Apache 1.3.11 Win98 SE, get error 400, Bad request..

Jan 22nd, 2001 10:51
Andrew Threlfall, Arnis Seene,


In httpd.conf

Specify the ScriptAlias line with the path to php eg:
ScriptAlias /php/ "C:/apache/php/"

Then the application/x-httpd-php line should read something like:
Action application/x-httpd-php /php/php.exe

The problem occurs if you try to specify the full path in the Action 
line (and use the alias), so a line like:
Action application/x-httpd-php c:/apache/php/php.exe
will screw up.