var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
How to remove cpanel and apache log files using command line
Help needed, need a command line to remove cpanel and apache log from the server. thanks
rm -rf /usr/local/cpanel/logs/
rm -rf /usr/local/apache/logs/
rm -rf /usr/local/apache/domlogs (Individual website logs)
I won't ask why... but there you go! Make sure you restart both cPanel and Apache to resume logging.
I can't access Cpanel anymore .
Originally Posted by
Try to recreate the deleted directories:
and restart cPanel and Apache.
---=== RoseHosting.com Admin ===---
Linux Cloud Hosting
Linux VPS Hosting
High Quality Linux virtual servers with lots of Guaranteed RAM and HDD space, Impeccable Service.
Have you contacted WHM/cPanel Inc.? Re-creating manually dirs might not work, as something else might be missing. You could try what RoseHosting said though.
. Shared Web Hosting | Reseller Web Hosting | IRCD Hosting | psyBNC/sBNC/eggdrop/znc Hosting
xShellz Linux Shell & IRCD Hosting.
24/7 Live & Ticket Support
Was there any specific reason to delete those logs? I think recreating deleted log files with proper permissions should fix the issue.
Try it by recreating the files/folder and run an upcp along with easyapache which should fix the issue.
Make sure you know what you are doing before running any commands! Also note that removing domlogs will flush the stats for all domains since last log processing. Recreating log dirs as RoeHosting said should fix the issue, unless you did anything else on the server. Just wondering why you need to clear the logs though.
By akasharya in forum Hosting Security and Technology
Last Post: 05-28-2015, 04:32 AM
By xs-admin in forum Programming Discussion
Last Post: 07-18-2012, 11:56 AM
By NoAgendas in forum Hosting Security and Technology
Last Post: 08-14-2006, 03:21 PM
By NetCloud in forum Programming Discussion
Last Post: 08-20-2004, 10:22 AM
By DWHS in forum Hosting Security and Technology
Last Post: 04-04-2003, 11:32 AM
Tags for this Thread