Apache not starting
Hello everyone, I hope you can help me, I have tried everything but I have not been successful, I tell you everything was going well without problems until one day I woke up and the server had stopped working I realized that Apache was not working I tried to start it and I received The next message:
root@server ~]# systemctl start httpd
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.[root@server ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2024-02-17 07:51:18 CST; 17s ago Process: 136072 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE)
Feb 17 07:51:17 server.domain.edu.mx systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Feb 17 07:51:18 server.domain.edu.mx restartsrv_httpd[136089]: AH00534: httpd: Configuration error: No MPM loaded.Feb 17 07:51:18 server.itescham.edu.mx systemd[1]: httpd.service: Control process exited, code=exited status=1
Feb 17 07:51:18 server.domain.edu.mx systemd[1]: httpd.service: Failed with result 'exit-code'.Feb 17 07:51:18 server.domain.edu.mx systemd[1]: Failed to start Apache web server managed by cPanel EasyApache
[root@server ~]# journalctl -xe
Feb 17 07:58:32 server.domain.edu.mx systemd[1]: httpd.service: Control process exited, code=exited status=1
Feb 17 07:58:32 server.domain.edu.mx systemd[1]: httpd.service: Failed with result 'exit-code'.-- Subject: Unit failed
-- Defined-By: systemd-- Support: https://access.redhat.com/support
---- The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Feb 17 07:58:32 server.itescham.edu.mx systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.-- Subject: Unit httpd.service has failed
-- Defined-By: systemd-- Support: https://access.redhat.com/support
--
-- Unit httpd.service has failed.
--
-- The result is failed.
-
The given logs are not enough to assist you.
Please utilize "tail -f /usr/local/apache/logs/error_log" to monitor real-time log updates while attempting to restart the service. If any errors appear, kindly share them here for more precise community assistance.
Kodeslogic Web Solutions - cPanel Certified Partner
Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
Skype - live:kodeslogic0 -
The given logs are fully enough to assist you. The error is in the logs:
httpd: Configuration error: No MPM loaded.
This means you needs to either install mod_prefork or mod_worker as an example. First ensure that "yum update" works fine then login to WHM and go to EasyApache then recompile it by selecting one of those Apache modules.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services1 -
Thank you very much for your response Andrew, in fact I have install mod_prefork installed, but that module belongs to cloudlinux, I have imunify360 installed, I don't know if that is the problem that is causing the module not to work or httpd not starting.
0 -
Can you try to switch to "mod_mpm_worker" and see if rebuild is successful then? Please also try to run "yum update" and check if that works fine.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0
Please sign in to leave a comment.
Comments
4 comments