PHP 7.4 nd Apache2 start problem

arky_

Verified User
Joined
Apr 25, 2020
Messages
67
Hello,
I installed php 7.4 for directamin as an additional. After installation, the httpd (apache2) service turned off and no websites work. I deleted php 7.4 and I have php 7.3 by default but I still can't enable httpd service.
/ usr / bin / systemctl start httpd.service> / dev / null 2> & 1 -v has no effect.
Help how to run it?
 
/ usr / bin / systemctl start httpd.service shows:
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
where:
"systemctl status httpd.service" gives us:
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
root @ server1: / usr / local # systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-06-03 18:14:06 CEST; 4s ago
Process: 28878 ExecStart = / usr / sbin / httpd $ OPTIONS -DFOREGROUND (code = exited, status = 1 / FAILURE)
Main PID: 28878 (code = exited, status = 1 / FAILURE)

Jun 03 18:14:06 server1.web-hosting24.pl systemd [1]: Starting The Apache HTTP Server ...
Jun 03 18:14:06 server1.web-hosting24.pl httpd [28878]: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of / etc / httpd / conf /extra/httpd-phpmodules.conf: Syntax error on line 35 of / etc / httpd / conf / extra /
Jun 03 18:14:06 server1.web-hosting24.pl systemd [1]: httpd.service: Main process exited, code = exited, status = 1 / FAILURE
Jun 03 18:14:06 server1.web-hosting24.pl systemd [1]: httpd.service: Failed with result 'exit-code'.
Jun 03 18:14:06 server1.web-hosting24.pl systemd [1]: Failed to start The Apache HTTP Server.
 
Syntax error on line 50 of /etc/httpd/conf/httpd.conf
Syntax error on line 3 of /etc/httpd/conf/extra/httpd-phpmodules.conf
and so on..
check this files, maybe you are trying to install two mod_php versions, or any module broken - try to recompile httpd
 
I used:

cd / usr / local / directadmin / custombuild
./build update
./build apache
./build php n
./build rewrite_confs

but I still have the same mistake.

Line: Jun 04 11:28:07 server1.web-hosting24.pl httpd [11067]: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of / etc / httpd /conf/extra/httpd-phpmodules.conf: Syntax error on line 35 of / etc / httpd / conf / extra /
It doesn't show the whole length and I don't know how to display it in two lines.
 
Ok, I was able to run "httpd" (by commenting the line) but the problem still remains!
Clings to 35 lines of the file "httpd-modsecurity.conf"
-
IncludeOptional /etc/modsecurity.d/*.conf.main
-
and this line leads to: "copmodo-rules.conf.main", in which there is one line:
-
Include /etc/cwaf/cwaf.conf
-
and here is the problem because in / etc I don't have the "cwaf" folder
I will not smile to leave it in this state.
 
Please do not double post, it makes things confusing for people trying to help.

Use either this thread or the one below:
 
I can't, I'm not a mod, just trying to help though to keep a better overview for yourself and people helping you. ;)
 
Back
Top