我在CentOS 7上使用FastCGI和suEXEC for PHP。我的包装器脚本如下所示:
#!/bin/sh PHPRC=/home/ben/etc/ export PHPRC export TMPDIR=/home/ben/tmp/ exec /usr/bin/php-cgi -c /home/ben/etc/php.ini
PHPRCvariables被设置,phpinfo显示它,但是不会使用自定义的php.ini。 Phpinfo只是说:
Configuration File (php.ini) Path /etc Loaded Configuration File (none)
有谁知道如何解决这一问题?