Desperately Looking for some Help!

Reply

Join Date: Feb 2008
Posts: 2
Reputation: acuddyre@sas.up is an unknown quantity at this point 
Solved Threads: 0
acuddyre@sas.up acuddyre@sas.up is offline Offline
Newbie Poster

Desperately Looking for some Help!

 
0
  #1
Feb 9th, 2008
Hi,

I have recently uploaded a very basic site and have had it working for about 2 months. Then last night I went to update the index page and when I reloaded everything in Dreamweaver, I received this message after trying the find the site online:

You don't have permission to access / on this server.
.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 Server at <link snipped> Port 80

The site needs to be up and running by this evening because it is opening this weekend! Please pplease help - I am using dreamweaver so I am a complete beginner and don't knwo where to start. I have already checked that my permissions are set the right way so it must be something else!

Thanks!

Alexis
Last edited by John A; Feb 9th, 2008 at 8:15 pm. Reason: website url snipped
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,099
Reputation: hughv is on a distinguished road 
Solved Threads: 87
hughv hughv is offline Offline
Veteran Poster

Re: Desperately Looking for some Help!

 
0
  #2
Feb 9th, 2008
Can you access any other page?
See here for more info:
http://www.checkupdown.com/status/E403.html
Can you FTP to this site?
Do you know for sure that the server is up?
You should probably contact the web host.
BS, PH, CIB
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 270
Reputation: Michael_Knight is an unknown quantity at this point 
Solved Threads: 12
Michael_Knight's Avatar
Michael_Knight Michael_Knight is offline Offline
Posting Whiz in Training

Re: Desperately Looking for some Help!

 
0
  #3
Feb 9th, 2008
If you have a .htaccess file in the home directory, delete it. (back it up first via FTP).
Michael
Forensic IT Consultant / Designer | My DaniWeb Blog
Quis custodiet ipsos custodes?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 2
Reputation: be80be is an unknown quantity at this point 
Solved Threads: 0
be80be be80be is offline Offline
Newbie Poster

Re: Desperately Looking for some Help!

 
0
  #4
Feb 12th, 2008
If you save your web pages as htm you cant pull them up this happen to me i made my first page with
note pad and then used NUV it changed it to my index.html to index.htm and my apache.conf use's
the html
Last edited by be80be; Feb 12th, 2008 at 3:13 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 270
Reputation: Michael_Knight is an unknown quantity at this point 
Solved Threads: 12
Michael_Knight's Avatar
Michael_Knight Michael_Knight is offline Offline
Posting Whiz in Training

Re: Desperately Looking for some Help!

 
0
  #5
Feb 12th, 2008
That doesn't make sense, did you copy and paste that from somewhere?
Michael
Forensic IT Consultant / Designer | My DaniWeb Blog
Quis custodiet ipsos custodes?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,764
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Moderator
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: Desperately Looking for some Help!

 
0
  #6
Feb 12th, 2008
no it makes sense. in apache there is a way to change the way the server treats file extensions. look for the line where in says .html, and add .htm to that
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 270
Reputation: Michael_Knight is an unknown quantity at this point 
Solved Threads: 12
Michael_Knight's Avatar
Michael_Knight Michael_Knight is offline Offline
Posting Whiz in Training

Re: Desperately Looking for some Help!

 
0
  #7
Feb 12th, 2008
Yes, Actually that's correct. It's called indexing (but I don't think that's the problem here) and there's a couple of parts to this.

1. The associations for index. or default. , .htm/.html/.php - This will only allow the main index or default page to display with those file extensions when you go to the root address e.g. www.yoursite.com The page will display if you go to www.yourrsite.com/index.htm

This would only give 404, not 403

2. Folder indexing, allows or disallows viewing of any directory without an index page.

This would give you a Forbidden 403 page.

Your both missing the point. The postee said she got the message after using a 'ErrorDocument to handle the request' This implies (to me) that its a custom 403 or 404 page and probably has something like the following in a .htaccess file:

errordocument 403 /index.php?error=403
errordocument 404 /index.php?error=404

This code needs to correspond to another script telling the site where the 404 or 403 file is. Granted, it could still be index association related where the use of .php is used instead of.html. Writing complex scripts can be bad, especially if the error page contains css or images. To test this method, backup the .htaccess file first then delete it. If the pages show up, then its the errordocument part of the .htaccess file.

Be safe and name error files 404.shtml or 403.shtml and put them in the root directory.

Also... If its a shared host, she wont have access to the httpd.conf or the apache.conf file and the site should be set up for all extentions with indexing ON. All this can be done through the sites control panel, either cpanel, plesk or a custom made one.

If she owns the server, then I'd start with the .htaccess file. Then look further into permissions, file ext's.

Alexis

To test, give permissions of chmod 777. ALL new files uploaded to the www directory must be chmod a+rx in order to not receive a 403 Forbidden error in a browser.

Go directly to the page www.yoursite.com/index.xxx (xxx is the extension to your page htm,html or php).
Last edited by Michael_Knight; Feb 12th, 2008 at 12:01 pm. Reason: Added to the post
Michael
Forensic IT Consultant / Designer | My DaniWeb Blog
Quis custodiet ipsos custodes?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 2
Reputation: be80be is an unknown quantity at this point 
Solved Threads: 0
be80be be80be is offline Offline
Newbie Poster

Re: Desperately Looking for some Help!

 
0
  #8
Feb 12th, 2008
Dreamweaver, I used the homesite and like i said i made my first page index.html then redid somethings with homestie it saved it as index.htm i tryed to go back to my site and got the same 403 Forbidden error that Alexis got i checked the files with ls -l thay looked right worked on this for hours then i read some more apache docs. apache when installed use's the .html but it can be change i apache.conf to use htm but if you dont have 1 it will give you the 403
forbidden unless you have the .htaccess
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC