PHP update - change from fastcgi to php-fpm - apache2 restart failure

Lesiu

New member
Joined
Jul 14, 2017
Messages
1
Hi, I have just updated PHP on my server and changed fastcgi to php-fpm. I had PHP 5.6.29 and 7.0.14 and Apache 2.4.23. Debian 8.6.

In options.conf I changed fastcgi to php-fpm and php2_release from 7.0 to 7.1. ionCube is set to yes (I forgot that ionCube loader for php 7.1 is not available yet).
Code:
php1_release=5.6
php1_mode=php-fpm
php2_release=7.1
php2_mode=php-fpm

Next:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build php d

It took a bit of time where I received this logs during update process:
Code:
ranlib: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
/bin/sh /usr/local/directadmin/custombuild/php-5.6.31/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /usr/local/directadmin/custombuild/php-5.6.31/modules
ranlib: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
and
Code:
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
/usr/bin/ld: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
ar: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
ranlib: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
/bin/sh /usr/local/directadmin/custombuild/php-7.0.21/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /usr/local/directadmin/custombuild/php-7.0.21/modules
ranlib: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)
as: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.25-system.so)

And finally Apache2 didn't restart.
Code:
Restarting php-fpm56.
Restarting php-fpm70.
Downloading updated /usr/lib/ssl/cert.pem
Downloading             cacert.pem...
converted 'http://files.directadmin.com/services/custombuild/all/ssl/cacert.pem' (ANSI_X3.4-1968) -> 'http://files.directadmin.com/services/custombuild/all/ssl/cacert.pem' (UTF-8)
--2017-07-14 19:10:06--  http://files.directadmin.com/services/custombuild/all/ssl/cacert.pem
Resolving files.directadmin.com (files.directadmin.com)... 208.167.226.3, 216.144.254.90, 69.162.69.58
Connecting to files.directadmin.com (files.directadmin.com)|208.167.226.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 261889 (256K)
Saving to: '/usr/local/directadmin/custombuild/cacert.pem'

/usr/local/directadmin/custombuild/cac 100%[=============================================================================>] 255.75K   386KB/s   in 0.7s

2017-07-14 19:10:07 (386 KB/s) - '/usr/local/directadmin/custombuild/cacert.pem' saved [261889/261889]

Restarting apache.
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

systemctl status httpd.service gives:
Code:
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/etc/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since pią 2017-07-14 19:11:12 CEST; 26s ago
  Process: 24045 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 24043 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 24043 (code=exited, status=1/FAILURE)

lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu kill[24045]: kill: failed to parse argument: ''
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: httpd.service: control process exited, code=exited status=1
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: Failed to start The Apache HTTP Server.
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: Unit httpd.service entered failed state.

journalctl -xn gives:
Code:
root@ns338816:/usr/local/directadmin/custombuild# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/etc/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since pią 2017-07-14 19:11:12 CEST; 26s ago
  Process: 24045 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 24043 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 24043 (code=exited, status=1/FAILURE)

lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu kill[24045]: kill: failed to parse argument: ''
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: httpd.service: control process exited, code=exited status=1
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: Failed to start The Apache HTTP Server.
lip 14 19:11:12 nsxxxxxx.ix-xx-xxx.eu systemd[1]: Unit httpd.service entered failed state.

Please help, fast.
 
Back
Top