Установка и настройка Lightsquid в Debian (Ubuntu)

Linux > Установка и настройка Lightsquid в Debian (Ubuntu)
31.12.2014 19:31:12


Наиболее часто встречающиеся слова в статье:

[apache2] [lightsquid] [ExecCGI] [Enabling] [activate] [configuration] [service] [reports] [apt-get] [install]


Статья:

apt-get install lightsquid

конфиг лежит в /etc/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