Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP 400 Bad Request

Status
Not open for further replies.

Rouslan

Technical User
Sep 7, 2002
27
CA
I have recently installed PHP 4.3.2 and tried setting it up with Apache 2.0 as a CGI binary on Windows XP but for some reason whenever I try to load a file ending with .php a "The page cannot be found" page shows up. I added the three lines:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

to my httpd file like it tells you on the php.net site. I even tried changing the third line to "c:/php/php.exe". I could have sworn it was working before when I tried accessing a mysql database but now I am not sure. I did not authorize access to any database so naturally I recieved some sort of error when I tried to access one. I don't remember exaclty what it was but is different form the one I get now. After I figured out how to authorize one (the GRANT command) I found I couldn't run any PHP files, even if it doesn't have any database commands. At this point I have no idea what the problem is so if you want specific information about something just ask.
 
Try to download PHPTriad, it is executable binary for windows platforms and it will install Apache, PHP and MySQL for you. You don't need to make any additional configuration to view php pages (but of course you can, for example for better security). I use it at home and its very useful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top