PHP exec. Problem after Install of Apache 2.0 & PHP 4.2.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Samuels
Forum Newbie
Posts: 2
Joined: Sun Aug 11, 2002 11:58 am

PHP exec. Problem after Install of Apache 2.0 & PHP 4.2.

Post by Samuels »

Hi,

I'm stuck with a problem and was hoping for some help!

Just installed Apache HTTP Server Version 2.0 with PHP 4.2.2.
Now as far as I can see it is configured correctly. PHP from the command line works correctly, but requesting a .php file as a url gives me a 404 error.

When I look at the Web Server logs this is what is shows:

[Sun Aug 11 17:02:18 2002] [error] [client x.x.x.x] File does not exist: D:/apache/php/php.exe/html/Company/loginpage.php


The relative paths are correct and the files exist! What I can see though is there is no space after the php.exe.

Can you Help?

Regards,
Dave. :(
User avatar
sam
Forum Contributor
Posts: 217
Joined: Thu Apr 18, 2002 11:11 pm
Location: Northern California
Contact:

Post by sam »

try using backslashes in the filename... D:\Apache\php\php.exe
Samuels
Forum Newbie
Posts: 2
Joined: Sun Aug 11, 2002 11:58 am

Post by Samuels »

Didn't like it, responded with: 400 - Bad Request.

Apache Log:

[Sun Aug 11 20:36:03 2002] [error] [client x.x.x.x] Invalid URI in request GET /html/Company/consult.php HTTP/1.1

Cheers.
Post Reply