Error 403 Apache 2.2
files will yield something like: (13)Permission denied: access to / There are a few things that could be the problem: Make sure it's not denied by Apache Most apache Configurations have something like this in there:
1 Topic closed #1 2009-10-29 06:01:44 iopo Member Registered: 2009-10-26 Posts: 31 [SOLVED] Apache Access forbidden Error 403 localhost Hello,I believe this should be some thing very stupid, but I can't find it... so here I am.I have just installed apache (# pacman -S apache)Configured httpd.comf, and created 2 virtual hosts with extra/httpd-vhosts.confWhen I believed every thing was ok, I have started Apache as root (# apachectl start)Started ok, no errors (also tried start it as user with sudo, and /etc/init.d/httpd start)So when I go to http://localhos (or the virtual host) I allways get Access forbidden Error 403I have set 777 permissions https://www.petefreitag.com/item/793.cfm to /srv/http and the virtual host (/home/username/local-web/site1.dev)I have tried every thing , changed dir owners to "http:http" ...At the Apache error log I get: "[Thu Oct 29 02:39:48 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied" There is a very simple plain index.html file at /srv/http and the virtual host, all file/dir permissions very permisive... so that can't be the problem.Am I missing some https://bbs.archlinux.org/viewtopic.php?id=83481 thing? Do I need to manually create the "http" user and/or add it to some group? Last edited by iopo (2009-10-29 22:06:59) Offline #2 2009-10-29 08:20:04 wuischke Member From: Suisse Romande Registered: 2007-01-06 Posts: 630 Re: [SOLVED] Apache Access forbidden Error 403 localhost Please check your http.conf and see if "Options Indexes" is set for your apache root to allow directory listings. Offline #3 2009-10-29 08:31:03 iopo Member Registered: 2009-10-26 Posts: 31 Re: [SOLVED] Apache Access forbidden Error 403 localhost Yes, I have set Options Indexes "All" to /srv/httpDocumentRoot "/srv/http".... here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads http://stackoverflow.com/questions/18948996/403-forbidden-you-dont-have-permission-to-access-folder-name-on-this-server with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 403 Forbidden You don't have permission to access /folder-name/ on this server up vote 9 down vote favorite 7 I was looking for an answer to my problem, but I could'nt find any answer which solves my case. The problem error 403 is that I can't access the app folders in my var/www/ folder. When I go to localhost/ i get the message that my server is running and I have access to phpmyadmin too. But when I go to any localhost/folder-name i get the 403 error: Forbidden You don't have permission to access /folder-name/ on this server. Apache/2.2.22 (Ubuntu) Server at localhost Port 80 How can I solve it? Btw I'm using Ubuntu 13.04, and thanks for your answers. :) apache ubuntu share|improve this error 403 apache question asked Sep 22 '13 at 21:36 ssuljic 6471623 1 You might want to post your the vhost section of your apache config, so people can check what you've configured and hopefully spot what's incorrect! –Gagravarr Sep 22 '13 at 21:43 Do you mean this? pastebin.com/q8R1p9sb –ssuljic Sep 22 '13 at 21:48 Nope, we need this bit where the vhost is defined. That looks to just be the snippet that imports the file with the vhost –Gagravarr Sep 22 '13 at 21:49 Place an index.html inside that folder and see if that allows you to visit it. If it does you have -Indexes options which means you won't be able to list any folders. –Prix Sep 22 '13 at 21:54 It has the default index.html and it does work, how can I fix that? And here's my entire .conf pastebin.com/RZcEszzx –ssuljic Sep 22 '13 at 22:00 | show 1 more comment 3 Answers 3 active oldest votes up vote 32 down vote accepted Solved the problem with: sudo chown -R $USER:$USER /var/www/folder-name sudo chmod -R 755 /var/www Grant permissions share|improve this answer edited Feb 15 '14 at 19:09 arulmr 4,17062548 answered Sep 23 '13 at 1:27 ssuljic 6471623 1 thanks ...that helped –Poonam Bhatt Dec 2 '13 at 11:09 It didn't worked for me. I'm getting chmod: cannot operate on dangling symlink `phpmyadmin' –Emre Koc Apr 30 '14 at 19:55 This works fine &nda