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.

You may also like...

22 Responses

  1. Alexandre says:

    Good job man! You solved my problem

  2. Marco says:

    It works!!! šŸ˜€

  3. Nath says:

    how about in windows? how to solve it? tx

  4. yoto says:

    man, you saved me!
    thanks!

  5. Hadi says:

    you are awesome!!

  6. Jimmy says:

    Thank you for helping to solve my problem.

  7. tosin says:

    Thanks man.

  8. Ravi says:

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

  9. Nicole says:

    Thanks! it worked for me also!

  10. philip says:

    Thanx mate – great solution to a very frustrating problem

  11. Vijay says:

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

  12. dieqy says:

    THANKS FOR YOUR GOODNESS

  13. thankyou says:

    THANK YOU IT WORKS

  14. onthusiste Mpejane says:

    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

  15. Aman says:

    Thank Bro
    Ā Great Work

  16. adminratna says:

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

  17. Israel Rangel says:

    Gracias! Ā Esto si es ayuda!

  18. sujatha says:

    Thanks a lot….. It works….

  19. Philip Newby says:

    Thank you so much

  20. Dilli says:

    The above solution is fine for linux and then what is the solution for windows systems, please kindly ping answer anyone for this problem. Thanks in advance.

  21. Lazy Mail says:

    I don’t even know how I ended up here,however I
    believed this puut up was good. I do not realize who you’re however definitely you’re going to
    a well-known blogger iin the event you aren’t already.
    Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

*