There are various other plugins like WP Slimstat and Statpress which record all the data in a SQL database. The Wassup plugin does with current visitors and gives a fair bit of information. I have experimented with different plugins to find out what works best for getting the detailed stats on visitors and there some pros and cons to each. If you are using a plugin since the inception of your website then all you need to worry about it getting the data out of the plugin. If you are familiar with WordPress then you can always use a plugin which does this for you but all the plugins usually provide the statistics from the period you start using them. For instance, if you have a blog with huge amount of posts and you need an individual post statistic then it is not easily available. You can also use Google Analytics but it also has certain restrictions. WordPress by itself does not provide any website traffic stats and if you are using cPanel then you might rely on AWStats for getting the required data but it is limited to posts with certain amount of traffic and does not provide a complete picture of your website traffic. Includes many charts and tables about traffic to your site.Getting a detailed traffic report of your website is necessary for analyzing your visitors and getting the information required for talking decisions. Run the following as root, (sudo will not work) Sudo /usr/share/awstats/wwwroot/cgi-bin/ -update -config=slyfoxsos Sudo perl /usr/share/tools/awstats_Īdd the following to a script to add new log entries: Perl -config=mysite -output -staticlinks > The first option is to build the main reports, in a static HTML page, from the command line, using the following syntax (skip to the second option if you only have CGI access): Note: you must have created a statistics data base for the analysis period by processing your log files before you try to create reports. To see the analysis results, you have several options depending on your security policy. Run reports: Building and reading reports When the create/update is finished, you should see a similar result on your screen: Where mysite must be substituted with the domain/virtual host name you selected earlier during AWStats configuration.ĪWStats will read the configuration file (or if not found, nf) and create/update its database with all summary information issued from analyzed log file.ĪWStats statistics database files are saved in directory defined by the DirData parameter in configuration file. The AWStats create (and update) statistics database command is: The first log analysis should be done manually from the command line since the process may be long and it's easier to solve problems when you can see the command output (if you don't have Command Line access, skip to Step 2). Process logs: Building/updating statistics database Also make sure to limit who can see the awstats reports. One reason to use Yum to install/manage awstats is that you don’t have to do any of the work to keep it updated (make sure you enable automatic yum updates in your systems services config (menu: Desktop->System Settings -> Server Settings -> Services check the “yum” option is checked and you click the “Start” button while it’s highlighted). You can see near the end of my Incremental backups with rsync post for more information on that, if you’re interested.Ī word of caution: AWStats is often the target of worm attacks through XSS (cross-site scripting). (I don’t administer any high-traffic sites, so it’s not critical to have the most up-to-date records). Rather, I have a cronjob set to run the -update script a once per day I chose not to allow web users to do automatic updates. You should now be able to visit and you’ll see the fruits of your labor. This will hopefully create a config file fore each of your domains in /etc/awstats with the name. So, to do this with multiple domains, just repeat the steps above, making sure to make the appropriate changes to each domain… If all goes well, you should see something along the lines of: AWSTATS is an Apache log file analyzer that will show details about traffic to your web sites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |