LIGHTSQUID COMPILATION IN RHEL6

Required software:

Perl
http server (Apache, lighthttpd, etc)
Squid

#mkdir –p /var/www/htdocs/

#cd /var/www/htdocs/

#mkdir lightsquid

#cd lightsquid

#wget https://indoit.googlecode.com/files/lightsquid-1.8.tar.gz

#tar -xzf lightsquid-1.8.tar.gz

#cd lightsquid-1.8

#chmod +x *.cgi

#service  httpd  stop

#rm  ‐rf   /usr/local/lamp/apache

*/if apache customised  for lamp then remove it/*

#yum install httpd

#yum install perl*        

#chown -R apache:apache *

#vim /etc/httpd/conf/httpd.conf

<Directory "/var/www/html/lightsquid">

AddHandler cgi-script .cgi

AllowOverride All

</Directory>


#yum –y install squid

#yim /etc/httpd/conf.d/squid.conf

   Change “From local host” to from all

#yum install httpd

#vim /var/www/html/lightsquid/lightsquid-1.8./lightsquid.conf

*/replace all default path to our path /*


#path to additional `cfg` files

$cfgpath         ="/var/www/html/lightsquid/lightsquid-1.8";

path to `tpl` folder

$tplpath         ="/var/www/html/lightsquid/lightsquid-1.8/tpl";

#path to `lang` folder

$langpath        ="/var/www/html/lightsquid/lightsquid-1.8/lang";

#path to `report` folder

$reportpath      ="/var/www/html/lightsquid/lightsquid-1.8/report";

#path to access.log

$logpath         ="/var/log/squid";

#path to `ip2name` folder

$ip2namepath     ="/var/www/html/lightsquid/lightsquid-1.8/ip2name";


#cd /var/www/html/lightsquid-1.8.

#./check-setup.pl

#./lightparser.pl

# service httpd restart

#service squid restart

====è>>

54.85.102.136/ lightsquid-1.8

http://54.85.102.136/Squid/cgi-bin/cachemgr.cgi

ç=========



#cd /var/www/html/lightsquid/lightsquid-1.8/report/

#rm deleteme

# service httpd restart

#  service squid restart

========è

54.85.102.136/Squid/cgi-bin/cachemgr.cgi

54.85.102.136/ lightsquid-1.8

ç========





Comments

Popular posts from this blog

Odoo 17 - large database restore error

Complete Guide to Installing Odoo 17 on Digital Ocean with Ubuntu 22.04

Whhtmltopdf error