Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default enabling AWSTATS for 1 account

    I have AWSTATS disabled in WHM, but I would like to turn it on for specific accounts.

    I added 'skipawstats=0' in the user config file located in /var/cpanel/users and restarted cpanel.

    It does show up in CPanel but when I click on the link I get this error :

    Error: Couldn't open config file "awstats.xxxxx.com.conf" nor "awstats.conf" after searching in path "./,/home/xxxxx/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats": No such file or directory

    Setup (Config file, web server or permissions) may be wrong.
    See AWStats documentation in 'docs' directory for informations on how to setup awstats.

    It has been 48 hours since I enabled AWSTATS for this account.

    The /home/xxxxx/tmp/awstats is empty, so obviously I am doing something wrong.

    Also when I run /scripts/runweblogs user, I don't see any mention of AWSTATS in the output

    Last edited by jamesbond; 12-05-2003 at 04:08 AM.

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    Maybe try this:

    - Enable AWStats server-wide in the WHM config (Tweak Settings).

    - Using the feature manager (under Packages), turn off AWStats for the Default feature list.

    - Add a new feature list (eg "plusAWStats") and turn on AWStats for this one.

    - Create a new Package just for your customer, and in the package make the featute list the "plusAWStats" one.

    I haven't tried it and it's convoluted, but it should work.

  3. #3
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Originally posted by Wallaby
    Maybe try this:
    - Using the feature manager (under Packages), turn off AWStats for the Default feature list.
    Does turning it off in the feature manager also mean that stats are not being generated on that account?
    Or is it just that the awstats link is not visible.

    There should be a way to just copy the necessary config files to the account. I don't know what I need to copy exactly though.
    Last edited by jamesbond; 12-05-2003 at 04:30 AM.

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    40

    Default

    All what you need are

    1. Edit acount profile here
    /var/cpanel/users/account_username
    set
    skipawstats=0

    2. Add awstat config with name
    awstat.domain_name.conf
    to
    /etc folder.

  5. #5
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Originally posted by Dmitry M.
    All what you need are

    1. Edit acount profile here
    /var/cpanel/users/account_username
    set
    skipawstats=0

    2. Add awstat config with name
    awstat.domain_name.conf
    to
    /etc folder.
    Step 1 I already did, the problem is part 2.
    Where do I get this awstats.domain_name.conf file from?

    I tried this :
    cp /usr/local/cpanel/etc/awstats.conf /etc/awstats.domain.com.conf

    But then it complains about errors in the variables.

    Error: DNSLookup parameter is wrong in config/domain file. Value is '%DNSLOOKUP%' (should be 0 or 1)


    Last edited by jamesbond; 12-05-2003 at 05:19 AM.

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    40

    Default

    I've attached example of config file to this thread
    Attached Files

  7. #7
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Dimitry thanks for taking the time to upload the file.
    You accidently uploaded a webalizer instead of a awstats config file though

  8. #8
    Member
    Join Date
    Dec 2003
    Posts
    40

    Default

    Yes, Here is correct config
    This one working for one of accounts at our server
    Attached Files

  9. #9
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Thanks Dimitry.

    This seems to be the same file as the awstats.conf file except for having the domain specific values

    I'll modify the awstats.conf I copied to /etc and see how that goes.

    It would be easier though if it were possible to have awstats.domain.com.conf generated with the correct domain values.
    (I assume this is what cpanel does when you enable awstats serverwide in WHM)

  10. #10
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Seems like I have to enable awstats server wide according to CPanel support :

    'Awstats has to be enabled as a whole otherwise cpanel will not include it when the logs are processed, at this time its not possible to just enable it for one site. '

Similar Threads & Tags
Similar threads

  1. Enabling Shibboleth authentication for an account Guidance needed
    By mobcdi in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-07-2011, 08:55 AM
  2. Installing / Enabling AWStats
    By TheZander in forum New User Questions
    Replies: 0
    Last Post: 01-06-2007, 10:39 AM
  3. Replies: 2
    Last Post: 04-05-2006, 10:14 AM
  4. Allowing cPanel enabling of spamassassin at the email account level
    By Salem_Kayaker in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-28-2005, 04:58 AM
  5. disable awstats for one account
    By mambix in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-23-2004, 07:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube