Author Topic: server switch to php7.1 failure  (Read 7763 times)

0 Members and 1 Guest are viewing this topic.

server switch to php7.1 failure
« on: January 31, 2018, 04:36:32 PM »
Since the other thread is locked starting afresh

Apache & Varnish Cache & Nginx Reverse Proxy
CentOS 7.4.1708 (Core) - Kernel 3.10.0-693.17.1.el7.x86_64
Apache/2.4.2
nginx/1.12.2
PHP 5.6.30
PHP-FPM 5.4.16 (fpm-fcgi)
suPHP 0.7.2
Zend Engine v2.6.0 with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
MySQL 10.1.30-MariaDB
SEL disabled
Mod Security disabled
CWPpro version: 0.9.8.438

Quote
[root@server ~]# sestatus
SELinux status:                 disabled

Quote
--2018-01-31 16:04:56--  http://dl1.centos-webpanel.com/files/php/selector/el7/php-dependencies.sh
Resolving dl1.centos-webpanel.com (dl1.centos-webpanel.com)... 37.187.72.216
Connecting to dl1.centos-webpanel.com (dl1.centos-webpanel.com)|37.187.72.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 844 [application/x-sh]
Saving to: 'php-dependencies.sh'

     0K                                                       100% 63.8M=0s

2018-01-31 16:04:56 (63.8 MB/s) - 'php-dependencies.sh' saved [844/844]

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fra10.de.leaseweb.net
 * epel: mirror.23media.de
 * extras: mirror.fra10.de.leaseweb.net
 * updates: mirror.23media.de
Package log truncated already installed and latest version

Nothing to do

Install Completed
###############################

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.netcologne.de
 * epel: mirror.23media.de
 * extras: ftp.fau.de
 * updates: mirror.23media.de
Package log truncated already installed and latest version

Nothing to do
/usr/local/src/php-rebuild.sh: line 73: ./configure: Permission denied
Configure DONE!
####################
make: *** No targets specified and no makefile found.  Stop.
Make DONE!
####################
make: *** No rule to make target `install'.  Stop.
Make Install DONE!
####################
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using server.vtol.me. Set the 'ServerName' directive globally to suppress this message
PHP Rebuild Completed
#########################

cfda6bffdb428462f0073e878332c07a
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fra10.de.leaseweb.net
 * epel: mirror.23media.de
 * extras: mirror.fra10.de.leaseweb.net
 * updates: mirror.23media.de
Package log truncated already installed and latest version

Nothing to do
--2018-01-31 16:05:25--  http://pecl.php.net/get/imagick-3.4.3.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 245410 (240K) [application/octet-stream]
Saving to: 'imagick-3.4.3.tgz'

     0K .......... .......... .......... .......... .......... 20%  279K 1s
    50K .......... .......... .......... .......... .......... 41%  568K 0s
   100K .......... .......... .......... .......... .......... 62% 22.4M 0s
   150K .......... .......... .......... .......... .......... 83% 65.8M 0s
   200K .......... .......... .......... .........            100%  456K=0.4s

2018-01-31 16:05:25 (671 KB/s) - 'imagick-3.4.3.tgz' saved [245410/245410]

Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
ln: failed to create symbolic link '/usr/local/include/ImageMagick': File exists
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... It exists
found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.7.8 Q16
checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 5.6.30
libs
-lMagickWand -lMagickCore


checking for MagickGetVersion... yes
checking for MagickSetImageInterpolateMethod... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la       modules/* libs/*
log truncated
creating imagick.la
(cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la)
/bin/sh /usr/local/src/imagick-3.4.3/libtool --mode=install cp ./imagick.la /usr/local/src/imagick-3.4.3/modules
cp ./.libs/imagick.so /usr/local/src/imagick-3.4.3/modules/imagick.so
cp ./.libs/imagick.lai /usr/local/src/imagick-3.4.3/modules/imagick.la
PATH="$PATH:/sbin" ldconfig -n /usr/local/src/imagick-3.4.3/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/src/imagick-3.4.3/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files:           /usr/local/include/php/

Cloning into 'uploadprogress'...
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable uploadprogress functions... yes, shared
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
log truncated
creating uploadprogress.la
(cd .libs && rm -f uploadprogress.la && ln -s ../uploadprogress.la uploadprogress.la)
/bin/sh /usr/local/src/uploadprogress/libtool --mode=install cp ./uploadprogress.la /usr/local/src/uploadprogress/modules
cp ./.libs/uploadprogress.so /usr/local/src/uploadprogress/modules/uploadprogress.so
cp ./.libs/uploadprogress.lai /usr/local/src/uploadprogress/modules/uploadprogress.la
PATH="$PATH:/sbin" ldconfig -n /usr/local/src/uploadprogress/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/src/uploadprogress/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131226/

Without knowing what sort of permission and where is required it is not possible to debug the issue...

/usr/local/src/  root:root 766
« Last Edit: January 31, 2018, 04:41:18 PM by n8v8r »

Offline
***
Re: server switch to php7.1 failure
« Reply #1 on: January 31, 2018, 05:05:46 PM »
Can you tell me how I can replicate this issue?

Re: server switch to php7.1 failure
« Reply #2 on: January 31, 2018, 05:48:39 PM »
for debugging it might be easier to let me know about the required permissions or furnish the php-rebuild.sh script with a debug(ger) output to see what is actually happening at line 73. short of that the system specification are stated. Else

fstab
Quote
/dev/mapper/centos_server-root /                       ext4    defaults,x-systemd.device-timeout=0 1 1
UUID=... /boot                   xfs     defaults,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-home /home                   ext4    defaults,x-systemd.device-timeout=0,nodev,nosuid 1 2
/dev/mapper/centos_server-tmp /tmp                    ext4    defaults,x-systemd.device-timeout=0,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-var /var                    ext4    defaults,x-systemd.device-timeout=0,nosuid 1 2
/dev/mapper/centos_server-var_log /var/log                ext4    defaults,x-systemd.device-timeout=0,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-var_log_audit /var/log/audit          ext4    defaults,x-systemd.device-timeout=0,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-var_tmp /var/tmp                ext4    defaults,x-systemd.device-timeout=0,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-var_www /var/www                ext4    defaults,x-systemd.device-timeout=0,nosuid,noexec,nodev 1 2
/dev/mapper/centos_server-swap swap                    swap    defaults,x-systemd.device-timeout=0 0 0

tmpfs /dev/shm tmpfs rw,nodev,noexec,nosuid 0 0
proc /proc proc rw,hidepid=2 0 0

sysctl
Quote
fs.file-max = 209708
vm.swappiness = 30
vm.dirty_ratio = 30
vm.dirty_background_ratio = 5
vm.mmap_min_addr = 4096
fs.suid_dumpable = 0
kernel.sysrq = 0
kernel.dmesg_restrict = 1
kernel.randomize_va_space = 2
kernel.kptr_restrict = 2
kernel.core_uses_pid = 1
kernel.pid_max = 65535
kernel.msgmnb = 65535
kernel.msgmax = 65535

limits
Quote
*                hard    core            0
*      soft   nofile    4096
*      hard   nofile    65536
*      soft   nproc     4096
*      hard   nproc     4096
*      soft   locks     4096
*      hard   locks     4096
*      soft   stack     10240
*      hard   stack     32768
*      soft   memlock   64
*      hard   memlock   64
*      hard   maxlogins 10
*      soft   fsize     33554432
*      hard   fsize     67108864
root   soft   nofile    4096
root   hard   nofile    65536
root   soft   nproc     4096
root   hard   nproc     4096
root   soft   stack     10240
root   hard   stack     32768
root   soft   fsize     33554432

host.allow
Quote
ALL: 127.0.0.1
sshd: ALL

host.deny
Quote
ALL: ALL

php packages


PHP Version Switcher >> PHP Version 7.1.0 >> Build
« Last Edit: January 31, 2018, 05:51:13 PM by n8v8r »

Offline
***
Re: server switch to php7.1 failure
« Reply #3 on: January 31, 2018, 05:57:31 PM »
ah i cant replicate the issue. Its working fine on my machine.

Re: server switch to php7.1 failure
« Reply #4 on: January 31, 2018, 06:00:39 PM »
That is fine, but how does help my machine?

Offline
*****
Re: server switch to php7.1 failure
« Reply #5 on: January 31, 2018, 06:02:33 PM »
confirmed no such issues

Offline
*****
Re: server switch to php7.1 failure
« Reply #6 on: January 31, 2018, 06:03:49 PM »
That is fine, but how does help my machine?
you better check with a good system admin

Offline
*****
Re: server switch to php7.1 failure
« Reply #7 on: January 31, 2018, 06:04:31 PM »
topic closed