Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Munin & Munin-node
PostPosted: Fri Apr 22, 2011 7:32 am 
Offline
Newbie

Joined: Fri Apr 22, 2011 7:27 am
Posts: 4
Website: http://www.mastersofpc.co.uk
Hello.

I followed the library guide on configuring Munin and Munin-node at http://library.linode.com/server-monitoring/munin/debian-6-squeeze, for displaying my general VPS statistics, but whenever I visit the URL for the statistics page it says "permission is denied to access / on this server", can I please have help me fix this.

_________________
Mark Leach


Top
   
 Post subject:
PostPosted: Fri Apr 22, 2011 1:52 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
What path did you specify for your virtualhost? Was it this?

Quote:
DocumentRoot /var/cache/munin/www


Make sure that your webserver user (www-data) has read access to that location.


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 6:32 am 
Offline
Newbie

Joined: Fri Apr 22, 2011 7:27 am
Posts: 4
Website: http://www.mastersofpc.co.uk
Yes I did specify that directory as the virtualhost DocumentRoot.

How would i go about changing the permissions so that the webserver user (www-data) has read access to that location?

Regards.

_________________
Mark Leach


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 10:10 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
chmod and/or chown. chmod changes permissions, probably just need to set the directories to 755 and files to 644 and that'll should be enough, so long as permissions are similar for the entire path. chown changes ownership.

http://www.google.com/search?q=chmod

http://www.google.com/search?q=chown

Wait a second, I just looked at my install and while, I redirected to munin where to put it's files, the installer for on Debian still created the /var/cache/munin/www directories and looking at that right off the bat, it looks like permissions should be fine.

I'd double check that files are in fact in that location to be served up first and that munin is functioning. I recall following that tutorial and got it working.


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 12:33 pm 
Offline
Newbie

Joined: Fri Apr 22, 2011 7:27 am
Posts: 4
Website: http://www.mastersofpc.co.uk
I am sorry to say that it still comes up with the 403 Forbidden error, even with your recommended chmod permissions, is there any thing else that could be causing the problem, as by looking at the log files everything is working correctly.

I have also had a look at the apache2 error log and it says:

Quote:
client denied by server configuration


So that would suggest the vhost file is wrong but looking at it

Quote:
<VirtualHost 178.79.136.75:80>
ServerAdmin mark.leach@mastersofpc.co.uk
ServerName statistics.mastersofpc.co.uk
DocumentRoot /var/cache/munin/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
LogLevel notice
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
ServerSignature On
</VirtualHost>


there appears to be nothing wrong with it, as it was copied from the tutorial and modified to suit my needs.

Any other thoughs would be appreciated.

Many thanks in advance.

Regards.

_________________
Mark Leach


Top
   
 Post subject:
PostPosted: Sun Apr 24, 2011 6:05 am 
Offline
Newbie

Joined: Fri Apr 22, 2011 7:27 am
Posts: 4
Website: http://www.mastersofpc.co.uk
After experimenting with various configurations, all there appears that needs to be in the '<Directory />' config section is 'allow from all', I would suggest adding this to the library page if anyone using the library page gets errors accessing the Munin output.

Regards.

_________________
Mark Leach


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group