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!

I've accidentally deleted the files in /var/log

Discussion in 'General Discussion' started by quats, Mar 11, 2008.

  1. quats

    quats Member

    Joined:
    Mar 11, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    I have accidentally deleted the files in /var/logs folder and now I'm not receiving any mail. I have tried to reinstall cpanel by using the update cpanel feature and selected the force reinstall option.

    It recreated some of the files but not all is there a way to get the files in /var/log recreated.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,172
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. quats

    quats Member

    Joined:
    Mar 11, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    I don't know the names of the files i need to recreate
     
  4. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    7
    Trophy Points:
    318
    Location:
    back woods of NC, USA
    you may be able to get them to create themselves by restarting syslogd, pop ssh exim cron ... try restarting exim /scripts/restartsrv_exim and see if the exim_mainlog comes back. do this for all the services ...or you could try and reboot and you may find most come back.

    I just tested my theory and found that:
    /scripts/restartsrv_exim recreates exim logs

    actually thsi may get much of that stuff back for you.
    /scripts/restartsrv_syslogd
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 rpmws, Mar 12, 2008
    Last edited: Mar 12, 2008
  5. quats

    quats Member

    Joined:
    Mar 11, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    Thanks for that,

    Mail working again now, most of the files were recreated when I done the update but it appears to exim log files were not created, I ran the second command you gave and this solved it.

    Thanks again
     
Loading...
Similar Threads - I've accidentally deleted
  1. Okkunen
    Replies:
    2
    Views:
    630

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