Jump to content

Recommended Posts

Installed and configured, I have created a folder 'webs' in the C:/webs, have another subfolder 'test' under webs folder, C:/webs/test/index.php. For some reasons I've got those errors when I tested.
In Firefox I've got this :

Forbidden
You don't have permission to access /php/php-cgi.exe/index.php on this server.

In IE I've got:You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page.

You can click Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer

Can someone help me to explain what was it going on and how to make it worked? Thanks.
Link to comment
https://forums.phpfreaks.com/topic/10388-problem-of-localhost/
Share on other sites

I think you have done something wrong during setting up the http server.
you need to set the root document folder to whatever folder you wanted.
As for your error, it look like your root folder is /php/php-cgi.exe/ and because there is no such folder, browser return an unauthorized error.

regards
Link to comment
https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38754
Share on other sites

[!--quoteo(post=376817:date=May 24 2006, 04:14 PM:name=begeiste)--][div class=\'quotetop\']QUOTE(begeiste @ May 24 2006, 04:14 PM) [snapback]376817[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Installed and configured, I have created a folder 'webs' in the C:/webs, have another subfolder 'test' under webs folder, C:/webs/test/index.php. For some reasons I've got those errors when I tested.
In Firefox I've got this :

Forbidden
You don't have permission to access /php/php-cgi.exe/index.php on this server.

In IE I've got:You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page.

You can click Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer

Can someone help me to explain what was it going on and how to make it worked? Thanks.
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38790
Share on other sites

[!--quoteo(post=377082:date=May 25 2006, 01:03 PM:name=Karthikeyan)--][div class=\'quotetop\']QUOTE(Karthikeyan @ May 25 2006, 01:03 PM) [snapback]377082[/snapback][/div][div class=\'quotemain\'][!--quotec--]
/php/php-cgi.exe/index.php php-cgi.exe/index.php please check the settings of httpd.conf in apache folder.
[/quote]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Sorry man, there is no such script " /php/php-cgi.exe/index.php " in the httpd.conf in apache folder, now whatelse should I look for?Thanks.[/quote]
Link to comment
https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38979
Share on other sites

[!--quoteo(post=377267:date=May 26 2006, 05:31 AM:name=burhankhan)--][div class=\'quotetop\']QUOTE(burhankhan @ May 26 2006, 05:31 AM) [snapback]377267[/snapback][/div][div class=\'quotemain\'][!--quotec--]
in httpd.conf search "DocumentRoot" and set it to

DocumentRoot "C:/webs"

Then open this url: [a href=\"http://localhost/test/index.php\" target=\"_blank\"]http://localhost/test/index.php[/a]
[/quote]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Thanks man![/quote]
Link to comment
https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-39240
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.