The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deleting content of /tmp directory

Discussion in 'General Discussion' started by hardjoko, Sep 4, 2005.

  1. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I deleted content of /tmp directory in my customersdeals.com directory. Cpanel username is customer

    In short, I deleted the content of ~customer/tmp/

    Then, when I check awstats from cpanel I got this message:

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

    - Did you use the correct URL ?
    Example: http://localhost/awstats/awstats.pl?config=mysite
    Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
    - Did you create your config file 'awstats.customersdeals.com.conf' ?
    If not, you can run "./../../tools/awstats_configure.pl" from command line, or create it manually.

    Check config file, permissions and AWStats documentation (in 'docs' directory).

    Look like I mess things up. What should I do?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    IIRC, the configuration file ought to be recreated the next time logrunner processes the sites httpd log files.
     
  3. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    So I should just do nothing and everything will be allright? How long should I wait? 1 day?
     
  4. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Excuse me, so what is exactly I should do?
     
  5. amal

    amal Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Just issue the following command in root, and then check your awstats.. :)

    mkdir ~customer/tmp/awstats
    mkdir ~customer/tmp/webalizer
    chown customer:customer ~customer/tmp/awstats
    chown customer:customer ~customer/tmp/webalizer
    /scripts/runweblogs customer

    The awstats will reappear . But do remember that all his old stats will be gone., since you have deleted the tmp dir.. :(

    And in the future, do not delete tmp directory of a customer. It contains his web/ftp stats info.

    And hope cpanel uses a different directory than tmp to store the stats .. :) There is a chance that people delete the directory thinking that there is nothing important in it.

    ####

    Regards,
    Amal.
     
Loading...

Share This Page