Awstats was installed with an excellent guide from WebHostingHero. This was very easy and stats were running almost immediately. Stats are now being updated every 24 hours. Would like to receive stats every 2 hours and need to write a Crone Job to automate the task
Here is the problem. Awstats was installed into a directory called Stats NOT in the Cgi-Bin. Icons were installed in a direactory called Images.
All examples on the net refer to Crone Jobs to automate Awstats in the Cgi-bin. Various commands have been used in Crone Job without success
Only solution is to start again and reinstall in the cgi-bin but is this really necessary since the stats are working fine
You do not need to move AWStats to another directory. cron can control tasks in any directory.
Don't you have a "Cron jobs" icon in cPanel ? The cron interface within cPanel is user friendly and it allows you to change the schedule of execution of the cron jobs.
If you use a "classic" cron interface, you specify that the job must run every two hours with this kind of command:
Am really a dummy in respect of this code. Your example is similar to many others shown on the net. The problem that I have is how to replace 'user name / full path to/ your config. Would it be possible to provide a script with these items completed with a typical user. Then I would replace with those re my setup
Believe the script should work but it does not. Have removed dev/null 2>&1 because this produces an email that shows the problem. This is a syntax error and looking at the net it is a problem too far for me. Have continued to vary the command line input without success. My webhost has an excellent forum but there has not been one reply for help re this subject. Will leave Awstats updating every 24 hours. Thank you for your efforts to resolve the problem
Stats are now updating every 15 minutes. As expected the problem was a path issue. Omitting dev/null 2>&1 was very helpful because this generated emails that provided ideas for a solution. Always like a challenge so am pleased this problem has been resolved. There are lots of sites on the net with information regarding this subject but found most to be confusing. The following site however was very helpful