Apache 403 Forbidden Error and Solution




+ Reply to Thread
Results 1 to 5 of 5

Thread: Apache 403 Forbidden Error and Solution

  1. #1
    Meer is offline Senior Member
    Join Date
    Sep 2010
    Posts
    179
    Feedback Score
    0

    Apache 403 Forbidden Error and Solution



    I have successfully configured Apache web server for my client. But why does my clients website just say "Error 403 Forbidden"? For example when client send request http://myclient.com/something/ Apache generate a 403 error. How do I troubleshoot this problem?

    Error code that start with 4xx is generated because of client browser request. A 403 error code means client browser (or person who is trying to access your site) cannot access the requested URL. It can be caused by many reason:
    a) A 403 status code indicates that the client cannot access the requested resource. It means the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.
    b) No default directory index page is present. Upload Index.html or Index.htm file. Directive DirectoryIndex defines the default index page name. Open your apache configuration file, find out default index file name, and upload the same file to directory:
    DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
    c) Make sure the CGI script requested have executable permissions set on files. Use chmod command to set permission:
    $ chmod +x file.cgi
    d) Make sure you have permission to use .htaccess file for Apache web server. If Apache has overrides disabled. you will bump back with a 403 error.
    e) Make sure correct directory permissions are set on directory:
    <Directory "/home/domain/www"> Options +Indexes FollowSymLinks +ExecCGI AllowOverride AuthConfig FileInfo Order allow,deny Allow from all </Directory> f) Make sure the underlying file system permissions allow the User/Group under which Apache is running to access the necessary files. You can determine which case applies to your situation by checking the error log. In the case where file system permission are at fault, remember that not only must the directory and files in question be readable, but also all parent directories must be at least searchable by the web server in order for the content to be accessible. For example /home/httpd/theos.in/ must be searchable, enter:
    Code:
    # chmod +x /home/httpd/theos.in/
    g) You should also check the logs for any errors:
    Code:
    # tail -f /path/to/apache/error.logs

  2. #2
    MightyJoe15 is offline Junior Member
    Join Date
    May 2011
    Posts
    1
    Feedback Score
    0
    thanks man

  3. #3
    Rackem is offline Junior Member
    Join Date
    Jul 2011
    Posts
    1
    Feedback Score
    0
    thank u alot

  4. #4
    tanerbm is offline Junior Member
    Join Date
    Aug 2011
    Posts
    2
    Feedback Score
    0
    man this is very nice man and well explained

  5. #5
    rirusscyb2 is offline Junior Member
    Join Date
    Jul 2011
    Posts
    4
    Feedback Score
    0
    trying it now thanks

+ Reply to Thread

Visitors found this page by searching for:

apache 403 forbidden error and solution

403 forbidden error in apache how to fix

joomla 403 forbidden error

joomla apache 403

apache 403 forbiddenRequest forbidden by administrative rules.0request forbidden by administrative rules403 forbidden solutionerror 403 forbidden in apachesolved joomla error 403apache 403 jshow to fix apache 403 forbidden error403 forbidden error apacheApache 403 Forbidden solutionApache 403 Forbidden Error403 Forbidden Request forbidden by administrative rules403 forbidden joomla errorForbidden error in joomla how to solve itapache js 403website troubleshoot for Error 403 - Forbiddenapache cgi 403forbidden 403 error apachesolution 403 Forbiddenjoomla 403 forbidden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts