Dglog: Difference between revisions

From Alpine Linux
m (Minor spelling and grammar corrections. Marked a dead link.)
(https dead link)
Line 26: Line 26:
Download  
Download  


{{Cmd|wget http://dansguardian.pl/pobierz/dglog2.pl{{dead link}} -P /var/www/localhost/htdocs/cgi-bin/dglog}}
{{Cmd|wget https://dansguardian.pl/pobierz/dglog2.pl{{dead link}} -P /var/www/localhost/htdocs/cgi-bin/dglog}}


Edit the dglog2.pl file
Edit the dglog2.pl file

Revision as of 20:28, 25 August 2023

dglog is a CGI log analyzer for the web content filter DansGuardian, which is being developed under the GNU General Public License (GPL). You need to have DansGuardian installed and working. Dglog2 will read the access.log log file from /var/log/dansguardian directory. You can use dglog to to have a basic analysis of the dansguardian log. It's very simple and basic, but it's a good start.

Install http server and perl

apk add lighttpd perl

Configure lighttpd

Edit the /etc/lighttpd.conf file

nano +44 /etc/lighttpd/lighttpd.conf

Uncomment the following line:

include "mod_cgi.conf"

Save and exit.

Installing dglog

Make the necesary directory

mkdir -p /var/www/localhost/htdocs/cgi-bin/dglog

cd /var/www/localhost/htdocs/cgi-bin/dglog

Download

wget https://dansguardian.pl/pobierz/dglog2.pl[Dead Link] -P /var/www/localhost/htdocs/cgi-bin/dglog

Edit the dglog2.pl file

nano +104 dglog2.pl

Uncomment and change

$cgipath = 'http://your.ip/cgi-bin/dglog/dglog2.pl';

Comment

$cgipath = $ENV{SCRIPT_NAME};

Starting

Starting http server and adding to boot.

/etc/init.d/lighttpd start && rc-update add lighttpd default

Done! Now you can browse to http://your.ip/cgi-bin/dglog/dglog2.pl and check the DansGuardian log file.