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.

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:
    1
    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:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. quats

    quats Member

    Joined:
    Mar 11, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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:
    5
    Trophy Points:
    38
    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
     
    #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:
    1
    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...

Share This Page