Parsing process:
Nginx passes the PHP page file to the PHP-FPM manager via the FastCGI interface
PHP-FPM Call the PHP environment after parsing and return response data to Nginx
User Rendered page
Problem phenomenon:
PHP test page Test No problem, the PHP and Nginx configuration is not a problem.
When parsing the PHP page used for development, a blank page is returned, which indicates that there are errors in the PHP code that was developed.
Processing method:
1, use the local PHP environment to run the PHP page directly test whether the code is wrong.
2, because the PHP parsing does not return the error message to the front page to do the prompt, so we need to open the PHP display error message function.
# vi /etc/opt/remi/php72/php.ini
3, because PHP is through the PHP-FPM Manager to connect the Nginx, so we also want to turn on the PHP-FPM to pass the error message function. Write the following configuration on the last line.
# vi /etc/opt/remi/php72/php-fpm.d/www.conf
4. Restart PHP-FPM
# killall php-fpm# php-fpm
5. Access Test
PHP code error causes PHP to return page blank