Dglog: Difference between revisions
Dubiousjim (talk | contribs) (Categories) |
(replace /etc/init.d with rc-service) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{obsolete|There appears to be no upstream source for this script... Also is dansguardian still maintained? Has it been replaced by e2guardian? (both are still packaged though)}} | |||
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 {{path|/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 = | |||
{{Cmd|apk add lighttpd perl}} | {{Cmd|apk add lighttpd perl}} | ||
= Configure lighttpd = | |||
Edit the {{Path|/etc/lighttpd.conf}} file | |||
{{Cmd|nano +44 /etc/lighttpd/lighttpd.conf }} | {{Cmd|nano +44 /etc/lighttpd/lighttpd.conf }} | ||
Uncomment line: | Uncomment the following line: | ||
include "mod_cgi.conf" | include "mod_cgi.conf" | ||
Save and exit | Save and exit. | ||
= Installing dglog = | |||
Make the necesary directory | Make the necesary directory | ||
Line 37: | Line 28: | ||
Download | Download | ||
{{Cmd|wget | {{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 | ||
Line 45: | Line 36: | ||
Uncomment and change | Uncomment and change | ||
$cgipath = 'http://your.ip/cgi-bin/dglog/dglog2.pl'; | $cgipath = '<nowiki>http://your.ip/cgi-bin/dglog/dglog2.pl</nowiki>'; | ||
Comment | Comment | ||
Line 51: | Line 42: | ||
$cgipath = $ENV{SCRIPT_NAME}; | $cgipath = $ENV{SCRIPT_NAME}; | ||
= Starting = | |||
Starting http server and adding to boot. | |||
{{Cmd| | {{Cmd|rc-service 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. | Done! Now you can browse to <nowiki>http://your.ip/cgi-bin/dglog/dglog2.pl</nowiki> and check the DansGuardian log file. | ||
[[Category: | [[Category:Server]] | ||
[[Category:Monitoring]] | |||
[[Category:Perl]] |
Latest revision as of 10:25, 17 November 2023
This material is obsolete ... There appears to be no upstream source for this script... Also is dansguardian still maintained? Has it been replaced by e2guardian? (both are still packaged though) (Discuss) |
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.
rc-service 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.