Web Hosting Talk







View Full Version : Apache and httpd.conf error


acctman
02-27-2005, 09:58 PM
is there a way to autofix or install mod_bandwidth?
/etc/rc.d/init.d/httpd start
Cannot load /usr/local/apache/libexec/mod_bandwidth.so into server: /usr/local/apache/libexec/mod_bandwidt
h.so:
mod_bandwidth.c

Syntax error on line 240 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_bandwidth.so into server: /usr/local/apache/libexec/mod_bandwidt
h.so: cannot open shared object file: No such file or directory


Syntax error on line 274 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_bandwidth.c': not in list of loaded modules

Syntax error on line 275 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BandWidthDataDir', 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

Steven
02-27-2005, 10:13 PM
Reinstall the addon module from WHM

dollar
02-27-2005, 10:13 PM
Well you just gotta read through your errors and fix them:

/usr/local/apache/libexec/mod_bandwidth.so: cannot open shared object file: No such file or directory

find mod_bandwidth.so and then cp it to that directory
mod_bandwidth.c is probbaly not loading becasue fo the .so file
BandWidhtDataDir is not correct because the module hasn't been loaded

acctman
02-28-2005, 12:24 AM
thanks, working now