/usr/local/cpanel/logs/access_log deleted by mistake
Hello,
I've deleted by mistake the access_log file on my number 1 server.
I noticed on server number 2 that the file has " ASCII text, with very long lines " encoding.
How to fix this ?
Regards,
Razvan Vlaicu
-
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 -
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 -
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 -
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 -
Thanks to you both. 0
Please sign in to leave a comment.
Comments
5 comments