--- title: New nginx makes PHP website return blank page date: 2015-11-20 03:27:22.579101 UTC --- Recently, I upgraded Nginx in this server and after some days, I discovered that one of my PHP websites (for internal use) was not working! It just returned completely blank page (no text or HTML source), even with the script containing only `phpinfo()`. At first, I didn't know that it was caused by Nginx, or it is because of upgrading Nginx. I tried to look in to various log files, from _Nginx_'s to _php5-fpm_ but did not see anything. I configured PHP to always display error, still no help. Searching around, I found that someones in Internet also get this phenomenon, after upgrading Nginx. Some suggests to change Nginx's virtual host configuration (the files in _/etc/nginx/sites-available/_). So I understand that new Nginx may bring changes that old configuration file will not be compatible! But, then there is a question: How do I know how the configuration should be, to be working with upgraded Nginx? Well, I've just noticed that Nginx installation on Ubuntu comes with some sample in _snippets/_ folder: ``` tree /etc/nginx/snippets/ /etc/nginx/snippets/ ├── fastcgi-php.conf └── snakeoil.conf 0 directories, 2 files ``` The _fastcgi-php.conf_ file is the one we use for setup of Nginx + PHP-FPM. These files are updated with Nginx and every time we have new Nginx, we should look into it to know how new configuration should be.