Any help with this Failed to start the Apache web server HTTP server is down 502 bad gateway

sahil213213

Registered
Jan 28, 2023
1
0
0
India
cPanel Access Level
Root Administrator
Any help with this Failed to start the Apache web server HTTP server is down 502 bad gateway


systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl stat
[root@69-49-230-162 ~]# 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 2023-01-28 09:37:28 EST; 1s ago
Process: 8259 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, stat

Jan 28 09:37:28 69-49-230-162.cprapid.com systemd[1]: Starting Apache web server managed by cPanel E
Jan 28 09:37:28 69-49-230-162.cprapid.com restartsrv_httpd[8259]: httpd: Syntax error on line 275 of
Jan 28 09:37:28 69-49-230-162.cprapid.com systemd[1]: httpd.service: control process exited, code=ex
Jan 28 09:37:28 69-49-230-162.cprapid.com systemd[1]: Failed to start Apache web server managed by c
Jan 28 09:37:28 69-49-230-162.cprapid.com systemd[1]: Unit httpd.service entered failed state.
Jan 28 09:37:28 69-49-230-162.cprapid.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,597
2,617
363
cPanel Access Level
Root Administrator
Hey there! The most important piece there is the "Syntax error on line 275 of" - you'll want to make your screen wider or use the "-l" option to see that full output. It also is likely logged in the main Apache log at /etc/apache2/logs/error_log.

Having that information will likely let you resolve the issue.