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: failed

Sep 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: failed

Invalid 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.


6 Responses to “Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files”

  1. EricMMartin.com » Blog Archive » Shared object error during cPanel Apache build
    October 24th, 2007 13:15
    6

    [...] a Google search, I found that I needed to run: cd /usr/local/cpanel/apache   /usr/local/apache/bin/apxs -iac [...]

  2. Ez
    July 15th, 2007 00:03
    5

    Thanks! You were right on the money.. fixed my problem.

  3. Zanella
    June 13th, 2007 05:49
    4

    Same error here, you’re a time saver my friend, thanks.

  4. Jayson
    June 10th, 2007 14:24
    3

    Thanks, was having the same error with BytesLog. This helped alot.

  5. A_HAPPY_CHAP
    June 7th, 2007 22:03
    2

    /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.

  6. Mark
    May 2nd, 2007 11:15
    1

    This helped me a lot, thank you. :)

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

cannot load /usr/local/apache/modules/mod_auth_passthrough.so into server: /usr/local/apache/modules/mod_auth_passthrough.so: cannot open shared object file: No such file or directory - apache cannot open shared object file: No such file or directory - cannot open shared object file no such file or directory apache - mod_auth_passthrough - httpd failed cpanel - apache server the requested operation has failed after vista update - apache the request operation has failed - apache "The request operation has failed" - httpd failed - starting httpd failed - apache cannot open shared object file - Apache throws The request operation failed - Starting httpd: [FAILED] - the request operation has failed apache 2.2 - cannot open shared object file apache - Starting httpd: [FAILED] - getting error requested operation failed for apache server - Starting web server: apache2 failed! - mod_bwlimited - apache include .so files in /usr/local - Cannot load /usr/local/apache/modules/mod_auth_passthrough.so - apache windows 7 "the requested operation has failed" - apache request operation has failed - httpd: cannot open shared object file: No such file or directory - win7 apache the request has failed - ./mod_bwlimited.c: No such file or directory - apache vista the requested operation has failed - cannot open shared object file: apache error - Invalid command 'BytesLog', perhaps misspelled or defined by a module not included in the server configuration - \apache 404 trend micro - apache windows "mod_bandwidth.so" download - apache the request operation failed - apache the requested operation has failed window 7 - apache cannot open shared object file no such file or directory - apache2 cannot open shared object file - No status (cannot open file) - Starting httpd: Syntax error on line 271 - Syntax error on line of httpd.conf Cannot load into server cannot open shared object file No such file or directory - apache "cannot open shared object file: No such file or directory" - Apache2.2 Windows mod_bandwidth.so - cannot access org.apache.http.message.AbstractHttpMessage file org/apache/http/message/AbstractHttpMessage.class not found - install mod_bwlimited - mod_bandwidth.so Win32 - the requested configuration has failed apache - windows 7 start apache the requested opperation has failed - accidently deleted apache cpanel - apache service monitor the requested operation has failed - 64bit mod_bwlimited.so - Activation failed for custom /usr/local/apache2/conf/httpd.conf - apache web server the requested operation has failed -