spades

Registered
Sep 29, 2002
2
0
151
has anyone else experienced this? apache stops when adding domain/subdomain. i try to start it in the shell and it says &Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/rc.d/init.d/httpd start: httpd could not be started& is there a way to fix this or perhaps stop it from being added in the virtual host entries? any help is appreciated.
 

concreteman

Well-Known Member
May 22, 2003
47
0
156
sillycone valley
I am having the same problem. If I delete the entry Byteslog in the vhost section i can restart httpd, what is the right answer to this?

cPanel.net Support Ticket Number:
 

concreteman

Well-Known Member
May 22, 2003
47
0
156
sillycone valley
I am having the same problem. If I delete the entry Byteslog in the fhost section i can restart httpd, what is the right answer to this?

cPanel.net Support Ticket Number:
 

concreteman

Well-Known Member
May 22, 2003
47
0
156
sillycone valley
what is the name of the bytes_log_module in Apache or where can I find it. looked through many list and couln't find the ones mentioned. maybe a step by step cause I am braindead

cPanel.net Support Ticket Number:
 

howard

Well-Known Member
Apr 20, 2003
233
0
166
try looking for a line like

LoadModule bytes_log_module libexec/mod_log_bytes.so

or do grep bytes_log_module /usr/local/apache/conf/httpd.conf

(or /etc/httpd/conf/httpd.conf)

if not there try adding the line above then restarting apache, if it still errors out then your best bet is to run /scripts/easyapache alternatively try find / -iname mod_log_bytes*

cPanel.net Support Ticket Number:
 

concreteman

Well-Known Member
May 22, 2003
47
0
156
sillycone valley
no the entries are not there. I looked around apache and other places looking but I think I was looking for wrong files
Originally posted by howard
try looking for a line like

LoadModule bytes_log_module libexec/mod_log_bytes.so

or do grep bytes_log_module /usr/local/apache/conf/httpd.conf

(or /etc/httpd/conf/httpd.conf)

if not there try adding the line above then restarting apache, if it still errors out then your best bet is to run /scripts/easyapache alternatively try find / -iname mod_log_bytes*

cPanel.net Support Ticket Number:
cPanel.net Support Ticket Number:
 

concreteman

Well-Known Member
May 22, 2003
47
0
156
sillycone valley
thank you all

I did finally get it... i added the lines to my httpd.conf file and fired it up. I was looking for the wrong files the first time and this time i got it and it works like a champ. Thanks

cPanel.net Support Ticket Number:
 

bonnmac

Well-Known Member
Apr 26, 2003
101
0
166
I'm having this same problem with a new server. Apache is fine until I add a site to it. As soon as I add a site I apache dies. So I do this.

/etc/rc.d/init.d/httpd start and I get the following error.

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

But when I check httpd.conf the module is loaded. Any ideas?


#LoadModule mmap_static_module modules/mod_mmap_static.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
<IfDefine HAVE_BANDWIDTH>
LoadModule bandwidth_module modules/mod_bandwidth.so
</IfDefine>
<IfDefine HAVE_THROTTLE>
LoadModule throttle_module modules/mod_throttle.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so

cPanel.net Support Ticket Number: