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.
Good job man! You solved my problem
It works!!! š
how about in windows? how to solve it? tx
man, you saved me!
thanks!
you are awesome!!
Thank you for helping to solve my problem.
Thanks man.
I get this error when im trying to add something to the database. the website itself works find.
What could be the problem then?
Thanks! it worked for me also!
Thanx mate – great solution to a very frustrating problem
I am using xampp on Windows platform, what would be the option for me to solve this error
THANKS FOR YOUR GOODNESS
THANK YOU IT WORKS
works!
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
Thank Bro
Ā Great Work
@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.
Gracias! Ā Esto si es ayuda!
Thanks a lot….. It works….
Thank you so much
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.
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!