httpd not running
Apache Restart Output: Apache could not be started due to an error: The "/usr/local/cpanel/scripts/restartsrv_httpd --start" command (process 3283288) reported error number 255 when it ended. Waiting for "httpd" to start "Waiting for httpd,litespeed,lscgid to shutdown ... not running. ""failed. Cpanel::Exception::Services::StartError Service Status undefined status from Cpanel::ServiceManager::Services::Httpd Service Error (XID 6v3j7r) The "httpd" service failed to start. Startup Log Dec 22 12:34:14 linux99.mydnsweb.com systemd[1]: Starting Apache web server managed by cPanel EasyApache... Dec 22 12:34:14 linux99.mydnsweb.com restartsrv_httpd[3283407]: httpd: Syntax error on line 274 of /etc/apache2/conf/httpd.conf: Syntax error on line 33 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 31 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-litespeed/003_i360_2_bruteforce.conf: No such file or directory Dec 22 12:34:14 linux99.mydnsweb.com systemd[1]: httpd.service: control process exited, code=exited status=1 Dec 22 12:34:14 linux99.mydnsweb.com systemd[1]: Failed to start Apache web server managed by cPanel EasyApache. Dec 22 12:34:14 linux99.mydnsweb.com systemd[1]: Unit httpd.service entered failed state. Dec 22 12:34:14 linux99.mydnsweb.com systemd[1]:
-
Try the following: /scripts/rebuildhttpdconf /scripts/restartsrv_httpd 0 -
rebuild not working /scripts/rebuildhttpdconf Initial configuration generation failed with the following message: The "/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.99f70c1b.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"" command (process 3431297) reported error number 1 when it ended. httpd: Syntax error on line 275 of /etc/apache2/conf/httpd.conf.work.99f70c1b.cfgcheck: Syntax error on line 33 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 31 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-litespeed/003_i360_2_bruteforce.conf: No such file or directory Rebuilding configuration without any local modifications. Failed to generate a syntactically correct Apache configuration. Bad configuration file located at /etc/apache2/conf/httpd.conf.work.99f70c1b Error: The "/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.99f70c1b.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"" command (process 3431299) reported error number 1 when it ended. httpd: Syntax error on line 275 of /etc/apache2/conf/httpd.conf.work.99f70c1b.cfgcheck: Syntax error on line 33 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 31 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-litespeed/003_i360_2_bruteforce.conf: No such file or directory 0 -
Try This: mv /etc/apache2 /etc/apache2bk yum reinstall ea-apache* -y /scripts/rebuildhttpdconf /scripts/restartsrv_httpd This will solve your problem!;) 0 -
I'm actually not sure that will solve the issue as the error is related to the ModSecurity tools. Have you made any changes to ModSecurity or Imunify recently? 0 -
Try This: mv /etc/apache2 /etc/apache2bk yum reinstall ea-apache* -y /scripts/rebuildhttpdconf /scripts/restartsrv_httpd This will solve your problem!;)
Hello! I just had the same issue today, thanx, this solve it0
Please sign in to leave a comment.
Comments
5 comments