httpd.service failed after build new php version

vahid07

Verified User
Joined
Apr 16, 2018
Messages
22
Hi,

i had php 5.6 with suphp as first PHP and php 7.0.x with php-fpm as second php.

i had custom build 2 plugin in my panel. so i changed those:

First PHP: php 7.1.x +php-fpm
Second PHP : php 7.0.x +php-fpm

and then build php

all thing is ok but httpd go down

output of systemctl status httpd.service:

Code:
[root@da custombuild]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2018-10-06 23:14:07 +0330; 13s ago
  Process: 8863 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 8861 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 8861 (code=exited, status=1/FAILURE)

Oct 06 23:14:06 da.personaldns.org systemd[1]: Starting The Apache HTTP Server...
Oct 06 23:14:07 da.personaldns.org httpd[8861]: AH00526: Syntax error on line 42 of /usr/local/directadmin/data/users/basijutn/httpd.conf:
Oct 06 23:14:07 da.personaldns.org httpd[8861]: Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration
Oct 06 23:14:07 da.personaldns.org systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 06 23:14:07 da.personaldns.org kill[8863]: kill: cannot find process ""
Oct 06 23:14:07 da.personaldns.org systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 06 23:14:07 da.personaldns.org systemd[1]: Failed to start The Apache HTTP Server.
Oct 06 23:14:07 da.personaldns.org systemd[1]: Unit httpd.service entered failed state.
Oct 06 23:14:07 da.personaldns.org systemd[1]: httpd.service failed.

output of journalctl -xe
Code:
[root@da custombuild]# journalctl -xe
Oct 06 23:15:02 da.personaldns.org named[2750]: client 74.125.190.22#46739 (csh.ir): query (cache) 'csh.ir/SOA/IN' denied
Oct 06 23:15:02 da.personaldns.org named[2750]: client 74.125.190.136#54022 (csh.ir): query (cache) 'csh.ir/NS/IN' denied
Oct 06 23:15:02 da.personaldns.org named[2750]: client 172.217.32.141#48432 (csh.ir): query (cache) 'csh.ir/TXT/IN' denied
Oct 06 23:15:02 da.personaldns.org named[2750]: client 172.217.32.133#50645 (csh.ir): query (cache) 'csh.ir/MX/IN' denied
Oct 06 23:15:02 da.personaldns.org named[2750]: client 74.125.190.136#35128 (csh.ir): query (cache) 'csh.ir/SOA/IN' denied
Oct 06 23:15:02 da.personaldns.org named[2750]: client 74.125.190.138#61605 (csh.ir): query (cache) 'csh.ir/NS/IN' denied
Oct 06 23:15:03 da.personaldns.org named[2750]: client 74.125.190.28#49507 (csh.ir): query (cache) 'csh.ir/TXT/IN' denied
Oct 06 23:15:03 da.personaldns.org named[2750]: client 74.125.190.151#61042 (csh.ir): query (cache) 'csh.ir/SOA/IN' denied
Oct 06 23:15:07 da.personaldns.org systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Oct 06 23:15:07 da.personaldns.org httpd[8988]: AH00526: Syntax error on line 42 of /usr/local/directadmin/data/users/basijutn/httpd.conf:
Oct 06 23:15:07 da.personaldns.org httpd[8988]: Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration
Oct 06 23:15:07 da.personaldns.org systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 06 23:15:07 da.personaldns.org kill[8990]: kill: cannot find process ""
Oct 06 23:15:07 da.personaldns.org systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 06 23:15:07 da.personaldns.org systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Oct 06 23:15:07 da.personaldns.org systemd[1]: Unit httpd.service entered failed state.
Oct 06 23:15:07 da.personaldns.org systemd[1]: httpd.service failed.
Oct 06 23:15:07 da.personaldns.org systemd[1]: PID file /run/php-fpm70.pid not readable (yet?) after reload.
Oct 06 23:15:07 da.personaldns.org systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm70.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm70.service has finished reloading its configuration
--
-- The result is done.
Oct 06 23:15:07 da.personaldns.org systemd[1]: PID file /run/php-fpm71.pid not readable (yet?) after reload.
Oct 06 23:15:07 da.personaldns.org systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm71.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm71.service has finished reloading its configuration
--
-- The result is done.
Oct 06 23:15:11 da.personaldns.org named[2750]: client 54.193.186.210#49161 (www.beitolabbas.ir): query (cache) 'www.beitolabbas.ir/A/IN' denied
Oct 06 23:15:12 da.personaldns.org systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished shutting down.
Oct 06 23:15:12 da.personaldns.org systemd[1]: Stopping User Slice of root.
-- Subject: Unit user-0.slice has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has begun shutting down.
Oct 06 23:15:21 da.personaldns.org dovecot[889]: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=63.143.42.248, lip=195.201.18.214, session=<EdDmoJR3i6s/jyr4>
Oct 06 23:15:23 da.personaldns.org kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:07:95:ad:d2:74:7f:6e:37:e3:08:00 SRC=146.185.222.61 DST=195.201.18.214 LEN=40 TOS=0x00 PREC=0x00 TTL=247 ID=39884 PROTO=TCP SPT=59408 DPT=989

can you please guide me how can i solve it? please help as soon as possible. Thank you
 
Hello,

try:

Code:
./build apache
./build php
./build rewrite_confs

as root in a SSH console.
 
Back
Top