Hi I have been trying to get some basic info on a couple of things so I appologize if this sounds totally stupid
I have an apache web server up & running. If I go to my web browser and type in
http://localhost/manual it brings up the man page for apache.
I am trying to get mrtg to work & part of the install process has this line:
"This example below will create an mrtg config file in /home/mrtg/cfg assuming this is a directory visible on your webserver"
EXAMPLE:
[root@dns sbin]# cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
> --global 'Options[_]: bits,growright' \
> --output /home/mrtg/cfg/mrtg.cfg \
>
community@router.abc.xyz
I have manually created the /home/mrtg/cfg directory so when I run config maker everthing appears to be working...
[root@dns sbin]# cd /usr/local/mrtg-2/bin/
[root@dns bin]# ./cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
> --global 'Options[_]: bits,growright' \
> --output /home/mrtg/cfg/mrtg.cfg \
>
Expxxxxxx08@65.205.xx.xxx
[root@dns bin]# env LANG=C ./mrtg /home/mrtg/cfg/mrtg.cfg
2009-12-11 12:03:12, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove 65.205.xx.xxx_3.old updating log file
2009-12-11 12:03:13, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove 65.205.xx.xxx_5.old updating log file
2009-12-11 12:03:13, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove 65.205.xx.xxx_6.old updating log file
[root@dns bin]#
[root@dns sbin]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
I also tried changing /home/mrtg/cfg to /var/www/mrtg (which I created)
My question is how do I make a directory visible on my webserver?
I read that .htaccess provides access. I have been reading the manual pages on getting started...but nothing appears to point me to anything conclusive. Also, I installed Nagios on this same server and its working too when I browse to
http://localhost/nagios (someoone asked if nagios is running in /var/www/nagios) - but it is not I am not sure where nagios web is installed as I just followed nagios step-by-step instructions and viola it works!
I have no colleagues to ask about this and web forums are my only resource, I am sure this is something simple that I need to edit. I am familiar with vi and most command line utilities in unix so most things I do manually.
thanks for any help.
Em
BTW I am running Fedora 9