PHP code error causes PHP to return page blank

Source: Internet
Author: User
Tags fpm blank page
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.