≡ Menu

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:
# chmod +x /home/httpd/theos.in/

g) You should also check the logs for any errors:
# tail -f /path/to/apache/error.logs

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 126 comments… add one }

  • T1 quotes February 2, 2008, 4:30 am

    I had the same problem. I was doing some testing and have installed PHP 5 on a development server. I had a site installed on the server that was working correctly, complete with quite an elaborate .htaccess file handling many redirects and rules. However, after installing PHP5 it turns out any php file I tried to view just returned a 403 Forbidden error. I began to scratch my head. Searching on Google didn’t immediately bring up a solution either. However, I eventually narrowed it down to the fact that I needed to add Options +FollowSymLinks to my .htaccess file. That solved it all.

    • Devendra Singh Bamal May 8, 2012, 12:44 pm

      make sure you have permission to use htaccess file for apache web server if apache has ovorrides disabled you will bump bach with a 403 error

  • shankar March 31, 2008, 5:13 am

    #chmod a+x /home-dir-where-apache-installed

    ex: chmod a+x /home/test

    This will fix the problem

  • Andrew August 1, 2008, 2:14 pm

    I am having the same problems with my Apache server, however I am running it off of Windows XP. Would my solution be the same as the steps above, can someone “dumb it down” for me?

  • S. Nilesh August 1, 2008, 4:34 pm

    Andrew, which OS ?

  • Mzwa September 23, 2008, 2:00 pm

    Just a quick reminder guys; mind the back-slashes on your apache config file when naming your domain and path. My Error 403 came as a result of that; but now that everything is up! I’m coooooool.

    Sho!

  • http://www.customsmiledesigns.com October 20, 2008, 1:07 am

    I am an Apache/linux newbie. (Trying to learn this technology…)

    I setup a Mandrake 10.1 server, and am trying to setup virtual hosting.

    I created a user and a www folder. Set the www folder permission to 777.
    I created a virtual server as follows:

    DocumentRoot “/home/domain/www”
    ServerName *.domain.com

    allow from all
    Options +Indexes
    DirectoryIndex index.html index.htm default.htm

    I added the DirctoryIndex line, but get the same error with or without that line.

    If I try to browse any file including the root site, I get the following error message:

    Forbidden
    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.

    I’m assuming that this is a permission based issue, however I have 777 permissions set, so it should work. Any help would be appreciated!

    Thanks!

    • MK January 8, 2012, 5:54 pm

      Give index.php permissions to 755.i have solved one site with same problem.

  • nixCraft October 20, 2008, 2:25 am

    Set dir options as follows and restart apache:

    <Directory "/home/domain/www">
    		Options +Indexes FollowSymLinks +ExecCGI
    		AllowOverride AuthConfig FileInfo
    		Order allow,deny
    		Allow from all
    </Directory>
    
    • hafix hma May 7, 2011, 6:04 am

      pls i want to see a gem code

  • kamel tawfik November 5, 2008, 11:49 am

    I am having the same problems with my server
    please can solve my problem

  • Apache Joe November 6, 2008, 2:59 am

    I had this error on Apache on WIndows Vista… after some experimenting around I found that for some reason the doc files had been encrypted. Even though I could open/edit/save them, Apace could not. Which is strange as I made perms open to Everyone for Full Control. Anyway, once I selected All and set not to encrypt, then Apache was able to open and send them to the client.

  • chinmaya January 22, 2009, 5:56 am

    Forbidden
    You don’t have permission to access /pages/index.php on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.41 Server at depacco.com Port 80

    vista ultimate sp1 usinf mizile firefox3.0.5

    wht i will to slove the problem????????????????

  • jedi March 21, 2009, 11:57 am

    can anyone help me out of this problem. I couldn’t solve this problem for a week.

    issue : [error] [client 127.0.0.1] File does not exist: C:/Apache2/htdocs/projectconsole

    what is the solution

    • Ali Mabrook April 26, 2011, 11:01 am

      Check the file “projectconsole” exists or not??

  • MAROU March 28, 2009, 8:11 am

    i have a probleme with service http in nagios.when i want to access to look the status of my localhost ->all service are ok ,but http send me a message:403 forbiedeen

  • jonathan March 29, 2009, 3:42 am

    I’m getting the “403” error message when i use flash and php

  • Nadia March 30, 2009, 9:49 am

    I have a problem. its been a month and at first i thought the website was down and it will be back to normal i like. 2 days.. but its still going. i don’t know what to do now. and like.. i don’t know what apache and stuff so can you like guide it down to clicks?

    Forbidden
    You don’t have permission to access / on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    ——————————————————————————–

    Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at gatheringro.ch Port 80

    Help please!!

  • best April 3, 2009, 3:34 am

    In your virtual host conf file for the site, what are the values, if any, for the following directives:

    VirtualHost
    NameVirtualHost

    They should look something like this

    VirtualHost *.80
    NameVirtualHost *.80

    If you have a specific IP address specified in either directive, remove it and replace it with a *.

    Weird power outages can also cause a broadband modem to power cycle and lease a new IP address. Becuase you have a dynamic IP address and your site stopped working spontaneously, I’m guessing that your conf file states an explicit IP address to listen on. When your IP address changed it broke the directive, causing Apache to no longer accept requests for your site.

  • absa April 30, 2009, 7:52 am

    I am using apache2.2 (on windows 2003) & I am getting 403 error which says “This website requires you to log in” please can some one suggest any workaround

  • Christopher Zimmermann May 7, 2009, 2:37 pm

    I just read over the postings and adding an index file sounds easy. But what happens if your site has over 800 folders ie a very large organization. The server is showing a forbidden page even though it’s ugly can we not change that page? Or have the server point to a custom 404 page? I don’t want to go around sticking index files in with meta redirects to a 404 page or to the homepage. Suggestions please would be FANTASTIC!

    Thanks.

    C

  • nixCraft May 7, 2009, 2:41 pm

    Turn on fancy indexing or something line this:

    ErrorDocument 403 /noindex.html

    and Upload /noindex.html with custom message.

  • Christopher Zimmermann May 7, 2009, 3:40 pm

    Thanks Vivek Gite… I’m going to try that out.

    Cheers

    Z

  • jigz May 13, 2009, 1:37 pm

    plz give me a step by step instruction, on how to solve these problem.. dnt know where cn i find those settings.. the probs is when i type cebudogs.com in my address browser, the text showed are..
    (your help would be much appreciated..)
    Forbidden
    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.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.3 mod_perl/2.0.4 Perl/v5.8.8 Server at cebudogs.com Port 80

  • indie May 14, 2009, 7:10 am

    to “best”:

    your message
    “Weird power outages can also cause a broadband modem to power cycle and lease a new IP address. Becuase you have a dynamic IP address and your site stopped working spontaneously, I’m guessing that your conf file states an explicit IP address to listen on. When your IP address changed it broke the directive, causing Apache to no longer accept requests for your site.”
    which gave me an idea that prior to my 403 error, we had a power interruption. what i did was to power cycle the router’s and internet’s power adapter (plug/unplug) and then all was back to normal.

    thanks much! \(><,)/

    indie

  • Rusty May 27, 2009, 3:12 am

    I get this error when I try to access a particular program , I can go next door and use their computer and it comes through perfect, only difference are the ISP we use,

    _______________________
    Forbidden
    You don't have permission to access /affiliate/affiliates/index.php on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    --------------------------------------------------------------------------------
    Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.3 Perl/v5.8.8 Server at www.unostart.com Port 80

    As I am not computer savvy I have no idea what all that means.
    Can some one please help in newbie talk

  • XFiFTeenTh015X June 5, 2009, 4:44 pm

    Forbidden
    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.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at cris.hobo-studios.org Port 80

  • blageez June 12, 2009, 2:10 pm

    I have a problem. Everytime I want to publish a post on my blogger using Windows Live Writer, it’ll say Error 403 Forbidden? why why why? can anyone help me???? please and thank youu.

  • greenfeld June 20, 2009, 7:52 pm

    i have the same problem in in host way

  • some June 25, 2009, 5:01 pm

    thanks my friend

  • Gee June 30, 2009, 1:01 pm

    Sorry but it’s not working,

    I’m using fedora 10 that I had recently installed, and i have realized that yum install scatters files all the disk. So I want build every from binary code so that i can keep my location consistent, but every time make install THIS IS THE MESSAGE I GET after the command # /.configure

    [root@localhost httpd-2.2.11]# ./configure
    checking for chosen layout… Apache
    checking for working mkdir -p… yes
    checking build system type… i686-pc-linux-gnuoldld
    checking host system type… i686-pc-linux-gnuoldld
    checking target system type… i686-pc-linux-gnuoldld

    Configuring Apache Portable Runtime library …

    checking for APR… reconfig
    configuring package in srclib/apr now
    checking build system type… i686-pc-linux-gnuoldld
    checking host system type… i686-pc-linux-gnuoldld
    checking target system type… i686-pc-linux-gnuoldld
    Configuring APR library
    Platform: i686-pc-linux-gnuoldld
    checking for working mkdir -p… yes
    APR Version: 1.3.3
    checking for chosen layout… apr
    checking for gcc… no
    checking for cc… no
    checking for cl.exe… no
    configure: error: in `/home/smarty/Download/httpd-2.2.11/srclib/apr’:
    configure: error: no acceptable C compiler found in $PATH
    See `config.log’ for more details.
    configure failed for srclib/apr

    PLEASE HELP, on top of that its the 403 ERROR

  • mcsolas July 16, 2009, 6:33 pm

    I am trying to setup virtual hosts on my development machine running win xp pro, apache 2.2

    Tested several variations.. nothing seems to work yet. Here is what I have in the httpd-hosts.conf file… any suggestions for the windows users out there?
    NameVirtualHost *.80

    DocumentRoot C:\Site1
    ServerName site1.local

  • G.KarthiK July 24, 2009, 2:18 am

    This error message .plz solve this Access is forbidden to the requested page:

    174.142.39.75/~kethez/tamil/chatt/tschat.php (port 80)
    Please forward this error screen to 174.142.39.75’s WebMaster.

    ——————————————————————————–

    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at 174.142.39.75 Port 80message . help me

  • Dwight Stegall October 12, 2009, 10:12 pm

    You can get this error in everyone of Google’s Products. It’s simply a corrupted cookie problem.

    When you receive Google Error 403 Forbidden simply delete the Google.com cookies, restart your browser, and sign in again to get fresh cookies.

    I don’t know what causes this error or how to fix it. But this is a good workaround until a fix is discovered.

  • a.nagaraju November 10, 2009, 6:11 pm

    i have full errors in tagged web site.iam unable to open any friend page and iam loosing friends too.in my view it is a wasteless web site.

  • Bhargav November 14, 2009, 4:07 am

    hellow this is bhargav patel.
    whenever i search any documents from google then i got this type error.so wat is solution for it.
    pls send me solution.

    Forbidden
    Your client does not have permission to get URL /custom?hl=en&source=hp&q=ele&cx=partner-pub-7805591812337652:1aewev-5uvu&adkw=AELymgUkMdh_dMYaX7IYvSRvXbqF2DfmRoYBFjBN3qiItw5OZ8sLxbv88txH5h5OvbLXQJsJMgNe-CouED0Ylv6F2td-gzx8WHgkpK-vIVt4KvF3Bc8QpNY&cof=AH%3Aleft%3BALC%3A0000FF%3BBGC%3AFFFFFF%3BCX%3Agoogle%3BDIV%3A336699%3BFORID%3A13%3BGALT%3A008000%3BL%3Ahttp%3A%2F%2Fwww.google.com%2Fintl%2Fen%2Fimages%2Flogos%2Fcustom_search_logo_sm.gif%3BLC%3A0000FF%3BLH%3A30%3BLP%3A1%3BT%3A000000%3BVLC%3A663399%3B&oe=ISO-8859-1&ie=ISO-8859-1&safe=images&client=pub-7805591812337652&channel=3928777124 from this server. (Client IP address: 117.98.15.206)
    

    We apologize for your inconvenience, but this request could not be processed.
    Please click here to continue your search on Google.

  • Himanshu Vasani December 4, 2009, 1:40 pm

    i configured the apache but give the forbidden error.
    and in error log forbidden /www/docs error

  • MN February 3, 2010, 11:59 pm

    I would if someone help me to resolve “Apache 403 Forbidden Error”. I was fine until yesterday and unfortunately it was encountered today and I have no knowledge what could cause it. I don’t know computers a lot and try to avoid being a computer scientist. However something might have happened because of no innocense.

    Thanks.

  • KF February 5, 2010, 2:19 pm

    I think it’s such a wired thing that it’s actually related to permission issue. The working solution can be found in http://ubuntuforums.org/archive/index.php/t-763605.html .
    What you could do is:

    $ sudo mv images Images
    $ sudo mkdir images
    $ sudo cp -R ./Images/* ./images/
    $ sudo chmod -R 775 ./images/
    $ sudo chown -R root:www-data ./images/
    $ sudo rm -r ./Images

    Duplicate a folder and then reset all file permissions required. Everything works FINE AGAIN!

  • Emory February 14, 2010, 5:27 pm

    Thank you.
    Option “e” solved my problems running WAMP with Vista. I’ve been looking for a solution for days.

    Thanks again.

  • vlip February 18, 2010, 6:06 pm

    I get and still gets 403 error on /var/www/piwi http://server/piwi/ ?

    when i copy the inside files of /usr/share/piwi whole apache goes doen

    so i ln -s the inside files *.pl and folders from /usr/share/piwi/ to /var/www/piwi/

    made a good alias for it,
    chmodded it multiple ways but still gets 403

    piwi is an webinterface for prelude IDS

  • radeonon March 19, 2010, 4:05 pm

    if you create a directory with mkdir and use a mode other than 0777 you cant access this directory using http. be carefull.

  • Anonymous April 7, 2010, 7:06 pm

    my script alias pointed to folder that did not exist. that was my issue and was getting 403.
    so check your paths!

    ScriptAlias /cgi-bin/ “C:/DOCUME~1/davidj411/MYDOCU~1/web/www/cgi-bin/”

  • Leon April 16, 2010, 10:26 pm

    Hi All,
    I am running wampserver and Apache 2.2 on windows 2003.
    I have set <Directory to "allow from all" and I am still getting "You don't have permission to access / on this server." error when accessing the site from locations other than the host server.

    Can anyone help please!

    Kind Regards

  • bankky May 16, 2010, 5:26 pm

    when working with php,i use to have this error in database but on the internt,apache can not be run,apache is block with firewall,what should i do?

  • bank May 16, 2010, 5:29 pm

    apache cannot be run on the system

  • say May 16, 2010, 5:41 pm

    database error ,403apache,whenever am working with database,this error always appear,what should i do?

  • javier alvarez May 20, 2010, 6:33 am

    I had the same problem with a Apache 2.2 server on windows xp, but I solved it doing the following. In the httpd.conf file
    1. Set the DocumentRoot to whatever directory I want
    DocumentRoot “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/MyRootDirectory”
    2. Set the tag to point to the same directory ___But using the backslash!!!__

    • javier alvarez May 20, 2010, 6:36 am

      Sorry, the message has missed information due to brackets:
      the tag is the Directory tag and the sample value is “C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyRootDirectory”. Note that here I use backslashes and in DocumentRoot I use forward slashes

  • Joe Oviedo July 2, 2010, 5:08 pm

    Great article! Thank you so much!

  • Tomislav20 July 7, 2010, 1:26 am

    Thx so much for all answers. It helped me so much…

  • Pankaj Shrivastava July 21, 2010, 8:21 am

    Hi,

    I am using Mercurial as repository for project using Apache 2.2. While accessing the link it shows me the error
    HTTP Error 403 – Forbidden
    You might not have permission to view this directory or page using the credentials you supplied.
    The above error I am getting when I am using domain name to access the repository but for local it is not giving the error.
    Any pointer will be helpful

  • Vipul @getexaminfo August 8, 2010, 8:50 am

    My site many times shows this error and then I go to a pro for solution.
    But next time I will try it myself.

  • JD August 13, 2010, 9:51 pm

    I fixed my problem by replacing

    Options +Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    Order allow,deny
    Allow from all

    With:

    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

  • grinding mill September 1, 2010, 5:28 am

    Options +FollowSymLinks
    RewriteEngine on
    ErrorDocument 404 /404/
    ErrorDocument 403 /403.html

    order allow,deny
    deny from 114.92.
    allow from all

    i use this method, but 403error is not my page.
    how can i do it?

  • Olivier L September 14, 2010, 12:05 pm

    Thanks a lot!!!

    Olivier

  • Tarek September 19, 2010, 9:18 am

    Hello,
    i am new to Apache and i need some help or tips..

    I installed it, i’ve put in an html page ( index.html )
    i was able to visit it using my localhost ( 127.0.0.1/index.html )

    Now i am trying to access it from elsewhere ( clients for example )
    as i was reading forums i concluded that they should input my internet ip address
    ( whatismyip.com )
    is this correct ?

  • Ronald Joshua R. Adela October 14, 2010, 10:03 am

    thanks big help.

  • Cayden Ryan December 19, 2010, 7:09 am

    I’m an EXTREME newbie to the tech world, but the homepage itself of my website works, but any time I try to get to a subdirectory it turns up this error:

    Not Found

    The requested URL /armor/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www. .com Port 80

    I have access through ftp and wordpress to make any changes, I just need to know what changes to make, please help!

    • nixCraft December 19, 2010, 10:04 pm

      Setup mod_rewrite for your wordpress.

  • docfish December 22, 2010, 9:45 am

    I have a strange problem.
    I have only index.html in my dir and get 403 error.
    When I replace it with index.php all OK

  • lilsinger201 January 8, 2011, 11:36 pm

    I am a current college student and starting to use the Niihka website for classes and i am one of the few that get to test the pilot version and i somehow can not get through to the server because of this ( excuse the fact that i have never heard of this product in my entire technological life) Apache Tomcat domain. i get the same error message 403 when i am trying to download files onto my server i am using an HP with vista and i am concerned that this may be an issue when using the Niihka for the rest of the semester and need help pronto. please if you know anything about this let me know thanks!!!

  • mike January 12, 2011, 5:56 pm

    Hi,
    In trying to reach a website, I get the following error:
    Forbidden
    You don’t have permission to access /news/index.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I have a mobile internet and Windows 7 with Internet explorer. How can I get out of this problem?
    Thank you for any help you might give me.

  • AnaB March 11, 2011, 8:24 am

    Thank you so much! This is the only answer I’ve found in my 2 hours of searching that actually helped to solve my problem

  • Ramon Fincken March 11, 2011, 9:13 am

    Thanks for the logs suggestion. Turned out that the read permissions for ” others ” were denied.

  • Mohammed March 28, 2011, 1:19 am

    Hello guys, as many of you up here, I have the same problem and one more, I don’t have a lot of experience on linux, and now, i’m trying to make website on linux but I get the (“Access forbidden!

    You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

    If you think this is a server error, please contact the webmaster.”)
    I hope some 1 can help me by explaining step by step because i really suck on linux :p
    thanks a lot
    Error 403
    localhost
    Mon Mar 28 00:54:23 2011
    Apache/2.2.15 (Linux/SUSE)

  • whats in name April 12, 2011, 9:25 pm

    ……… or maybes? the Website is under considerations and is updatings herself.
    you can try later on.
    example: NO BROWSER/s is helpful to help/s to fix this problem >>>>
    Forbidden
    You don’t have permission to access / on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • Elise April 19, 2011, 11:06 pm

    I had this issue on my local sandbox env. I figured out eventually that my home directory was set to no access for all, and I needed to change it to read only. After f****** with httpd.conf for at least an hour, I was quite relieved to have figured this out.

    System Preferences -> Sharing -> File Sharing (check it), then select your home directory and fix the “Everyone” permission to “Read only”.

  • Pramod May 6, 2011, 6:17 am

    Hello Guys,
    As I have some problem please help me.
    Apache directory consist cgi-bin directory. As I browse the path of cgi-bin through browser I get 403 response.As a secure point of view its better to show 404.
    How can I do it?
    Thanks in advance..

  • kaspersky May 14, 2011, 11:00 am

    which program should I use to write the given commands !?
    like:
    $ chmod +x file.cgi , etc !?

    • koby May 30, 2011, 4:35 am

      It refers to unix/linux users… which you apparently not one..

  • M.R Rony May 23, 2011, 11:12 am

    i need real playar

  • Charles June 16, 2011, 4:55 am

    Pls can somebody help me out,I am working with my server but I dont know how it turned back 2 tell me that I forbiden from hph that 403 error forbidden additionally i am tryin 2 use error document.Pls what do that mean.And have exam today I need browse it out.Pls i beg 4 ur urgent aid

  • Nikayla July 2, 2011, 4:00 am

    Hi there..

    can support for my problem?
    I got error 403 after file chmod permission on my ftp site
    and I cant fix this

    helppp…..

  • nan July 4, 2011, 4:30 am

    Thank you so much! This is the only answer I’ve found in my 2 hours of searching that actually helped to solve my problem

  • philip July 7, 2011, 4:49 pm

    Recently I often receive on my e-mail a mail from (same) person. I know this person ,(my sister in law)
    The message sais “HTTP 403 Forbidden. I am sure she is not sending me any XSXX or something like that.
    What can I do to get rid of that? Her e-mails are coming from her to sevreal other people.

  • arnex July 25, 2011, 3:13 am

    Assuming you have the file permissions correct, you can try setting /selinux/enforce to 0 using ‘echo 0 > /selinux/enforce’. That worked for me!

  • Matthew Thomas July 29, 2011, 12:00 am

    A 403 Error Problem and Solution

    Scenario:
    Apache 2.2, Windows XP, Alias to other drive/path not under DocumentRoot drive/path, web browser error 403, /Apache/logs/error.log describes:
    [error] [client 127.0.0.1] client denied by server configuration: E:/www/website1/index.html

    Read this:
    http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

    Problem: I am creating an alias to another drive letter/path to build/setup an alternate web site locally, but was receiving an error 403 when trying to access the index.html file in a web browser.

    Solution:

    Edit file: C:/Apache/conf/httpd.conf
    (Your path may vary.)

    Add the alias within the tags:

    Alias /mysite “E:/www/website1”

    Outside of any tags, use the Location tags:

    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    This enabled access to:
    E:/www/website1/index.html
    which is aliased in the web browser as:
    localhost/mysite/index.html

    I had been using the Directory tags with the actual path, but that was not working. Changing to the Location tags with the alias path works great. This resolved my particular problem.

  • Matthew Thomas July 29, 2011, 12:06 am

    Addendum:

    The tags were dropped in translation.

    The first set of tags:
    IfModule alias_module
    IfModule

    The second set of tags:
    Location /mysite
    Location

  • alex August 1, 2011, 11:58 am

    help problema 403 after install csf firewall,
    remove but problem no resolve

  • mike August 6, 2011, 9:03 pm

    im still having this error. I dont understand how to fix this. Can someone help me through teamviewer?

  • chy August 10, 2011, 7:43 am

    delete the file name .htaccess
    it can solve your problem (just for a while)

  • varnikhaa September 1, 2011, 5:12 am

    please help me how to login this web page.

  • afzal September 21, 2011, 3:33 am

    my web is showing forbiden error403

  • afzal September 21, 2011, 3:37 am

    You don’t have permission to access / on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • Sam Tuke October 7, 2011, 12:30 pm

    SELinux is also a very likely culprit on RHEL/CentOS systems.

    See: http://www.phpfreaks.com/forums/index.php?topic=243271.0

    Try this command:

    chcon -R -h -t httpd_sys_content_t /web/directory/

  • Tom N October 9, 2011, 7:15 pm

    I found that the default security in version 2.2 and beyond does not include the localhost directory. (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs) You need to add a setting allowing scripts run from this directory (This is so Stupid!)

    what to do:
    Version 2.2 also changed some of the default security configuration parameters. To set things up the way you’ll need them, you’ll need to add the following block to either your httpd.conf file, just above the virtual hosts, or to your httpd-vhosts.conf file:

    Order Deny,Allow
    Allow from all

    Do this for any directory you setup using Virtual hosts as well. Just change the directory and leave everything else alone.

  • Bart November 1, 2011, 3:21 am

    thx, you made my day!

  • Eran November 8, 2011, 10:58 am

    Thanks for the tips.

    Eventually what solved the problem for me was changing permission within the .htaccess file which was located in my root directory (www).
    I installed Apache server on Windows XP. When I connected as localhost everything worked fine. When I tried to connect through another browser using the IP address, I got an error message
    “403 Forbidden You don’t have permission to access / on this server.”
    Changing the permissions within the .htaccess file from “Deny from all” to “Allow from all” did the trick.

    Thanks.

    • Jean-Francois S. March 1, 2012, 7:22 pm

      In httpd.conf I added this…. & it’s all working now for me…
      Windows Vista 64Bit
      Wamp + Apache latest build…
      ——————————————————-

      AllowOverride None
      Order allow,deny
      Allow from all
      

      ——————————————————-

      #
      # This should be changed to whatever you set DocumentRoot to.
      #
          #
          # Possible values for the Options directive are "None", "All",
          # or any combination of:
          #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
          #
          # Note that "MultiViews" must be named *explicitly* --- "Options All"
          # doesn't give it to you.
          #
          # The Options directive is both complicated and important.  Please see
          # http://httpd.apache.org/docs/2.2/mod/core.html#options
          # for more information.
          #
          Options Indexes FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
          #
      
  • rob Alferink November 16, 2011, 11:05 pm

    hi i was successfully on website then suddenly bounced off was just lurking for several hours,the little login box would not let me log back in i tried clearing cookies no luck can you help me get reconnected tanxxxxx

  • omar November 27, 2011, 9:40 am

    I had Windows 2008 R2, with Apache 2.2 installed.
    When I connect using localhost it worked fine, but when I had used the ip assigned to the server, 192.168.1.110, I got 403 error.
    To fix it, I added my ip in the following tag in httpd.conf file. The original tag was:

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

    so now it looks like:

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 192.168.1.110

    Another solution, would be to remove “Deny from all”:

    Order Deny,Allow

  • j December 1, 2011, 3:16 am

    Thanks, very helpful i only needed to read the first couple of paragraphs to have my problem solved.

  • Dhananjay January 10, 2012, 2:20 pm

    Sir, i have a problem in my cell Nokia- C5 that whenever i use to download any video .After 1 or 2 minute there occurs error code 403 forbidden and downloading fails.plz suggest me what i have to do.

  • RaviS January 12, 2012, 1:55 pm

    There are some forbidden access in the httpd.conf file. I did commented the forbid access and changed the owner-ship of /data/www folder to respective user that is running apache2 service. Then it’s working fine.

    # forbid access to the entire filesystem by default

    # Options Indexes
    # AllowOverride None
    # Order deny,allow
    # Deny from all

  • RG January 17, 2012, 10:14 am

    Curious behaviour in apache for windows (2.2.16), without “\” ending the directory in an Alias I get a 403, added to the path and then everything’s ok…

  • ktbiz January 23, 2012, 9:34 pm

    If you’ve set up the alias correctly and your permissions are okay and you’re STILL getting a forbidden error when you try to access your file, I may have the solution for you. Your operating system may be running SELinux (Security Enhanced Linux) which could limit your permissions to files beyond the normal linux protection mechanisms. To test, run the command “setenforce 0” to set SELinux to permissive mode, then try again. This fixed a problem for me that I had been struggling with for quite a while.

  • Hasnain February 14, 2012, 3:19 pm

    PLEASE HELP..!

    Forbidden
    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.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at jsopakistan.org Port 80

  • Raza February 14, 2012, 3:23 pm

    I’m an EXTREME newbie to the tech world, but the homepage itself of my website works, but any time I try to get to a subdirectory it turns up this error:

    Forbidden
    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.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at http://www.babababaaaa.org Port 80

  • BD March 9, 2012, 8:18 pm

    Thanks ktbiz! That solved it for me. I also found that you can use setsebool -P httpd_can_network_connect 1 to achieve the same result without totally disabling the protective qualities of SELinux.

  • Viola Woolcott March 20, 2012, 7:41 pm

    I see exactly the above on 28 of my sites which are at HostGator. And they don’t know what the problem is. The live chat told me that all of my sites are gone. So what am I to do???

  • Viola Woolcott March 20, 2012, 7:43 pm

    To the above I also have to add that I can’t even the CP of any of these sites. the message remains :

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

  • romer April 9, 2012, 11:08 pm

    I had the same problem and instead of http://localhost/, go with http://127.0.0.1/

  • Christian April 12, 2012, 7:32 am

    Switching of SE LInux solved my problem on Centos.
    Thanks for the hint !

  • Abhi April 19, 2012, 3:01 pm

    It’s helped me! Thanks for sharing.. Keep up this good work!

  • max June 9, 2012, 11:10 am

    Thanks for the article. I am having a different issue. I am running squid and apache on 1 machine. I have applied directive access for specific users but when I apply a rule “iptable redirect 80 to 3128” than I see forbidden page because of the ip for server it self in not in the directive access. Any solution ?

  • Tadeo June 11, 2012, 8:09 pm

    i have the same problem:

    Forbidden

    You don’t have permission to access /index.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    with joomla and virtuemart. the issue came when i try to access to paypal.

    i already check(delete, rewrite ), htaccses, and it seems that is not guilty, all permissions are 755, so, i realy don´t want to open a ticket with my web service provider, so i please any idea is wellcome….

  • dusinum July 14, 2012, 12:23 pm

    hey i solved this problem, the solution was
    # sudo gedit /var/www/.htaccess
    then it showed a single phrase
    “Deny from all”
    which i changed to
    “Allow for all”
    Save and quit. Thats all

  • Di kose July 17, 2012, 6:20 am

    Hi everyone I’ve been reading all your comments and feel I came to the right place, well I’m kinda having the same problem but it with my phone a BlackBerry I can’t open important links please help me out I would really appreciate it

    Thanks.

  • sidrahabib July 29, 2012, 1:53 pm

    Contact your service provider

  • Nazrul Amin August 19, 2012, 11:23 pm

    Hi Guys,

    Spent a load of time wasting on the net looking for this fix. Ive just resolved it by simply adding the text “Require all granted” under neath the tag “Require local” within the first tags under Document root.

    Please note this only worked for the following WAMP installation on Windows 7: Apache 2.4.2, PHP 5.4.3, mySQL not sure of version. Not sure if this fix will work for other versions!

    Happy Coding!

  • powel September 1, 2012, 2:04 pm

    av openned a website page to browse but found 403 forbidden error.help me solve it

  • thiago November 27, 2012, 3:11 pm

    hey folks, noticed that we are having exactly the same situation. ive been trying to find this archive ‘htaccess’, but so far nothing. could anyone tell me where this archive is? thanks

  • AQIB MEHMOOD February 8, 2013, 3:03 pm

    I FIND 403 ERROR,WHEN I SUBMIT MY GAME’S BOX LUCKY NUMBERS.

  • el May 22, 2013, 10:08 pm

    Thanks for this tip, helped me

  • mike July 9, 2013, 3:38 am

    Thanks so much for the solution.
    This made it so that my web page could be seen from someone outside my lan. I pointed the domain at my ip and when you type my domain name it serves the wamp www file. Was giving the no access message: You don’t have permission to Access /

  • joeg July 30, 2013, 5:49 am

    So I performed a wget on espn.com earlier, and I wanted to use that index.html file instead of the default one. So I moved the file into /var/www/html but I kept getting a 403 Forbidden Error. After hours of double and triple checking permissions…. it finally clicked!

    restorecon /var/www/html/index.html

    Stupid SELinux… :)

  • Kurt February 9, 2014, 2:36 am

    AllowOverride All
    Options +Indexes
    Require all granted

    Fixed my problem. I hope that helps someone

  • jonpaulh February 12, 2014, 2:51 pm

    Everytime I need some info or fixes, I always seem to end up on this site and I always find my answer. I have been doing this for about a year and have not yet commented once. I think it’s time to say Thank you for all your help, keep up the good work and this is one of, if not the best resource for everything linux.

    I have a question though:
    I have solved my issue with creating a virtuial host pointing to /home/user. But I have two solutions

    One is to add my conf file:
    Require all granted
    The other is to add:
    Options +Indexes FollowSymLinks +ExecCGI

    Adding either of the lines fixes the 403 error. However, what would you recommend to use? Any explanation would be most helpful.

    Thanks again

  • muhammad waqas khalil April 8, 2014, 6:23 pm

    i have problem with my flash operator panel in elastix pbx that when ever iam clicking flash operator p[anel iam getting the following response

    Forbidden

    You don’t have permission to access /panel on this server.
    Apache/2.2.3 (CentOS) Server at 10.1.1.100 Port 443

    how to resolve this issue please guide me

  • Tory December 21, 2014, 4:19 am

    Thanks for sharing your thoughts about apache forbidden. Regards

  • heg January 30, 2015, 7:27 pm

    I had this error when importing a site from apache2 v2.2 to 2.4.
    In v2.4 there have been significant changes in authorization configuration.
    As my document root is /srv, I had to uncomment the section in apache.conf file.
    For more details see http://httpd.apache.org/docs/2.4/upgrading.html

  • Zane May 13, 2015, 5:54 pm

    On Apache 2.4, I had to add

    Require all granted

    to my

  • Surendra Barman August 15, 2015, 12:20 pm

    I wish to exit from HTTP error 403, please help me.

  • Surendra Barman August 15, 2015, 1:24 pm

    please help me to exit from HTTP error 403 which I got due to misoperating of internet,because I am not expert to operate the same, pl hlp me

  • Suredra Barman August 15, 2015, 1:27 pm

    What to do me now ?

Leave a Comment