fokiskin.blogg.se

Awstats ubuntu
Awstats ubuntu












awstats ubuntu
  1. #Awstats ubuntu install
  2. #Awstats ubuntu update

You can check that the database has been created /updated by looking in Time to grab a quick coffee while we wait for the up to 10 minutes to pass and the awstats job to run. if you have a busy site and want up to date stats configure it so it runs more often.ġ0 03 * * * sudo mv /root/awstats /etc/cron.d The cron job below will run every 10 minutes, adjust the time to your needs. Time to move it back again now that the permissions are sorted out. If you remember we moved it out of the way.

#Awstats ubuntu update

To maintain and gather the stats on a frequent and regular basis you will need a cron job to run the awstats update script. Now when the log file is rotated and then recreate it will be readable by www-data. 🙂 To fix that we need to amend the config for the Apache2 log files.įind the line that starts with the key word create and amend the group permission as shown below Sudo chgrp This will only work until the log file is rotated. On Ubuntu this will be file and the directory it is in. They need to be accessible by the user that runs the cronjob, see below, and the user that runs the web service. The permissions are wrong on the Apache2 access.log file for awstats to collect data. This will stop the updates from running and the emails saying the the update failed.

awstats ubuntu

We will need it later so do not delete it. The first two steps are move the cronfile out of the way. Which all sounds a bit complex but takes a few commands 🙂 We therefore, need to stop the crontab job, delete and existing data, run the update and put the crontab job back again. You will not be able to add any initial data as it will have been marked as processed. It fails because (I would have thought the Ubuntu maintainers would have noticed that). This would have failed and created an empty database. Remove Any Existing Dataīy the time you get here you could find that the crontab job has already run. Awstats documentation for setting it up for Postfix. If you are looking to add AWstats monitoring to your Postfix mail server take a look at this it has all the necessary information regarding the settings for the file. local file and the domain specific file will not get over written when awstats gets updated You can then customize Awstats to your needs. There are loads of options to configure read through the file looking at the comments.

awstats ubuntu

These are the options I changed, to get some results. This post assumes your domain is and the network is 192.168.0.0/24.

#Awstats ubuntu install

Sudo apt install awstats libgeo-ip-perl libgeo-ipfree-perl Installing AWstats on Ubuntu 18.04 LTS and some additional packages necessary for the geo and net IP location stats. You can get the number of visitors, Which OS or Browser they used. If you want to see loads of stats for your web site try Installing AWstats on Ubuntu 18.04.














Awstats ubuntu