![]() If awstats doesn't impress you, then you should try something more current. Then view your statistics with the processed data using browserĭelete the processed log files in /var/lib/awtstats (directory defined by DirData parameter) using RM although you have to be root. perl This is what the script does/asks (you can do all these steps manually instead of running if you prefer): A) tries to determine your current log format from your Apache web server configuration file nf (it asks for the path if not found). */10 * * * * root /usr/lib/cgi-bin/ -config= -update > /dev/null Once the config is done, process the config file by usr/share/doc/awstats/examples/ /var/log/apache2/access-anoneh.log.* > combined-anoneh.log Don't attempt to "cat" the log files, it won't work. You can if you must, combine multiple log files into one by tool. It could be "awstats-icon" like above or default "icons" so make sure both are pointing to the same folder. One for apache using alias and one for awstats eg. LogFormat=1 (otherwise, search keywords and browser stats will be null).LogFile="/var/log/apache2/anoneh_access.log".Options ExecCGI -MultiViews +SymLinksIfOwnerMatchĮrrorLog /var/log/apache2/error-awestats.logĬustomLog /var/log/apache2/access-awestats.log combinedĬp /etc/awstats/nf /etc/awstats/ ServerAdmin /awstatsclasses "/usr/share/awstats/lib/"Īlias /awstats-icon/ "/usr/share/awstats/icon/"Īlias /awstatscss "/usr/share/doc/awstats/examples/css" Today, I tried to install awstats on CentOS7 and the process became a little different. Since awstats is in perl, then you have to configure the cgi location That post actually teaches you to install awstats on CentOS 6, where you need to download the awstats package from sourceforge and install it and its dependent software manually. Setup ('/etc/awstats/nf' file, web server or permissions) may be wrong.Ĭheck config file, permissions and AWStats documentation (in 'docs' directory).Īctual Reason : Log files are not readable because log files are copied or moved. You must edit it for using this version of AWStats. Once processing is done you can then view the stats from your browser.Ĭommon errors Error: SiteDomain parameter not defined in your config/domain file. LoadPlugin=tooltips, hashfiles & geoipfree.SkipHosts - Do not include access from clients that match following criteria.This processing is done by command line by specifying the config files. Since they will be looking at raw apache log files, it must be processed first. The idea is that with one installation of Awstats, you can check the hits of a particular domain by specifying in the parameter like /usr/share/doc/awstats/examples/ - some tools are kept here instead of /usr/share/doc/awstats/tools./usr/lib/cgi-bin/ -, the main results generator./var/lib/awstats - default place where the results will reside./usr/share/awstats/ - most of the stuff.Subject to your version, the location of the files are ![]() Tested installation an Ubuntu 10.10 and 12.04. I chose awstats because it is part of Ubuntu's repositories. Posted under » Ubuntu » Linux » Perl » SEO updated on 30 March 2012Īwstats is not new and I have been using it since 2000 because google analytics is risky and slow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |