If c Panel allowed is to specify how many days to keep the rotated archives for this would be the best solution but we could also set up our own system to delete files older than X number of days.
Hello, When I have installed latest Ndeploy in cpanel server, user stats and access_logs are not working We have using this guide https://support.sysally.net/projects/ndeploy/wiki/CPanel_stats_processing, but cpanel logs are not working n Deploy Hooks are working in whm. info [cpanellogd] STDERR output from hook: /opt/n Deploy/scripts/reload_nginx.sh[2015-12-14 0100] info [cpanellogd] nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)2015/12/14 [warn] 1650#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:12015/12/14 [emerg] 1650#0: SSL_CTX_use_Private Key_file("/var/cpanel/ssl/installed/keys/cd5ca_b899d_148f1ea413bb90970853a8cc6786b436.key") failed (SSL: error:0200100D:system library:fopen: Permission denied:fopen('/var/cpanel/ssl/installed/keys/cd5ca_b899d_148f1ea413bb90970853a8cc6786b436.key','r') error:20074002: BIO routines: FILE_CTRL:system lib error:140B0002: SSL routines: SSL_CTX_use_Private Key_file:system lib)I think this may be a bug.
Hook: /opt/n Deploy/scripts/reload_ID: 9WGt Cp Twy Hn Ia DB5Lf Seayp LThis hook is enabled. I think I got the "This hook runs as the root user" wrong somehow I will check this and see what can be done to reload after stats are processed.
This patch not working, account logs are empty, and awstat can't process it. This function is now integrated in the Nginx plugin itself.
These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside. Same can be done for the files in c Panel logs (/usr/local/cpanel/logs) as well . Domlogs – Get into the /usr/local/apache/domlogs/ directory. If yes, take appropriate measures as per your policies. Check whether deleting these would make any difference. You can use the following code to do that : # exim -bpc # exim -bpru | grep frozen | awk |xargs exim -Mrm # exim -bpru | grep “” | awk |xargs exim -Mrm # exim -bpru | grep “nobody” | awk |xargs exim -Mrm # exim -bpru|awk |xargs exim -Mrm # exiqgrep -o 86400 -i | xargs exim -Mrm 7.
Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . Search for large accounts and see if they are hosting any prohibited content or violating your company policies. # cd /var/log # echo mysql_slow_Note that there is no point in deleting these log files if the size is very small.
In order to keep a compressed backup of logs we have two options : 1) Disable automatic stats update at all hours and run a home made script that makes a copy of the log file and then run's the stats update for that user 2) Manage log rotation with syslog after the logs are rotated because syslog rotates the whole file and can't for example leave one day's logs in the file.
Be it a web-hosting service provider or the end-user. Run the following command :- # cd /usr/local/apache/dmlogs/ # ls -al -SR | head -10 — It will list 10 files in the decreasing order according to their size If the domlog file is too large for a domain then it is possible that awstats is not running . Check the folder ‘cprestore’ in /home for any tar files. These should be deleted only if they are very old,say about 4-5 months. Using find command you can check for unwanted tar files(especially cpmove/backup) in the entire home directory. If you think that deleting them will make considerable difference to the disk space then delete them. If you are deleting them then do re-create the files, or you can use the command ‘echo ” ” 4. There might be yum cache files inside the /var/cache folder which can take space.
We are using latest version of n Deploy [email protected] [/home/xxxxxx/access-logs]# lltotal 160drwxr-x--- 2 root xxxxxx 4096 Dec 24 ./drwx--x--x 320 root wheel 155648 Dec 24 ../awstats works on domlogs in /usr/local/apache/domlogs/ . And it will only be active as a button if the proxy to apache is active.
Please see if that is being updated If logging to domlogs is working . You need to select the domain in Nginx plugin and go to the second screen to see the apache pbp-fpm version selector nginx_confgen(cpaneluser, main_domain) # Generate conf for main domain File "/opt/n Deploy/scripts/generate_config.py", line 572, in nginx_confgen if clusterenabled: Name Error: global name 'clusterenabled' is not defined Conf Gen:: bolsasev Traceback (most recent call last): File "/opt/n Deploy/scripts/generate_config.py", line 628, in nginx_confgen(cpaneluser, main_domain) # Generate conf for main domain File "/opt/n Deploy/scripts/generate_config.py", line 572, in nginx_confgen if clusterenabled: Name Error: global name 'clusterenabled' is not defined Conf Gen:: alofokev Traceback (most recent call last): File "/opt/n Deploy/scripts/generate_config.py", line 628, in nginx_confgen(cpaneluser, main_domain) # Generate conf for main domain File "/opt/n Deploy/scripts/generate_config.py", line 572, in nginx_confgen if clusterenabled: Name Error: global name 'clusterenabled' is not defined Stopping nginx: [ OK ]Starting nginx: [ OK ] You mean the apache pbp-fpm plugin.
But every day the site is slowly because the domlogs are too big.
Error Error: Plugin load for plugin ‘geoipfree’ failed with return code: Error: Can’t locate Geo/in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .