Entradas

Mostrando entradas de julio, 2022

Installing Webalizer with nginx Websever in Ubuntu

 Thanks to: https://ixnfo.com/ Webalizer  – a program for reporting and statistics on log files. The Webalizer installation command in Ubuntu: 1 sudo apt-get install webalizer After installation, move the created directory /var/www/webalizer to the root of the Apache2 /var/www/html/ web server: 1 sudo mv /var/www/webalizer /var/www/html/ Open the configuration file Webalizer in any text editor, for example nano: 1 sudo nano /etc/webalizer/webalizer.conf Let’s specify what log files should be analyzed, by default there is already indicated: 1 2 LogFile /var/log/apache2/access.log.1 LogType clf You can specify ftp logs as follows: 1 2 LogFile /var/log/proftpd/xferlog LogType ftp You can also specify the type of logs squid or w3c. And also change the directory where reports will be created: 1 OutputDir /var/www/html/webalizer If necessary, we specify the encoding of HTML pages: 1 HTMLHead <META http-equiv="Content-Type" CONTENT="text/html" charset="UTF-8"&