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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forbidden...

Status
Not open for further replies.

vacunita

Programmer
Aug 2, 2001
9,166
MX
I've been tasked to configure PHP 4.4.2 with Apache 2.2.4 on a windows NT4 server.

I've configured PHP and Apache on many machines Win98, Winxp always without problems.

But now i keep getting this 403 Forbidden eror. You don't have permissions to access \php\php.exe\nameoffile.php on this server.
And have no idea why.

I'm configuring it as a CGI, yes i know of the hazards, but it has to be done this way.

I have added the Script Alias, and Addtype directives to the apache conf file. I've even compared it to the setup on my laptop (I have apache in PHP configured on my laptop for mobile web development) and its the same with the appropriate directories. It should work, but it doesn't? any idea why?

Any help is appreciated.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
This file "\php\php.exe\nameoffile.php" is not in apache's web space. The file MUST be within a directory defined in httpd.conf with a <Directory> container. Your version of php should also be defined in your mime.types or by using the AddHandler directive.

 
The file is inside an apache webspace. its inside the document root. its a simple phpinfo() file, just to test that it works.

I call it like this:

localhost:8080/info.php and i get the error. If i call the index.html file in the same directory it works fine.

The /php/php.exe/nameofifle.php is what i get as part of the 03 Forbidden error message.

Everything else is configures as supposed to be in the conf file. the addhandler, addtype, scriptalias etc...

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Finally got it, seems i was missing a "/" slash in the Scriptalias definition. Its working now.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
A typo was gonna be my next guess. From your explanation, it all seemed like it should work.

 
Yeah, its really hard to spot those typos sometimes.

Anyway thanx for your help.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top