Just installed cpanel, get this error : Apache restart failed

basketmen

Well-Known Member
Sep 9, 2010
128
1
66
I just installed cpanel fresh, i already few times installing cpanel before
this is the first time i get this error, when trying restarting apache in whm, after editing PHP Configuration Editor in whm :
Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.
If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.
You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.
Also be sure to examine apache's various log files.
Apache Restart Output:
Log:
[Mon Sep 08 16:11:53 2014] [alert] mod_unique_id: the system was unable to resolve the system hostname 'server1.domain.com' to an IP address. Now using MD5 hash of the hostname. Hostname resolution needs to be fixed.
[Mon Sep 08 16:11:53 2014] [alert] mod_unique_id: using MD5 digest of the hostname 'server1.domain.com': 'LjIVoBomBlizliV61eFmBQ==' (base64 encoded for log)
[Mon Sep 08 16:11:54 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Sep 08 16:11:54 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Sep 08 16:11:54 2014] [notice] ModSecurity for Apache/2.8.0 (ModSecurity: Open Source Web Application Firewall) configured.
[Mon Sep 08 16:11:54 2014] [notice] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Mon Sep 08 16:11:54 2014] [notice] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.35 2014-04-04"
[Mon Sep 08 16:11:54 2014] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Sep 08 16:11:54 2014] [notice] ModSecurity: LIBXML compiled version="2.9.1.20140611"
[Mon Sep 08 16:11:54 2014] [notice] Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Sep 08 16:12:14 2014] [alert] (EAI 3)Temporary failure in name resolution: mod_unique_id: unable to find IPv4 address of "server1.domain.com"
please help what is the solution, i already googling, but still dont get solution yet
below is content of /etc/hosts if needed
(i change the real domain with domain.com and the real ip with 111.222.333.444) :
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.l$
::1 localhost localhost.localdomain localhost6 localhost6.localdoma$
111.222.333.444 server1.domain.com server1
 

basketmen

Well-Known Member
Sep 9, 2010
128
1
66
got the answer from a nice person, GBH

so the solution is run easy apache > in Exhaustive Options List > unchecked UniqueId & Mod Security
btw why i get this error guys? is there many people got this error currently after installing cpanel? this is fresh cpanel install, few month a go i install cpanel in another servers, never got this problem
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Hello :)

Do you continue to experience the same issue when rebuilding Apache via EasyApache with those options enabled?

Thank you.