rebuild_phpconf errors that Apache httpd is disabled? [solution]

R2B2

Member
Jul 29, 2013
13
0
1
cPanel Access Level
Root Administrator
Just thought i'd share since i didn't see it anywhere in previous threads --

++++++++++++++++++++++++++++++
[email protected] [~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi 1
...
php.conf updated to:
...
...
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php
...
...
Restarting Apache
info [rebuild_phpconf] Apache httpd is disabled, cannot be restarted.
++++++++++++++++++++++++++++++

Solution?

Remove the empty /etc/httpddisable disable file.

(Then the next time you run that script it will try to restart httpd. Though you could just restart apache with `service httpd restart`)
 

cPanelMichael

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

Yes, it's normal for Apache to fail starting if /etc/httpddisable exists as a file. This file is only created when you manually disable Apache in the service manager, or if you create the file via the command line.

Thank you.