What is the reason why php.ini is invalid in lnmp environment?

the PHP7,phpinfo installed by source code compilation shows that the path to php.ini is in

Configuration File (php.ini) Path / usr/local/php/etc

so I cp php.ini-production / usr/local/php/etc/php.ini
from the source code, but no matter how I modify php.ini, it doesn"t work (restart php-fpm)

there is gd.so opcache.so in / usr/local/php/lib/php/extensions/no-debug-non-zts-20170718
in the extension folder, but when the extension is enabled in php.ini, the phpinfo is not displayed. Therefore, it is proved that the php.ini changes are invalid.

is the reason why php.ini is not loaded
phpinfo shows:

Configuration File (php.ini) Path / usr/local/php/etc
Loaded Configuration File (none)

I have specified the configuration file path at compile time-- with-config-file-path=/usr/local/php/etc

clipboard.png

Jun.05,2022

php-- ini to see which ini file to use

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3098a-2bd1d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3098a-2bd1d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?