Saturday 1 October 2011

Accessing Squid Reports Through Web Local Lan

open your configuration file of webalizer or sarg. which one want to show the squid reports.
for sarg the following steps will be followed:

sudo vim /etc/sarg/sarg.conf

find
/output_dir /var/www/html/squid-reports


comment this line with # sign
and write another line just below the commented line
output_dir /var/www/sarg

save and exit
:wq!

now create a folder with a name of sarg in /var/www/

sudo mkdir /var/www/sarg
sudo chomd -R 775 /var/www/sarg

now run the sarg command from CLI
yourserver# sarg -e
completed:

checkout your server ip:
ifconfig

open a browser in any pc connected in LAN and access the url
http://your-server-ip/sarg
you will see the squid reports on your browser through web from any where in LAN.

Enjoy and Good Luck.
for any query just comment here or for quick reply you can put an email your query.
shahmeer09@gmail.com

No comments:

Post a Comment