Random apache 503 > PHP-fpm segfaults

freakazoid

Verified User
Joined
Jan 17, 2019
Messages
13
Hi all,

I have a new DA server which worked fine, but for some curious reason it now apache throws random 503 error and I see PHP-fpm segfaults

Dec 21 14:28:39 ws17 systemd[1]: Created slice User Slice of UID 1001.
Dec 21 14:28:39 ws17 systemd[1]: Removed slice User Slice of UID 1001.
Dec 21 14:28:39 ws17 kernel: [ 693.514721] php-fpm74[7717]: segfault at 0 ip 0000000000000000 sp 00007ffc4de5ec88 error 14 in php-fpm74[55a75fe00000+134000]
Dec 21 14:28:39 ws17 kernel: [ 693.514731] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
Dec 21 14:28:39 ws17 systemd[1]: Created slice User Slice of UID 1001.
Dec 21 14:28:39 ws17 systemd[1]: Removed slice User Slice of UID 1001.
I updated all the packages, upgraded to the latest Debian. Did a ./build all to rebuild everything just to be sure. But is still keeps giving 503's for about 50% of the cases.

root@ws17:~# php -v
PHP 7.4.33 (cli) (built: Dec 21 2022 13:55:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Custombuild options

# PHP Settings
php1_release=7.4
php1_mode=php-fpm
php2_release=8.1
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=no
php_ini=no
php_timezone=Europe/Amsterdam
php_ini_type=production
x_mail_header=yes

Any ideas?
 
Humm, could be a few things that cause that kind of error. I would first try running the set_permissions.sh script from the scripts folder, possibly /home/tmp or /home/*user*/tmp directory removed. Possibly PHP OPCache "opcache.file_cache" has been set.
 
Hi,
Tried it, and make no difference. You mentioned OPCache, but I don't have opcache enabled;

root@ws17:/usr/local/directadmin/custombuild# ./build php_opcache
Cannot build opCache, because you do not have it set in php_extensions.conf file.
 
Humm mentioned error commonly happens with a mis-configured OPCache. Your going to have to look though your webserver and php logs for more clues as to what is happening around the time it happens.
 
try check it with

Code:
/usr/local/php74/bin/php -i | grep opcache
 
ok, this should create tickets. DA team can help you.

before create tickets. Are you sure, you not outdated of OS.
if there have update in "yum update", then trying updated and rebuild PHP again.
 
All uptodate and complete directadmin rebuild changes nothing.
root@ws17:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
 
Back
Top