Nginx returning blank HTML pages with php-fpm

Solution 1:

My php section looks like this:

        location ~ \.php$ {
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_pass unix:/dev/shm/php-fastcgi.socket;
    }

My listen directive in php-fpm.conf this:

listen = /dev/shm/php-fastcgi.socket

Could you also provide your php-fpm.conf? If the error still exists, please enable logging in fpm and provide fpm logs:

php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on

Solution 2:

I had similar issue - blank pages without warning - short_open_tag = On solved the problem. Check php.ini short_open_tag is it ON or OFF? If you use shortcuts like <?=$test?> or if you open tags with just <? it should be set to ON.