Applicable to:
- Plesk Onyx for Linux
Symptoms
-
PHP-FPM 7.0 or 7.2 crashes randomly. The following error appears in /var/log/messages:
CONFIG_TEXT: plesk.example.com systemd[1]: plesk-php72-fpm.service: main process exited, code=dumped, status=11/SEGV
plesk.example.com systemd[1]: Unit plesk-php72-fpm.service entered failed state. -
Crash dump contains the following information:
CONFIG_TEXT: # gdb /root/plesk-support-tmp/php-fpm /var/coredumps/core-php-fpm-sig11-user0-group0-
...
[New LWP 29777]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php-fpm: master process (/opt/plesk/php/7.2/et'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000177f17e in ?? ()
Cause
No exact cause. Bugs in PHP 7.0 and 7.2. PHP bug report for both issues https://bugs.php.net/bug.php?id=77114. If you have more details, please add them into the bug thread on php.net
Resolution
There is no solution currently. One of the following can be used as a workaround:
-
Change "Run PHP as" from PHP-FPM to FastCGI.
-
Configure
systemd
service respawn (restart on failure) using the following procedure:-
Connect to the server via SSH
-
Create file
'restart.conf'
insystemd
service folder with the following content:# cat /etc/systemd/system/plesk-php70-fpm.service.d/restart.conf
[Service]
Restart=on-failure
RestartSec=5s -
Reload
systemd
configuration and the service itself:# systemctl daemon-reload
# systemctl restart plesk-php70-fpm
-
Comments
0 comments
Please sign in to leave a comment.