User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,851 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,729 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 13131 | Replies: 6
Reply
Join Date: Dec 2004
Posts: 2
Reputation: camerman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
camerman camerman is offline Offline
Newbie Poster

403 Forbidden error

  #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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation: Cup of Squirrel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Re: 403 Forbidden error

  #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  
Join Date: Sep 2004
Location: in the j00-kay
Posts: 114
Reputation: ReDuX is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 5
ReDuX's Avatar
ReDuX ReDuX is offline Offline
Junior Poster

Re: 403 Forbidden error

  #3  
Dec 26th, 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  
Join Date: Dec 2004
Location: Fort Bragg, NC
Posts: 189
Reputation: mikeSQL is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
mikeSQL's Avatar
mikeSQL mikeSQL is offline Offline
Junior Poster

Solution Re: 403 Forbidden error

  #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  
Join Date: Dec 2004
Posts: 2
Reputation: camerman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
camerman camerman is offline Offline
Newbie Poster

Re: 403 Forbidden error

  #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  
Join Date: Feb 2007
Posts: 2
Reputation: prakashvlr7 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
prakashvlr7 prakashvlr7 is offline Offline
Newbie Poster

Solution Re: 403 Forbidden error

  #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  
Join Date: Feb 2007
Posts: 2
Reputation: prakashvlr7 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
prakashvlr7 prakashvlr7 is offline Offline
Newbie Poster

Re: 403 Forbidden error

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:23 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC