Re: [CentOS] MRTG question on CentOS

2008-02-28 Thread Ralph Angenendt
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


pgpXjoNrRdNH2.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MRTG question on CentOS

2008-02-28 Thread nate
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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MRTG question on CentOS

2008-02-28 Thread Indunil Jayasooriya
On Thu, Feb 28, 2008 at 11:21 AM, Rogelio [EMAIL PROTECTED] 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

[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 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
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] MRTG question on CentOS

2008-02-27 Thread Rogelio
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 [EMAIL PROTECTED]
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?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos