Nginx + php5-fpm doesn't show php errors but cli shows errors

php files do not show any errors on the page, just specifying a blank page. The nginx error log is also empty, so its some fatal error with nginx. there are errors in the fpm conf file:

php_flag[display_errors] = on
php_admin_value[error_reporting] = E_ALL
php_admin_value[error_log] = /var/log/php5-fpm.log
catch_workers_output = yes

      

php.ini also has: error_reporting = E_ALL

.
nginx also included error logging. cli on ssh shows some errors with the same file:

Note: Undefined index: country in /var/www/includes/classes/class.php on PHP line 64 Warning: include (/var/www/includes/lang/.php): Could not open stream: No such file or directory in /var/www/includes/classes/class.php on line 66

php file also has:

error_reporting(E_ALL);
ini_set('display_errors', 'on');

      

I searched everywhere, tried everything, errors just don't show.

+3


source to share


1 answer


It turns out that another php was added on the server with apt-get. I just needed to run apt-get remove php5 and use php.ini from a package that I manually compiled. Make sure to restart php5-fpm after making any changes to the php.ini file.



+1


source







All Articles