On Thu, Feb 28, 2008 at 11:21 AM, Rogelio scubacuda@gmail.com wrote:
I'm trying to get MRTG up and running on CentOS, but the displayed http page says that I don't have permission to access /mrtg/ on the server.
Here are my commands
yum install mrtg vim /etc/httpd/conf.d/mrtg.conf
my mrtg.conf file is like this. this is on Centos 4.4
[root@worldnet conf.d]# cat /etc/httpd/conf.d/mrtg.conf # # This configuration file maps the mrtg output (generated daily) # into the URL space. By default these results are only accessible # from the local host. # Alias /mrtg /var/www/mrtg
<Location /mrtg> Order deny,allow Deny from all Allow from all </Location>
/etc/init.d/httpd restart cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg public@10.200.200.1 mrtg /etc/mrtg/mrtg.cfg env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg (type again, per the MRTG instructions)
then, you need index.html file.pls issue below command.
indexmaker /etc/mrtg/mrtg.cfg > /var/www/mrtg/index.html
R u on Centos 5.X? What about Selinux ? is it enabled? if it is enabled, pls set apaches's /var/www/html Selinux context to /var/www as follows
chcon --reference=/var/www/html/ -R /var/www/