Skip to main content

/usr/local/cpanel/logs/access_log deleted by mistake

Comments

5 comments

  • cPanelMichael
    Hello :) You can re-create this log file via:
    touch /usr/local/cpanel/logs/access_log
    By default, ownership is set to "root:root" and permissions are set to 0600. Thank you.
    0
  • sarhosting
    Hello :) You can re-create this log file via:
    touch /usr/local/cpanel/logs/access_log
    By default, ownership is set to "root:root" and permissions are set to 0600. Thank you.

    Hi cPanelMichael. Two questions for you. 1. Do you have to restart the cPanel Service once the file is recreated? 2. Is the old information reimported into the log or does it start anew? Thanks alot.
    0
  • paknode
    1. Do you have to restart the cPanel Service once the file is recreated? No way it doesn't need to restart your server as it just create a file so file creation is not like updating kernel on kvm server. 2. Is the old information reimported into the log or does it start anew? The log starts with fresh content.
    0
  • cPanelMichael
    Hello :) Right, you don't have to restart cPanel, and the old data is permanently removed when the file is manually deleted. Thank you.
    0
  • sarhosting
    Thanks to you both.
    0

Please sign in to leave a comment.