Access Forbidden Error 403 Apache And Linux
Contents |
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 wget error 403 forbidden linux find it... so here I am.I have just installed apache (# pacman
How To Fix 403 Forbidden Error In Linux
-S apache)Configured httpd.comf, and created 2 virtual hosts with extra/httpd-vhosts.confWhen I believed every thing was ok, I have apache forbidden you don't have permission to access 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)
403 Forbidden Apache Ubuntu
I allways get Access forbidden Error 403I have set 777 permissions 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 apache 403 client denied by server configuration the virtual host, all file/dir permissions very permisive... so that can't be the problem.Am I missing some 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"....
files will yield something like: (13)Permission denied: access to / There are a few things that could be the problem: Make sure
Apache 403 Forbidden Mac
it's not denied by Apache Most apache Configurations have something like this
Apache File Permissions Deny Server Access
in there:
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 http://unix.stackexchange.com/questions/169513/403-forbidden-you-dont-have-permission-to-access-on-this-server-apache2 developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “403 Forbidden - You don't have permission to access / 403 forbidden on this server” - apache2 localhost on Linux Mint 17 up vote 8 down vote favorite 1 Desired Behaviour To be able to access localhost in browser without getting 403 Forbidden message. Current Behaviour Navigating to localhost in browser returns: Forbidden You don't have permission to access / on this server. Apache/2.4.7 (Ubuntu) Server at localhost Port 80 Steps To Reproduce I set up a local server on Linux Mint 17 Cinnamon using these steps: $ sudo apt-get install apache2 php5 apache 403 forbidden $ sudo apt-get install php5-dev php5-cli $ sudo apt-get install php-pear $ pear version // PEAR Version: 1.9.4 // PHP Version: 5.5.9-1ubuntu4.5 // Zend Engine Version: 2.5.0 // Running on: Linux my-computer 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 $ pecl version ## as above $ sudo pecl install mongo ## this installs the mongo driver At this point, I was prompted with something containing [no] and I pressed enter. $ cd /etc/php5/apache2 $ sudo vi php.ini At the end of the file I added: extension=mongo.so $ sudo /etc/init.d/apache2 restart At the end of this process, yesterday, I could access localhost successfully. Today, I am getting the 403 error when navigating to localhost. Troubleshooting Apache Status me@my-computer ~ $ /etc/init.d/apache2 status * apache2 is running Permissions /var drwxr-xr-x 12 root root 4096 Nov 23 08:58 var /var/www drwxr-xr-x 3 root root 4096 Nov 23 08:58 www /var/www/html drwx------ 8 me me 4096 Nov 22 01:07 html /var/www/html/index.html -rw-r--r-- 1 root root 11510 Nov 23 08:59 index.html linux-mint apache-httpd share|improve this question edited May 13 at 2:49 Jeff Schaller 10.4k41939 asked Nov 23 '14 at 11:00 user1063287 231138 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote I am a linux newby newb, so not sure if this is the definitive answer, however looking at the permissions of /var/www/html showed me that only user root had Read Write Execute permissions. As I was