I'm using FastCGI with suEXEC for PHP on CentOS 7. My wrapper script looks as follows:
#!/bin/sh
PHPRC=/home/ben/etc/
export PHPRC
export TMPDIR=/home/ben/tmp/
exec /usr/bin/php-cgi -c /home/ben/etc/php.ini
The PHPRC variable is set and phpinfo shows it but the custom php.ini will not be used. Phpinfo just says:
Configuration File (php.ini) Path /etc
Loaded Configuration File (none)
Does anyone know how to fix this?