PHP FPM постоянно падает исправление ошибки

Чаще всего остался в каталоге настроек старый файл конфигурации и к нему библиотека, она то и вызывает ошибку.
Но это при запуске видно – тогда – Не запускается core dump.
А намного чаще – в логах работы – dmesg и php-fpm видно все время падает и перезапускается – и постоянные ошибки sigsegv.

Это FreeBSD на Centos реже.
Виноват вроде то один модуль – но он нужен
https://bugs.php.net/bug.php?id=59297 pecl-php Package: oauth (PECL) ошибка с 2010 теперь и php7.

Обыскал Интернет – на Centos та же ошибка и их не меньше.

Помогает пересборка всех портов с зависимостями но как минимум упадет Gnome3 или Xorg Nvidia и еще придется пересобирать ядро и мир.. И 780 портов может потянуть на 30 часов с загрузкой всего то 15 гигабайт.
Скрипт здесь где то лежит re install port all-depends list.

А вот чуть по проще вариант – ровно 2 минуты. Заработал наконец то пакетный менеджер.

Проверить и закомментировать лишнее – может не нужно столько модулей (здесь для 12 сайтов на одной машинке).
если что лишнее стерлось – смотрим файлик php-ports.

#!/bin/sh
#make -C /usr/ports/databases/mysql80-server clean reinstall

#make -C /usr/ports/www/nginx clean reinstall

rm /usr/local/etc/php/*.ini

PHPPORT=$1
if ( test "$1" = "" ) then
#PHPPORT=php56
PHPPORT=php70
fi
LINE=`whereis -s $PHPPORT | awk '{print $2}' | cut -c 12-127`
echo $LINE
L1=`whereis -s $PHPPORT-calendar | awk '{print $2}' | cut -c 12-127`
L2=`whereis -s $PHPPORT-ctype | awk '{print $2}' | cut -c 12-127`
L3=`whereis -s $PHPPORT-curl | awk '{print $2}' | cut -c 12-127`
L4=`whereis -s $PHPPORT-dba | awk '{print $2}' | cut -c 12-127`
L5=`whereis -s $PHPPORT-dom | awk '{print $2}' | cut -c 12-127`
L6=`whereis -s $PHPPORT-exif | awk '{print $2}' | cut -c 12-127`
L7=`whereis -s $PHPPORT-ftp | awk '{print $2}' | cut -c 12-127`
L8=`whereis -s $PHPPORT-fileinfo | awk '{print $2}' | cut -c 12-127`
L9=`whereis -s $PHPPORT-filter | awk '{print $2}' | cut -c 12-127`
L10=`whereis -s $PHPPORT-gd | awk '{print $2}' | cut -c 12-127`
L11=`whereis -s $PHPPORT-gettext | awk '{print $2}' | cut -c 12-127`
L12=`whereis -s $PHPPORT-hash | awk '{print $2}' | cut -c 12-127`
L13=`whereis -s $PHPPORT-iconv | awk '{print $2}' | cut -c 12-127`
L14=`whereis -s $PHPPORT-imap | awk '{print $2}' | cut -c 12-127`
L15=`whereis -s $PHPPORT-json | awk '{print $2}' | cut -c 12-127`
L16=`whereis -s $PHPPORT-mbstring | awk '{print $2}' | cut -c 12-127`
L17=`whereis -s $PHPPORT-mcrypt | awk '{print $2}' | cut -c 12-127`
L18=`whereis -s $PHPPORT-mysql | awk '{print $2}' | cut -c 12-127`
L19=`whereis -s $PHPPORT-mysqli | awk '{print $2}' | cut -c 12-127`
#test 4 core dump
L20=`whereis -s $PHPPORT-opcache | awk '{print $2}' | cut -c 12-127`
L21=`whereis -s $PHPPORT-bz2 | awk '{print $2}' | cut -c 12-127`
L22=`whereis -s $PHPPORT-openssl | awk '{print $2}' | cut -c 12-127`
L23=`whereis -s $PHPPORT-pcntl | awk '{print $2}' | cut -c 12-127`
#?
L24=`whereis -s $PHPPORT-pdo | awk '{print $2}' | cut -c 12-127`
L25=`whereis -s $PHPPORT-pdo_mysql | awk '{print $2}' | cut -c 12-127`
L26=`whereis -s $PHPPORT-pdo_sqlite | awk '{print $2}' | cut -c 12-127`
L27=`whereis -s $PHPPORT-phar | awk '{print $2}' | cut -c 12-127`
L28=`whereis -s $PHPPORT-posix | awk '{print $2}' | cut -c 12-127`
# make -C `whereis -s $PHPPORT-recode | awk '{print $2}' | cut -c 12-127` reinstall

L29=`whereis -s $PHPPORT-session | awk '{print $2}' | cut -c 12-127`
L30=`whereis -s $PHPPORT-simplexml | awk '{print $2}' | cut -c 12-127`
L31=`whereis -s $PHPPORT-snmp | awk '{print $2}' | cut -c 12-127`
L32=`whereis -s $PHPPORT-socket | awk '{print $2}' | cut -c 12-127`
L33=`whereis -s $PHPPORT-sqlite3 | awk '{print $2}' | cut -c 12-127`
L34=`whereis -s $PHPPORT-tokenizer | awk '{print $2}' | cut -c 12-127`
L35=`whereis -s $PHPPORT-xml | awk '{print $2}' | cut -c 12-127`
L36=`whereis -s $PHPPORT-xmlreader | awk '{print $2}' | cut -c 12-127`
L37=`whereis -s $PHPPORT-xmlwriter | awk '{print $2}' | cut -c 12-127`
L38=`whereis -s $PHPPORT-xsl | awk '{print $2}' | cut -c 12-127`
L39=`whereis -s $PHPPORT-zip | awk '{print $2}' | cut -c 12-127`
L40=`whereis -s $PHPPORT-zlib | awk '{print $2}' | cut -c 12-127`

LIN="$LINE ${L1} ${L2} ${L3} ${L4} ${L5} ${L6} ${L7} $L8 $L9 $L10 $L11 $L12 $L13 $L14 $L15 $L16 $L17 $L18 $L19 $L20 $L21 $L22 $L23 $L24 $L25 $L26 $L27 $L28 $L29 $L30 $L31 $L32 $L33 $L34 $L35 $L36 $L37 $L38 $L39 $L40"
echo $LINE
echo $LIN

pkg query %o | grep php | awk '{print $1}' >> php-ports
echo $LIN > php-p
cat php-ports |xargs pkg delete -y
pkg install -y $LIN
make -C `whereis -s $PHPPORT| awk '{print $2}'` clean


Падает но намного реже – еще что то есть…

Edit php-fpm.conf = fpmconf ( /usr/local/etc/php-fpm.conf ) для каждого pool
pm.start_servers = 4
pm.min_spare_servers = 2
pecl-imagick отключил
Не проверял но должно быть ошибок еще меньше. // исправилось что ли – 1 сбой за 4 часа.
поднял еще 6 и 3.

.. не понятно сутки работает все сайты без задержек никаких ругательств nginx а где ошибки –
в журнале день назад запись что даемон php – fpm запустился. И больше не слетал.
ищите исполнителя работ надо бабло коробку из под бумаги – отвечайте им на немецком как там будет иди прямо домой… почти по русски

Отправляйте 1 биткоин или эфир или Z-cash на мой адрес! За перевод денежки улучшается карма как говорят. А это значит еще в добавок что денег приходит много больше чем поделились!

Не, биткойн я пожалуй обратно отправлю, это 600 тысяч рублей уже ну сейчас временно 480 , кто то прислал 1 Monero и на том спасибо ($60 или 3700р).

Немножко изменения – октябрь 2019. В скрипте лучше указать php72 а не 73. Firefox использует ImageMagick7 и Gnome3 Freebsd тоже.

WordPress требует curl (curl.haxx.se) –

make -C /usr/ports/ftp/curl config install

portmaster -r curl

(или скрипт ~/reins-port curl )

Конфликт с расширениями php –

pkg delete php72-zip php72-zlib php72-phar php72-imap

root@pc1:/tmp/1# service php-fpm restart
Performing sanity check on php-fpm configuration:
[22-Oct-2019 02:12:06] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Stopping php_fpm.
Waiting for PIDS: 23677.
Performing sanity check on php-fpm configuration:
[22-Oct-2019 02:12:06] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.
root@pc1:/tmp/1# 
root@pc1:/usr/local/www/wordpress# chown -R www:www *

root@pc1:/usr/local/www/wordpress# service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 87083.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@pc1:/usr/local/www/wordpress# service php-fpm restart
Performing sanity check on php-fpm configuration:
[22-Oct-2019 02:14:18] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Stopping php_fpm.
Waiting for PIDS: 27429.
Performing sanity check on php-fpm configuration:
[22-Oct-2019 02:14:18] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.
root@pc1:/usr/local/www/wordpress# php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
Phar
posix
recode
Reflection
session
SimpleXML
snmp
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

# wordpress
cat ~/reins-php
..
#!/bin/sh
#make -C /usr/ports/databases/mysql80-server clean reinstall
#make -C /usr/ports/www/nginx clean reinstall

pkg install -f -y textproc/p5-XML-Parser devel/p5-Locale-gettext security/p5-Authen-SASL converters/p5-Unicode-Map8 converters/p5-Unicode-String security/p5-GSSAPI security/p5-Digest-HMAC converters/p5-Unicode-Map8 lang/p5-Error textproc/p5-XML-Parser devel/p5-Locale-gettext

rm /usr/local/etc/php/*.ini
PHPPORT=$1
 if ( test "$1" = "" ) then
 PHPPORT=php72
 fi
LINE=`whereis -s $PHPPORT  | awk '{print $2}'`
echo $LINE
make -C $LINE clean reinstall
#LINST=`whereis -s $LINE | awk '{print $2}'| cut -c 1-8`

make -C `whereis -s  libargon2 | awk '{print $2}'` reinstall

make -C `whereis -s  $PHPPORT-calendar | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-ctype | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-curl | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-dba | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-dom | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-exif | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-ftp | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-fileinfo | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-filter | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-gd | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-gettext | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-hash | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-iconv | awk '{print $2}'` reinstall
# conflict w WordPress php72-curl  extension
#make -C `whereis -s  $PHPPORT-imap | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-json | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-mbstring | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-mcrypt | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-mysql | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-mysqli | awk '{print $2}'` reinstall
#test 4 core dump
make -C `whereis -s  $PHPPORT-opcache | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-openssl | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-pcntl | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-pdo_mysql | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-pdo_sqlite | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-phar | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-posix | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-recode | awk '{print $2}'` reinstall

make -C `whereis -s  $PHPPORT-session | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-simplexml | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-snmp | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-socket | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-sqlite3 | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-tokenizer | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-xml | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-xmlreader | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-xmlwriter | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-xsl | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-zip | awk '{print $2}'` reinstall
make -C `whereis -s  $PHPPORT-zlib | awk '{print $2}'` reinstall

# firefox use ImageMagick7 - conflict  now pecl-imagick-im7
make -C `whereis -s pecl-imagick-im7 | awk '{print $2}'` clean reinstall
#pkg query %ro | grep php | xargs portmaster

phar zip zlib расширения установились обратно с wordpress (без них не работает обновление плагинов! и curl тоже нужен – загрузка и передача файлов в интернет из php). сбойное расширение почты imap – отдельно работает а вместе с curl wordpress – нет.

WordPress plugins – еще требуются порты, opencl amdgpu ffmpeg а также vlc firefox ImageMagick7 – это еще и рабочая станция. Видео обработка использует видюху тоже.

Аппаратная часть (как майнер тоже может использоваться – amd 580 vega56 nvidia 2060 argon2, nvidia надо все от ubuntu 18.04 пока , kldload linux linux64) . системники с процессором ryzen и intel core i5 , новая плата ddr4 , старая если intel i5 то 9 чипов samsung ecc 2 x 8 gb). ssd intel 500 + 2x 4tb hitachi hgst hdd.