WebFaction
Community site: login faq

I installed and configured awstats as per Webfaction documentation, and the awstats page loads but it continued to say "Never updated (See 'Build/Update' on awstats_setup.html page)" after two days of patiently waiting.

I can manually run the /awstats/update_awstats.sh script, and this works fine, but the script is not running automatically every hour as I believe it should.

If the script is supposed to be run as a cron job, then perhaps the reason it didn't get configured is that I already have cron jobs configured (which were untouched by the awstats installation).

Can someone can tell how to get the script running automatically (when I run it manually I HAVE to run it from from the directory its located in $HOME/webapps/awstats otherwise it can't find the files referenced). Not sure how to manage this up in crontab... (not knowing much about Linux)

asked 01 Nov '11, 19:02

rohan
111
accept rate: 0%


The crontab entry should look like this (replace 'stats' with your app's name),

9 * * * * cd ~/webapps/stats;./update_awstats.sh
permanent link

answered 01 Nov '11, 19:17

johns
5.4k412
accept rate: 23%

Great thanks, that should work. For anyone else with the same problem the exact command is:

9 * * * * cd ~/webapps/awstats;sh ./update_awstats.sh

(change "awstats" to whatever you named your app as during installation)

permanent link

answered 01 Nov '11, 19:33

rohan
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×50
×18

question asked: 01 Nov '11, 19:02

question was seen: 6,261 times

last updated: 01 Nov '11, 19:33

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM