How to solve “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. Error 403 localhost Mon 24 Oct 2011 07:45:12 PM NPT Apache/2.2.17 (Unix) DAV/2 mod_ssl/2.2.17 OpenSSL/1.0.0c PHP/5.3.5 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1” problem?

Some times while we wish to run any project on xamp or wamp or lampp we might this error message as:

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.
Error 403
localhost
Mon 24 Oct 2011 07:45:12 PM NPT
Apache/2.2.17 (Unix) DAV/2 mod_ssl/2.2.17 OpenSSL/1.0.0c PHP/5.3.5 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

This is due to the permission problem. By default we don’t have permission to access files so we need to change its permission. I have installed my xampp on /opt/lampp/ folder and my project folder name is testproject. To avoid this error i have granted permission as:

sudo chmod -R 0777 /opt/lampp/htdocs/testproject

After running this code on terminal. It works fine.

About the Author

has written 32 stories on this site.

18 Comments on “How to solve “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. Error 403 localhost Mon 24 Oct 2011 07:45:12 PM NPT Apache/2.2.17 (Unix) DAV/2 mod_ssl/2.2.17 OpenSSL/1.0.0c PHP/5.3.5 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1” problem?”

  • Alexandre wrote on 26 January, 2012, 3:03

    Good job man! You solved my problem

  • Marco wrote on 17 March, 2012, 21:55

    It works!!! šŸ˜€

  • Nath wrote on 3 July, 2012, 6:17

    how about in windows? how to solve it? tx

  • yoto wrote on 19 July, 2012, 10:02

    man, you saved me!
    thanks!

  • Hadi wrote on 24 September, 2012, 13:03

    you are awesome!!

  • Jimmy wrote on 3 November, 2012, 17:32

    Thank you for helping to solve my problem.

  • tosin wrote on 2 December, 2012, 19:31

    Thanks man.

  • Ravi wrote on 31 December, 2012, 21:31

    I get this error when im trying to add something to the database. the website itself works find.
    What could be the problem then?

  • Nicole wrote on 10 March, 2013, 17:55

    Thanks! it worked for me also!

  • philip wrote on 31 March, 2013, 20:48

    Thanx mate – great solution to a very frustrating problem

  • Vijay wrote on 4 April, 2013, 6:31

    I am using xampp on Windows platform, what would be the option for me to solve this error

  • dieqy wrote on 13 June, 2013, 16:23

    THANKS FOR YOUR GOODNESS

  • thankyou wrote on 17 August, 2013, 6:26

    THANK YOU IT WORKS

  • jony wrote on 30 October, 2013, 8:37

    works!

  • onthusiste Mpejane wrote on 6 October, 2015, 11:03

    please help me what is “sudo chmod -R 0777 /opt/lampp/htdocs/testproject”…n how can i do that to my laptop…give me the stages please

  • Aman wrote on 14 October, 2015, 8:47

    Thank Bro
    Ā Great Work

  • adminratna wrote on 27 December, 2015, 7:58

    @onthusiste Mpejane: command ā€œsudo chmod -R 0777 /opt/lampp/htdocs/testprojectā€ is used for setting the permission of file or folder as a super user. For more information please search it in google or your favorite search engines.

  • Israel Rangel wrote on 16 March, 2016, 19:39

    Gracias! Ā Esto si es ayuda!

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*

Copyright © 2017 Programmer to Programmer- A website for web programming and mobile application programming tutorials.
Wordpress themes