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 /etc/init.d/httpd restart cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg public at 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) For what it's worth, when I 'tail /etc/httpd/logs/error_logs", I get the following [Wed Feb 27 15:41:13 2008] [error] [client 10.200.200.58] Directory index forbidden by Options directive: /var/www/mrtg/ Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080227/2b45e9d7/attachment.html>
Rogelio wrote:> [Wed Feb 27 15:41:13 2008] [error] [client 10.200.200.58] Directory index > forbidden by Options directive: /var/www/mrtg/ > > Any suggestions?<http://httpd.apache.org/docs/2.2/mod/core.html#options> <http://httpd.apache.org/docs/2.2> is quite handy anyway, if you're toying around with apache configuration files. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080228/d5b05607/attachment.sig>
Rogelio wrote:> [Wed Feb 27 15:41:13 2008] [error] [client 10.200.200.58] Directory index > forbidden by Options directive: /var/www/mrtg/Run MRTG's indexmaker to make an index file(index.html), or update the apache config to allow Indexes for that directory. nate
On Thu, Feb 28, 2008 at 11:21 AM, Rogelio <scubacuda at 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.confmy mrtg.conf file is like this. this is on Centos 4.4 [root at 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 at 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/ -- Thank you Indunil Jayasooriya