iamgugl.blogg.se

Awstats restart
Awstats restart







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/" The package in the AUR has a default one, and it is working without any problem.

awstats restart

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

awstats restart

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'.

awstats restart

LoadModule perl_module modules/mod_perl.soīy default AWStats requires Apache to record access logs as 'combined'. 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. 2.3 Including AWStats configuration in Apache's configuration.2.2 Configure Apache to log for AWStats.









Awstats restart