veritrio.blogg.se

Awstats apache log format
Awstats apache log format










Perl /usr/share/awstats/tools/awstats_Īnd follow the instructions. Instead of creating these configuration files, you can use AWStats' configuration tool. This script reads AWStats configuration files in /etc/awstats and updates the stats for the sites that are defined in these configuration files.

Awstats apache log format update#

The package comes with an script to update stats shown on AWStats. Reason: The commands for running awstats_ and awstats_ require user prompts. One last thing, which is the actual aim, make AWStats read logs and convert them to stats. Now if you have done all steps correctly, you should be able to see AWStats running on after restarting Apache's rvice unit. Include this file (in AUR case, the path is /etc/httpd/conf/extra/nf) to Apache's main configuration: ScriptAlias /awstats/ "/usr/share/webapps/awstats/cgi-bin/" But in case you want to create your own configuration, default one is this:Īlias /awstatsclasses "/usr/share/webapps/awstats/classes/"Īlias /awstatscss "/usr/share/webapps/awstats/css/"Īlias /awstatsicons "/usr/share/webapps/awstats/icon/"

awstats apache log format

The package in the AUR has a default one, and it is working without any problem. If you set the log format, then next step is including AWStats configuration file in Apache. Including AWStats configuration in Apache's configuration So if you are changing Apache's log format now, you probably should delete old log files not to confuse AWStats. Warning: At this point, if apache has started to log access with different format, AWStats will complain about this because it cannot read. ServerName ErrorLog "/var/log/httpd/returnfalse-error_log"ĬustomLog "/var/log/httpd/returnfalse-access_log" combined To do so, your Apache configuration should look like this: Unless you want a different behavior, you should set your access log format as 'combined'. LoadModule perl_module modules/mod_perl.soīy default AWStats requires Apache to record access logs as 'combined'.

awstats apache log format

To enable mod_perl in Apache, you should add following line to Apache configuration ( /etc/httpd/conf/nf): When Apache HTTP Server is used as a web server, the mod_perl AUR package is required as well.

awstats apache log format

2.3 Including AWStats configuration in Apache's configuration.2.2 Configure Apache to log for AWStats.










Awstats apache log format