cPanel: How do I disable domlogs? Print

  • 0

If, for whatever reason, you'd like to disable the domlogs (domain logs) for all domains on your cPanel server, simply follow this guide!

1) Run the following commands via SSH:

mkdir -pv /etc/apache2/conf.d/userdata/
touch /etc/apache2/conf.d/userdata/include.conf

2) Add the below content to /etc/apache2/conf.d/userdata/include.conf

<IfModule mod_userdir.c>
CustomLog /dev/null combined
</IfModule>

3) Run the following commands via SSH:

/usr/local/cpanel/scripts/rebuildhttpdconf
/usr/local/cpanel/scripts/restartsrv_httpd

You're all done!

Log files at /usr/local/apache/domlogs on your cPanel server should no longer populate. 


Was this answer helpful?

« Back


Ethernet Servers Ltd
124 City Road
London
EC1V 2NX
United Kingdom


Registered Limited Company: #09114946

Telephone:
+44 330 043 1258

Email:
hello@ethernetservers.com

Copyright © 2014 - 2024 - Ethernet Servers Ltd - All Rights Reserved.

Proudly serving customers in 143 countries since July 2014!