EasyApache not rebuilding.

Spetsnaz

Well-Known Member
Jun 25, 2011
78
0
56
cPanel Access Level
Website Owner
To my thinking is that folder or file
/usr/local/apache/conf/
is not chmod correctly?
But here is the out put of easyapache update.

Code:
Updating Apache configuration
Updating Apache configuration
Distilled successfully
!! Failed to build '/usr/local/apache/conf/httpd.conf': Unable to write /usr/local/apache/conf/httpd.conf.1361547960: No such file or directory !!
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!

!! 'safecopy(/usr/local/apache/etc, /usr/local/apache.ea3-buildok-confgen-failed)' did not return true !!
!! '/usr/local/apache/conf/httpd.conf.1361547960' does not exist, using '/usr/local/apache/conf/httpd.conf' instead !!
!! Done Archiving successful build !!

!! 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/update_apachectl' !!
!! Executing '/scripts/enablefileprotect' !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1361576206' !!
 

cPanelJamyn

Social Engineer
Staff member
Jan 29, 2009
105
2
143
Distilled successfully
!! Failed to build '/usr/local/apache/conf/httpd.conf': Unable to write /usr/local/apache/conf/httpd.conf.1361547960: No such file or directory !!

This implies the temporary file used to test the config (/usr/local/apache/conf/httpd.conf.1361547960) is missing. Is your system configured to submit EasyApache build failures to cPanel? Alternatively, if you can email a copy of the build log to me ([email protected]), I'll be happy to take a quick look at it. Thanks!
 

cPanelJamyn

Social Engineer
Staff member
Jan 29, 2009
105
2
143
For reference, after looking over the case - this issue appears to have been caused by a combination of events:

- problematic custom Apache templates, and
- per-vhost mod_security rules with invalid directives.

As a result, httpd.conf would not rebuild successfully.