php-fpm

CentOS 7 Apache use PHP-FPM

Install PHP-FPM with command yum install php-fpm Edit www.conf vi /etc/php-fpm.d/www.conf Find listen = 127.0.0.1:9000 Replace with listen = /var/run/php-fpm/default.sock Find ;listen.owner…

Enable Error Logging in php-fpm

Edit your pool file vi /etc/php/7.0/fpm/pool.d/www.conf Add catch_workers_output = yes php_flag[display_errors] = on php_admin_value[error_log] = /var/log/fpm-php.www.log php_admin_flag[log_errors] = on if you only…