Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    IIRC, the configuration file ought to be recreated the next time logrunner processes the sites httpd log files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    So I should just do nothing and everything will be allright? How long should I wait? 1 day?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    Excuse me, so what is exactly I should do?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. amal

    amal Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice