Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files
For web hosting account using cPanel with WebHost Manager (WHM) and running on Apache web server, the following error messages or problems may be encoutering with the Apache HTTPD server has been messed up with, some shared library files such as mod_auth_passthrough.so, mod_bwlimited.so and mod_log_bytes.so located in libexec directory accidentally been deleted, the compilation of web server gone bad, or re-configuration of Apache http.conf not properly does:
Sep 30 07:06:14 web httpd: Syntax error on line 233 of /usr/local/apache/conf/httpd.conf:
Sep 30 07:06:15 web httpd: Cannot load /usr/local/apache/libexec/mod_bwlimited.so into server: /usr/local/apache/libexec/mod_bwlimited.so: cannot open shared object file: No such file or directory
Sep 30 07:06:15 web rc: Starting httpd: failedSep 30 07:47:48 web httpd: Syntax error on line 234 of /usr/local/apache/conf/httpd.conf:
Sep 30 07:47:48 web httpd: Cannot load /usr/local/apache/libexec/mod_log_bytes.so into server: /usr/local/apache/libexec/mod_log_bytes.so: cannot open shared object file: No such file or directory
Sep 30 07:47:48 web rc: Starting httpd: failedInvalid command ‘BytesLog’, perhaps mis-spelled or defined by a module not included in the server configuration
The problem with this kind of symptom is most likely due to the cause that the mod_belimited.so, mod_log_bytes.so, or mod_bandwidth.so are deleted or corrupted. These 3 files are unique to cPanel-powered web hosting service and are used to control, monitor or restrict the bandwidth usage limit.
The resolution and solution to the error is to recompile and redeploy the missing or unable to find shared library modules. You can easily compile these cPanel 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
After compilation, the .so files will automatically copied to libexec directory for Apache HTTPD web server.
Related Articles
- cPanel WHM Failed to Receive Status Information From Apache Error
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5
- Request URL /server-status or 404 Page Not Found Apache Error










































October 24th, 2007 13:15
[...] a Google search, I found that I needed to run: cd /usr/local/cpanel/apache /usr/local/apache/bin/apxs -iac [...]
July 15th, 2007 00:03
Thanks! You were right on the money.. fixed my problem.
June 13th, 2007 05:49
Same error here, you’re a time saver my friend, thanks.
June 10th, 2007 14:24
Thanks, was having the same error with BytesLog. This helped alot.
June 7th, 2007 22:03
/usr/local/apache/bin/apxs -iac mod_log_bytes.c
thankyou so much for this!!! you saved me an even bigger headache than the one I was already having.
May 2nd, 2007 11:15
This helped me a lot, thank you.