Hacks:Engine:Removing apache user logs

From VHCP Support

Jump to: navigation, search

Edit /etc/vhcp/apache/parts/dmn_entry.tpl and remove lines:

ErrorLog        {APACHE_USERS_LOG_DIR}/{DMN_NAME}-error.log
TransferLog     {APACHE_USERS_LOG_DIR}/{DMN_NAME}-access.log

Then Regenerate configs

Edit crontab with command crontab -e and remove line:

30     23     * * *  /var/www/webadmin/engine/tools/vhcp-httpd-logs-mngr

(maybe necessary to edit /etc/vhcp/crontab/working/crontab.conf also)

Now logs from /var/log/apache2/users aren't copied to /var/www/virtual/domain.tld/logs/ anymore, saving diskspace!

Personal tools