403 Forbidden error

Reply

Join Date: Dec 2004
Posts: 2
Reputation: camerman is an unknown quantity at this point 
Solved Threads: 0
camerman camerman is offline Offline
Newbie Poster

403 Forbidden error

 
0
  #1
Dec 26th, 2004
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions?
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 133
Reputation: Cup of Squirrel is an unknown quantity at this point 
Solved Threads: 1
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Re: 403 Forbidden error

 
0
  #2
Dec 26th, 2004
Ok, I know absolutely NOTHING about php. However, at a guess, you have set the default access to pages too high maybe? You might have to edit the files manually so anyone can visit the page.

Remember, I dont know much about php, but it sounds logical ^^
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 127
Reputation: ReDuX is an unknown quantity at this point 
Solved Threads: 5
ReDuX's Avatar
ReDuX ReDuX is offline Offline
Junior Poster

Re: 403 Forbidden error

 
0
  #3
Dec 27th, 2004
Check the default htaccess permissions in your httpd.conf file first to make sure everyone has global access to .php files.
Then it might be worth checking that there is a guest internet user in windows .. to be able to view the pages.
I'm assuming you have php set to parse all .php files on your server.

Another little note is that its a bad idea to run windows using an administrator account. Its advisable to setup another 'super user' account and use that and disable the admin account. (active administrator accounts is half a hacking job already done for them. Dont make it easy). Its also a good idea just incase someone exploits your webserver untill its properly setup and secured/checked.
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 196
Reputation: mikeSQL is an unknown quantity at this point 
Solved Threads: 3
mikeSQL's Avatar
mikeSQL mikeSQL is offline Offline
Junior Poster

Re: 403 Forbidden error

 
0
  #4
Dec 27th, 2004

Another little note is that its a bad idea to run windows using an administrator account. Its advisable to setup another 'super user' account and use that and disable the admin account. (active administrator accounts is half a hacking job already done for them. Dont make it easy). Its also a good idea just incase someone exploits your webserver untill its properly setup and secured/checked.
Yes, this would be correct as ReDuX said, it would be a bad idea. Also two things, 1 ReDuX mentioned as well, check your httpd.conf . Also, if your using or running this in a CPAnelX, and you set up a password to protect a certain pages or whatever, then you might wanna check the permissions again.

Another meathod is checking the permission on the Folders and start pages files. Start pages like index.htm, index.html, start.php, index.php...those kinds of apges that people first see when viewing or trying to see your site or even accessing your site. I know this is alot to check, and even if it isent, those that I and htaccess have pointed out, you should consider checking on them. I personally hate those pages myself, its like the blue screen we Comp Techies hate so much as well as the X. GRR!!!
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2
Reputation: camerman is an unknown quantity at this point 
Solved Threads: 0
camerman camerman is offline Offline
Newbie Poster

Re: 403 Forbidden error

 
0
  #5
Dec 27th, 2004
Thanks for all of your responses. At the moment I am at work, but when I get home I'll take another look at the httpd.conf file and see if I can locate anything about global permissions. I'll also check out the folder and file permissions. I'll post again if I get it working. Thanks again.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2
Reputation: prakashvlr7 is an unknown quantity at this point 
Solved Threads: 0
prakashvlr7 prakashvlr7 is offline Offline
Newbie Poster

Re: 403 Forbidden error

 
0
  #6
Feb 18th, 2007
Originally Posted by camerman View Post
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions?
?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2
Reputation: prakashvlr7 is an unknown quantity at this point 
Solved Threads: 0
prakashvlr7 prakashvlr7 is offline Offline
Newbie Poster

Re: 403 Forbidden error

 
0
  #7
Feb 18th, 2007
Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message that says: You don't have permission to access /C:/Program Files /Apache Group/Apache/htdocs/test.php on this server. I'm running XP pro under an Admin account that has complete access to everything, so I'm more inclined to believe that this is an Apache config problem. I've been all around the web searching, but I haven't found a thread that has given me a solution. Does anybody out there have any suggestions
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 1
Reputation: b3n222 is an unknown quantity at this point 
Solved Threads: 0
b3n222 b3n222 is offline Offline
Newbie Poster

Re: 403 Forbidden error

 
0
  #8
Jun 17th, 2009
I spent about 2 hours getting Apache2 and Php5 running and was stuck with this problem for about 15 minutes of that time.

The fix, and best way to install, was in this post:
http://blogcms.com/?item=install-apa...php-on-windows

Specifically, everything under the "Allow .htaccess" section of changes to the apache httpd.conf file.

Although, my Apache complained at the first "<Directory>" until I reverted it to the original "<Directory />"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 19131 | Replies: 7
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC