Fixing the "Invalid command 'BytesLog'" error

If Apache shows the following error and your web server is not running:

Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration

run these commands over SSH:

cd /usr/local/cpanel/apache
/usr/local/apache/bin/apxs -iac mod_log_bytes.c
/usr/local/apache/bin/apxs -iac mod_bwlimited.c
/usr/local/apache/bin/apxs -iac mod_bandwidth.c
Was this article helpful?