xml

Well-Known Member
Jan 15, 2004
110
4
168
Hello

I was trying to upgrade from php5.3.27 to php5.4.27 using easyapache UI the I got this error message and the rebuild failed

PHP:
chmod 755 /usr/local/apache/modules/mod_bwlimited.so
 apxs:Error: Activation failed for custom /usr/local/apache/conf/httpd.conf file..
 apxs:Error: At least one `LoadModule' directive already has to exist..
 !! '/usr/local/apache/bin/apxs -i -a -c ../mod_bwlimited.c' failed with exit code '256' !!
 !! Restoring original working apache !!

 !! Executing '/scripts/initsslhttpd' !!
 !! Restarting 'httpd' ... !!
 !! 'httpd' restart complete. !!
 Building global cache for cpanel...Done
 !! Executing '/scripts/initfpsuexec' !!
 !! Executing '/scripts/initsslhttpd' !!
 !! Executing '/scripts/fixmailman' !!
 !! Executing '/scripts/update_apachectl' !!
 !! Executing '/scripts/enablefileprotect' !!
 !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1397311335' !!
any idea how to fix?

WHM 11.42.0.24
apache 2.2
No nginx installed
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You mentioned that Nginx is not installed. Was it installed in the past? Do you notice any content added to the /scripts/after_apache_make_install file?

Thank you.
 

xml

Well-Known Member
Jan 15, 2004
110
4
168
It appears that moving the compiled rogue bwlimited.so modules out of the apache modules directory and rebuilding the apache configuration allowed it to generated a good apache build that did not include the LoadModule directive, this appears to have resolved the conflict in EasyApache and allowed it to complete. Please let us know if you require any further details or assistance with this request.

Sky Bly
Technical Analyst II
Migrations Specialist
cPanel, Inc.
Thanks to Sky Bly and all cPanel staff
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I am happy to see the issue is now resolved. Note that for others experiencing this issue, it's a good idea to review "/scripts/after_apache_make_install" as entries within this file from Nginx implementation are the primary cause of the reported error message.

Thank you.