Ubuntu 14.04
Sponsored Link

Squid Log Report : LightSquid2014/06/08

 
Install LightSquid to generate Squid Log Report.
[1] Install and Configure LightSquid.
root@prox:~#
apt-get -y install lightsquid
root@prox:~#
vi /etc/apache2/conf-available/lightsquid.conf
<Location "/lightsquid/">
   
# add ExecCGI

   
Options +ExecCGI

    Require local
   
# add IP addresses you permit

   
Require ip 10.0.0.0/24

</Location>
root@prox:~#
vi /etc/apache2/mods-enabled/mime.conf
# line 219: uncomment and add filename extensions for CGI

AddHandler cgi-script .cgi
.pl
root@prox:~#
a2enmod cgi

Enabling module cgi.
To activate the new configuration, you need to run:
    service apache2 restart
root@prox:~#
a2enconf lightsquid

Enabling conf lightsquid.
To activate the new configuration, you need to run:
  service apache2 reload
root@prox:~#
/etc/init.d/apache2 restart

 * Restarting web server apache2
   ...done.

# generate reports

root@prox:~#
/usr/share/lightsquid/lightparser.pl
# reports are generated daily by /etc/cron.d/lightsquid

[2] Access to the "http://(server's hostname or IP address)/lightsquid/". it's Ok if following Squid report site is shown normally.
Matched Content