Easyapache Fails !! Failed to restart Apache. !! Apache httpd is disabled, cannot be restarted. !

RockSolid

Member
Apr 30, 2013
13
0
1
Above Stars
cPanel Access Level
Root Administrator
Hi,

Today I encountered with an issue while rebuilding Apache for my cPanel server. I see the following error at the end.

Distilled successfully
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! Restarting 'httpd' ... !!
!! Failed to restart Apache. !!
!! Apache httpd is disabled, cannot be restarted. !!
!! '/usr/sbin/lsof -n -iTCP:82 -iTCP:443' failed with exit code '256' !!

When I go to WHM > Restart services, I do not see httpd(Apache) there. I tried /scripts/upcp --force but no luck.

what may be the problem ?

Thank you all in advance!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Re: Easyapache Fails !! Failed to restart Apache. !! Apache httpd is disabled, cannot be restarted.

Hello :)

Do you have any third-party applications such as Nginx or LiteSpeed installed that could be altering Apache? If not, please check to see if the following file exists on your system:

Code:
/etc/httpddisable
If it exists, delete or rename this file to ensure it does not prevent Apache from running. You can also ensure "httpd" is enabled in "WHM Home » Service Configuration » Service Manager".

Thank you.
 

RockSolid

Member
Apr 30, 2013
13
0
1
Above Stars
cPanel Access Level
Root Administrator
Re: Easyapache Fails !! Failed to restart Apache. !! Apache httpd is disabled, cannot be restarted.

Hello :)

Do you have any third-party applications such as Nginx or LiteSpeed installed that could be altering Apache? If not, please check to see if the following file exists on your system:

Code:
/etc/httpddisable
If it exists, delete or rename this file to ensure it does not prevent Apache from running. You can also ensure "httpd" is enabled in "WHM Home » Service Configuration » Service Manager".


Wow! You fixed it. Thank you very much. I renamed /etc/httpddisable. Yes, I was using apachebooter plugin and removed it before all this happened.

Please take a look at ticket IDs 4285645 and 4284631. ( and the replies ) :)

Thank you!