Topic: PHP-FPM 7.0 + PHP-FPM 7.2 (remi)
Bonjour,
je suis en train de tenter de mettre en place dans un contexte multi-instances web plusieurs version de PHP ( PHP70 sclo/rh repos + PHP72 remi repo).
Je me heurte à un petit souci.
Malgré le changement du numéro de port, le moteur ne veut pas démarrer. je suspecte un souci de nommage de binaire (php-fpm des 2 côtés).
(éléments techniques à suivre).
Centos 7.3 (me demande si c'est pas ça le souci ... )
juil. 17 09:03:35 l417501pdev02 kernel: php-fpm[29487]: segfault at ffffff8000000010 ip 00007f2f9501dbfa sp 00007ffcfe2403d0 error 5 in opcache.so[7f2f9500e000+64000]
juil. 17 09:03:35 l417501pdev02 abrt-hook-ccpp[29488]: Process 29487 (php-fpm) of user 0 killed by SIGSEGV - dumping core
juil. 17 09:03:36 l417501pdev02 systemd[1]: php72-php-fpm.service: main process exited, code=dumped, status=11/SEGV
dans l'instance, php -v:
PHP 7.2.7 (cli) (built: Jun 20 2018 07:26:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.2, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
sous root:
php72 --version
PHP 7.2.7 (cli) (built: Jun 20 2018 07:26:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.2, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
php72 --modules
Erreur de segmentation (core dumped)
Donc,
j'ai retiré le pacjkage opcache:
yum remove php72-php-opcache-7.2.7-1.el7.remi.x86_64
et maintenant ça fonctionne ...
systemctl start php72-php-fpm.service
ps -leaf|grep php
4 S root 29933 1 2 80 0 - 384898 ep_pol 09:26 ? 00:00:00 php-fpm: master process (/etc/opt/remi/php72/php-fpm.conf)
5 S labot02 29934 29933 0 80 0 - 385419 inet_c 09:26 ? 00:00:00 php-fpm: pool labot02
5 S labot02 29935 29933 0 80 0 - 385419 inet_c 09:26 ? 00:00:00 php-fpm: pool labot02
5 S labot02 29936 29933 0 80 0 - 385419 inet_c 09:26 ? 00:00:00 php-fpm: pool labot02
5 S labot02 29937 29933 0 80 0 - 385419 inet_c 09:26 ? 00:00:00 php-fpm: pool labot02
5 S labot02 29938 29933 0 80 0 - 385419 inet_c 09:26 ? 00:00:00 php-fpm: pool labot02
0 R root 29951 3984 0 80 0 - 28166 - 09:26 pts/0 00:00:00 grep --color=auto php
y a t'il un souci sur opcache?