begeiste Posted May 24, 2006 Share Posted May 24, 2006 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 :ForbiddenYou 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/ Share on other sites More sharing options...
hvle Posted May 25, 2006 Share Posted May 25, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38754 Share on other sites More sharing options...
begeiste Posted May 25, 2006 Author Share Posted May 25, 2006 [!--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 :ForbiddenYou 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] Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38790 Share on other sites More sharing options...
karthikeyan_coder Posted May 25, 2006 Share Posted May 25, 2006 /php/php-cgi.exe/index.php php-cgi.exe/index.php please check the settings of httpd.conf in apache folder. Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38970 Share on other sites More sharing options...
begeiste Posted May 25, 2006 Author Share Posted May 25, 2006 [!--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] Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-38979 Share on other sites More sharing options...
burhankhan Posted May 26, 2006 Share Posted May 26, 2006 in httpd.conf search "DocumentRoot" and set it toDocumentRoot "C:/webs"Then open this url: [a href=\"http://localhost/test/index.php\" target=\"_blank\"]http://localhost/test/index.php[/a] Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-39151 Share on other sites More sharing options...
begeiste Posted May 26, 2006 Author Share Posted May 26, 2006 [!--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 toDocumentRoot "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] Quote Link to comment https://forums.phpfreaks.com/topic/10388-problem-of-localhost/#findComment-39240 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.