Help - Search - Members - Calendar
Full Version: Failed EasyApache
The Planet Forums > Control Panels > cPanel/WHM
benj114
Good day everyone. Was wondering if anyone has ever come across this problem when re-compiling Apache via EasyApache.

CODE
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la   modules/* libs/*
SuHosin extension activated
    -- End step 'Install PHPSuHosin' --

-- End opt 'Suhosin for PHP' --

-- Begin 'SourceGuardian Loader for PHP' is off--
-- End 'SourceGuardian Loader for PHP' is off --

-- Begin 'Zend Optimizer for PHP' is off--
-- End 'Zend Optimizer for PHP' is off --

-- Begin 'EAccelerator for PHP' is off--
-- End 'EAccelerator for PHP' is off --

-- Begin 'IonCube Loader for PHP' is off--
-- End 'IonCube Loader for PHP' is off --

!! Resetting Apache configuration to default. !!
Updating Apache configuration
Updating Apache configuration
Distilled successfully
!! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1242440613):
An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1242440613
Exit signal was: 0
Exit value was: 1
Output was:
---
httpd: Syntax error on line 217 of /usr/local/apache/conf/httpd.conf.1242440613: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_virtualhost_global.conf: API module structure 'security_module' in file /usr/local/modules/mod_security.so is garbled - expected signature 41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?
---
!!
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
!! Done Archiving successful build !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
Compiling report...
Sending report (945 bytes)...
!! If you  want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '2030245' !!
Report processed.
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1242439135' !!



Trying to upgrade Apache to 2.2.x and PHP to the latest version. I was under the impression that the Monitoring / Security bundle that I pay for would do that. Guess I was wrong.

Thank you for any help.
eth00
Which monitoring/security bundle? Depending on which version of apache you were on that may not be considered a security upgrade.

In regards to your problem - the quick fix is remove mod_security from loading.

/usr/local/apache/conf/includes/pre_virtualhost_global.conf:

If I had to guess you manually compiled it and added it in yourself. You then upgraded from a different apache and now the version you source compiled won't work.

If you want mod_sec I would suggest adding it via easyapache. Doing that and removing the lines from the above config should fix it up. Just make sure you have the rules updated if you run a custom ruleset.
James Jhurani
QUOTE (eth00 @ May 16 2009, 11:54 AM) *
Which monitoring/security bundle? Depending on which version of apache you were on that may not be considered a security upgrade.

In regards to your problem - the quick fix is remove mod_security from loading.

/usr/local/apache/conf/includes/pre_virtualhost_global.conf:

If I had to guess you manually compiled it and added it in yourself. You then upgraded from a different apache and now the version you source compiled won't work.

If you want mod_sec I would suggest adding it via easyapache. Doing that and removing the lines from the above config should fix it up. Just make sure you have the rules updated if you run a custom ruleset.


If it was added when you purchased the security package, then it is likely it was added manually to keep the down time to a minimal. I agree with eth00, just edit pre_virtualhost_global.conf and remove/comment the mod_security directives. Then rebuild easy apache and select mod_security.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.