How to Install LightSquid Squid Proxy Analizer



LightSquid features list:
  • fast and simple install
  • fast log parser generatesmall per user data file
  • perl based cgi script for dynamic generated report pages
  • html template for design
  • no database required
  • no additional perl module
  • various reports
  • user groups support
  • graphics report (v 1.6+)
  • real name (v 1.6+)
  • multilangual interface

LightSquid installation Steps

  1. Download Lightsquid 1.8 from below URL,

for lightsquid demo check below URL,

  1. Extract tar file & copy lightsquid directory to


/var/www/
/usr/src # cp -rf lightsquid /var/www
  1. set 'executable' flag for all cgi & pl files

chmod +x *.cgi
chmod +x *.pl

  1. Configure your Apache server

vi /etc/apache2/httpd.conf & add below entries & save
"/var/www/lightsquid">
AddHandler cgi-script .cgi
AllowOverride All


& Restart Apache Server to take effect above changes.

5. If you want GROUP reports - edit group.cfg

ready 01 SysAdmin
toyota 01 SysAdmin
lancer 02 SysAdmin
spark 02 Developer
i10 03 Developer

6. If you want use REALNAME - edit realname.cfg


ready abcddsa
toyota efghidsa
lancer fdasjflksd
spark fasdasd
i10 dasdasdas

7. Now run check-setup.pl

to verify all your above lightsquid setup steps..

8. Now run lightparser.pl

You will get below messages
parse old statistic
./lightparser.pl access.log.1.{gz|bz2}
./lightparser.pl access.log.2.{gz|bz2}
9. Now access lightsquid via web browser

Enter http:///lightsquid/

10. Setup crontab to run lightparser for every 20 minutes

vi crontab -e
This will execute parser every 20 minutes
*/20 * * * * /var/www/lightsquid/lightparser.pl