this tutorial I will discuss the installation of SARG to help analyze the SQUID program that has been running.
I tried to install using the OS (Operating System) centos, with LAMP configuration is already running.
The first step:
download SARG source that I took from
http://sourceforge.net/projects/sarg/files/sarg/sarg-2.3.1/sarg-2.3.1.tar.gz/download
The second step:
# tar xzvf sarg-2.3.1.tar.gz
enter the directory sarg
# Cd sarg-2.3.1
do configuration
#. / configure – prefix = / usr / local / sarg /
# make && make install
sarg up here installation was successful, now we configure sarg
The third step:
# Vi / usr / local / sarg / etc / sarg.conf
access_log /usr/local/squid/var/logs/access.log
graphs yes
graph_days_bytes_bar_color orange
title “Squid User Access Reports”
output_dir /var/www/htdocs/sarg
user_ip yes
date_format u
overwrite_report yes
www_document_root /var/www/htdocs
The fourth step:
edit httpd.conf or it could be if the existing installation sarg / etc / httpd / conf.d / sarg.conf
Alias / sarg / var / www / htdocs / sarg
<Directory /var/www/htdocs/sarg>
DirectoryIndex index.html
Order allow, deny
Allow from all
</ Directory>
The fifth step:
#vi sargrun
/usr/local/sarg/bin/sarg >/dev/null 2>&1
#chmod 755 sargrun
#./sargrun
to see the results, open the browser, type http://%5Bserver ip]/sarg/
The sixth step:
add the cronjob
#crontab -e
00 00 * * * * /usr/local/sarg/bin/sargrun >/dev/null 2>&1
Finish…..