Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    drm
    drm is offline
    Member
    Join Date
    Dec 2003
    Posts
    16

    Question Cron Job for locally installed AWStats

    Hi

    I have installed AWStats onto a clients webspace so that they can access their stats without having access to CPanel. The configuration seems to work fine and the stats are correctly updated when updating via the browser link.

    I want to update the stats using a cron job rather than give the client the opportunity to repeatedly update via the browser.

    Can anyone help me with the cron job command syntax I should use for this?

    Any help would be appreciated

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    29

    Default

    perl /path/to/awstats.pl -config=www.sitename.com -update=1

  3. #3
    drm
    drm is offline
    Member
    Join Date
    Dec 2003
    Posts
    16

    Default

    Thanks. I tried it but it didn't work, nothing happened.

    Any suggestions?

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    29

    Default

    Did it email you the standard output? If so, what did it say? If not, then the cronjob didn't run.

  5. #5
    drm
    drm is offline
    Member
    Join Date
    Dec 2003
    Posts
    16

    Default

    I get the following error message in the email:

    "Error: AWStats database directory defined in config file by 'DirData' parameter (../webstats) does not exist or is not writable."

    The files in this folder update fine when using the browser link. Do I need different permissions when using the cron job?

  6. #6
    drm
    drm is offline
    Member
    Join Date
    Dec 2003
    Posts
    16

    Default

    It works now, although I'm not sure why it didn't before....

    I changed 'DirData' parameter from ../webstats to /webstats and it was ok.

    The problem I was originally having was because I didn't precede the command with perl. So thanks for your help with that.



Similar Threads & Tags
Similar threads

  1. Cron Job !!
    By darksecu in forum New User Questions
    Replies: 11
    Last Post: 09-08-2010, 10:56 AM
  2. Keep getting a cron job
    By NLCJ in forum cPGS Discussions
    Replies: 2
    Last Post: 10-20-2009, 04:05 PM
  3. Cron Job
    By HyperVirus in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-01-2005, 03:06 PM
  4. cron job
    By Stafford in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-27-2003, 02:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube