[root@dns ~]# systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [root@dns ~]# journalctl -xe -- The result is failed. Apr 04 15:12:27 dns.mysite.eu systemd[1]: Unit httpd.service entered fail Apr 04 15:12:27 dns.mysite.eu systemd[1]: httpd.service failed. Apr 04 15:12:27 dns.mysite.eu polkitd[618]: Unregistered Authentication A Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killing failed child Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killed child 8114 Apr 04 15:14:44 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 Apr 04 15:14:55 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 Apr 04 15:15:01 dns.mysite.eu systemd[1]: Started Session 64 of user root -- Subject: Unit session-64.scope has finished start-up -- Defined-By: systemd -- Support: lists.freedesktop.org/mailman.../systemd-devel -- -- Unit session-64.scope has finished starting up. -- -- The start-up result is done. Apr 04 15:15:01 dns.mysite.eu systemd[1]: Starting Session 64 of user roo -- Subject: Unit session-64.scope has begun start-up -- Defined-By: systemd -- Support: lists.freedesktop.org/mailman.../systemd-devel -- -- Unit session-64.scope has begun starting up. Apr 04 15:15:01 dns.mysite.eu CROND[8468]: (root) CMD (/usr/local/cpanel/ lines 1975-1997/1997 (END) -- The result is failed. Apr 04 15:12:27 dns.mysite.eu systemd[1]: Unit httpd.service entered failed state. Apr 04 15:12:27 dns.mysite.eu systemd[1]: httpd.service failed. Apr 04 15:12:27 dns.mysite.eu polkitd[618]: Unregistered Authentication Agent for unix-pro Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killing failed child 8114 fd=7 at /usr Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killed child 8114 Apr 04 15:14:44 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:50:56 Apr 04 15:14:55 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:50:56 Apr 04 15:15:01 dns.mysite.eu systemd[1]: Started Session 64 of user root. -- Subject: Unit session-64.scope has finished start-up -- Defined-By: systemd -- Support: lists.freedesktop.org/mailman.../systemd-devel -- -- Unit session-64.scope has finished starting up. -- -- The start-up result is done. Apr 04 15:15:01 dns.mysite.eu systemd[1]: Starting Session 64 of user root. -- Subject: Unit session-64.scope has begun start-up -- Defined-By: systemd -- Support: lists.freedesktop.org/mailman.../systemd-devel -- -- Unit session-64.scope has begun starting up. Apr 04 15:15:01 dns.mysite.eu CROND[8468]: (root) CMD (/usr/local/cpanel/scripts/dcpumon-w lines 1975-1997/1997 (END) any help will be appreciated
You're probably going to need to add more details. What changed? What led you to run the "systemctl restart httpd.service" command in the first place? Were you changing Apache configs? Did the server crash on it's own? or If you changed server configs, change them back and try to restart it If the server crashed on it's own. Look at /var/log/syslog (that's where it is in Ubuntu) and look for any errors that may have caused the crash. Ultimately, it's extremely hard to debug without WAY more info
i think server crashed, vps is centos and cpanel. I tried restarting apache, update apache scripts, rebuild config etc nothing helped me.
Hello, Check to make sure that you are not having disk issues. Can you write to the disk? Regards, Chris
https://blog.cpanel.com/problem-with-recent-easyapache-update/ (problem not solved with that patch) [root@dns ~]# ldd /usr/sbin/httpd linux-vdso.so.1 => (0x00007fffbede6000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f271cbb0000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f271c988000) libaprutil-1.so.0 => not found libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f271c751000) libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f271c526000) libdb-5.3.so => /lib64/libdb-5.3.so (0x00007f271c167000) libapr-1.so.0 => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f271bf4a000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f271bd46000) libc.so.6 => /lib64/libc.so.6 (0x00007f271b983000) /lib64/ld-linux-x86-64.so.2 (0x0000557cf2405000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f271b77f000) [root@dns ~]# /opt/cpanel/ea-apr16/lib64/libapr-1.so.0 Segmentation fault (core dumped) [root@dns ~]# /opt/cpanel/ea-apr16/lib64/libaprutil-1.so.0 Segmentation fault (core dumped) [root@dns ~]#
This is something wrong you config file. how you configure this service ? auto script installation or manually configured service.Check service status and error log.
update to EasyApache4 wherein after the update was installed Apache service is not working or failing to restart properly. following commands didn't solve the issue yum clean all yum -y update /usr/local/cpanel/bin/rebuild_phpconf --current /usr/local/cpanel/bin/rebuild_phpconf --ea-php55=cgi --ea-php56=suphp
If you updated Apache, you need to do a Google search and find the Apache 4 default Apache config. Switch that out with your current config. And update all your sites-available with the new versions of their configs and you'll be good to go. If none of that made sense to you, you've got a long journey ahead of you as far as server administration goes. I'm great at it but I rarely waste my time doing it because it's such a black hole of time unless you're doing it at scale.