Apache error: Invalid command ‘BytesLog’

During Apache restart in cPanel, you may get the error:

[wpfmb type=’error’ theme=2]Invalid command ‘BytesLog’, perhaps mis-spelled or defined by a module not included in the server configuration[/wpfmb]

In order to resolve the issue you have to recompile the modules for Apache by using the following commands:

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
/etc/rc.d/init.d/httpd restart

This will help to resolve the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *