HostOnNet Blog

easyapache failed to compile apache

Looking for Linux Server Admin or WordPress Expert? We can help.

Today i upgraded apache on a cpanel server. easyapache failed to compile apache and give the error.

Distilled successfully
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1212771572'
Ouput from '/bin/sh -c "ulimit -a"':
core file size		(blocks, -c) 524288
data seg size		(kbytes, -d) unlimited
file size		(blocks, -f) unlimited
pending signals 		(-i) 1024
max locked memory	(kbytes, -l) 32
max memory size 	(kbytes, -m) 524288
open files			(-n) 1024
pipe size	     (512 bytes, -p) 8
POSIX message queues	 (bytes, -q) 819200
stack size		(kbytes, -s) 10240
cpu time	       (seconds, -t) unlimited
max user processes		(-u) 16377
virtual memory		(kbytes, -v) 524288
file locks			(-x) unlimited
!! Creating backup of working apache in '/usr/local/apache.backup'. !!
!! Backup of working apache complete. !!
!! Could not empty path '/home/cpeasyapache/src' !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
Compiling report...
Sending report (18 bytes)...
Report processed.
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1212771572'

I tried running easyapache from ssh and whm with different options selected, it always show above message.

On cpanel forum there is no solution for such a probem, there are many having same problem, cpanel staff always ask to submit a support ticket.

So i have submitted a ticket and starting trying fixing the problem. Tried changing cpanel versions, but none worked.

At last i got a clue from the error message, it was one line, i do not see it before

!! Could not empty path ‘/home/cpeasyapache/src’ !!

I just renamed the folder, run easyapache and it started working.

cd /home
mv cpapachebuild cpapachebuild_old
mv cpeasyapache cpeasyapache_old

Posted in Cpanel Server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.