Munin server with apache - You don't have permission to access /munin on this server

user959129 picture user959129 · Feb 3, 2012 · Viewed 45.1k times · Source

On a fresh apache and munin server install when I to to domain.com/munin I get this error.

Forbidden

You don't have permission to access /munin on this server.

for these directories I did a chown -R munin:munin

dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin

What am I supposed to do with apache? I restated apache with /etc/init.d/apache restart but still get forbidden. I have made no changes to the apache config files from a fresh apache install.

Answer

j7nn7k picture j7nn7k · Aug 21, 2012

Apache < 2.4

Open the Munin Apache config file:

vim /etc/munin/apache.conf

change the the following lines:

Order allow,deny
Allow from localhost 127.0.0.0/8 ::1
Options None

like so:

Order allow,deny
Allow from all
Options FollowSymLinks SymLinksIfOwnerMatch

Restart Apache and you're golden.

Apache > 2.4

Open the Munin Apache config file:

vim /etc/munin/apache24.conf

change the the following lines:

Require local   
Options None   

like so:

Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch

Restart Apache and you're golden.

sudo service apache2 restart