Apache Can not Start

arazit

Verified User
Joined
Aug 20, 2008
Messages
184
Hello,
Apache can not start and I get this error:

Enabling httpd in systemd...
httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Syntax error on line 32 of /etc/httpd/conf/extra/httpd-modsecurity.conf: Syntax error on line 1 of /etc/modsecurity.d/comodo_rules.conf.main: Syntax error on line 2 of /etc/cwaf/cwaf.conf: Syntax error on line 1 of /usr/local/cwaf/rules/rules.conf.main: Could not open configuration file /etc/httpd/00_Init_Initialization.conf: No such file or directory
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 209.190.77.249 for your server IP
Restarting apache.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

This file is in /usr/local/cwaf/rules/ and not in /etc/httpd/

I run ./build update ./build apache ./build php n ./build rewrite_confs ./build modsecurity ./build modsecurity_rules and ./build rewrite_confs but this command can not solve this problem.
What to do?
 
Last edited:
Please try:
Code:
rm -rf /usr/local/cwaf
rm -rf /etc/cwaf

Then:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build modsecurity
 
I get this in end of build

+------------------------------------------------------
| LOG : ----------------Checking Apache-----------------------
| LOG : Found APACHE version 2.4.20
| LOG : No MODSECURITY detected
+------------------------------------------------------
| No installed ModSecurity for Apache found
+------------------------------------------------------
| LOG : ---------------Checking LiteSpeed---------------------
| LOG : LiteSpeed binary /usr/local/lsws/bin/lshttpd not found!
+------------------------------------------------------
| Not found LiteSpeed web server with mod_security enabled
+------------------------------------------------------
| LOG : -----------------Checking Nginx-----------------------
| LOG : Nginx binary /usr/local/nginx/sbin/nginx not found!
+------------------------------------------------------
| Not found Nginx web server with mod_security enabled
+------------------------------------------------------
| LOG : ------------------------------------------------------
ERROR: Not found mod_security, exiting
Can't open /etc/cwaf/main.conf: No such file or directory.
Can't open /etc/cwaf/main.conf: No such file or directory.
./build: line 14205: /usr/local/cwaf/scripts/updater.pl: No such file or directory
Installation of ModSecurity Rule Set has been finished.
 
I run
./build rewrite_confs after this command and solved this issue but I get this error in end
Installation of ModSecurity Rule Set has been finished.
Restarting apache.
Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
 
Back
Top