The sock file that php-fpm is listening to when it starts is not the listen file specified in php-fpm.conf.

clipboard.png

clipboard.png

Nginxfastcgi_pass

php-fpm -i

clipboard.png

inexplicably points to another php directory;

seek the advice of the great god, thank you very much

Php
Sep.17,2021

figured it out by myself. The tough one

kill all fpm processes first
sudo killall php-fpm

modify the prefix path to FastCGI process manager started by fpm to add (valid for personal test)
sudo sbin/php-fpm-p / usr/local/php7.1

then modify the location of the php.ini when fpm starts. Visually, this can only be used once. After the service is turned off, the subsequent opening still has to be specified (seemingly invalid)
sudo sbin/php-fpm-c / usr/local/php7.1/lib/php.ini

modified status
vagrant@homestead:/usr/local/php7.1$ sudo sbin/php-fpm-t
[25-Oct-2018 09:03:00] NOTICE: configuration file / usr/local/php/etc/php-fpm.conf test is successful
the default fpm configuration file remains the same after modification.

but overall (3 versions of php)

root 1056 0.0 1.7 416136 35612? Ss 06:46 0:00 php-fpm: master process (/ etc/php/5.6/fpm/php-fpm.conf)
vagrant 1386 1386 416136 9020? S 06:46 0:00 php-fpm: pool www
vagrant 1387 0.00.4 416136 9020? S 06:46 0:00 php-fpm: pool www
root 25141 25141 188716 11608? Ss 08:58 0:00 php-fpm: master process (/ usr/local/php/etc/php-fpm.conf)
vagrant 25142 25142 188716 8656? S 08:58 0:00 php-fpm: pool www
vagrant 25143 0.00.4 188716 8656? S 08:58 0:00 php-fpm: pool www
root 25276 25276 188704 11432? Ss 09:00 0:00 php-fpm: master process (/ usr/local/php7.1/etc/php-fpm.conf)
vagrant 25277 25277 188704 8556? S 09:00 0:00 php-fpm: pool www
vagrant 25278 0.00.4 188704 8556? S 09:00 0:00 php-fpm: pool www

Menu