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/">
Require local
</Location>
# 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
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 reloadroot@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