See if your files are starting with < ? .
If so, and you want to keep them like that, you will need to edit /etc/php5/fpm/php.ini and set short_open_tag from Off to On and restart php-fpm.
sudo nano /etc/php5/fpm/php.ini
Search for short_open_tag and set it to On.
Restart php-fpm
sudo service php5-fpm restart
manpreet
Best Answer
2 years ago
Requests to php files just return the code as plain text. Headers do mention PHP, so I presume nginx is talking to PHP properly ..
I've looked over it all too many times now, I feel I must be staring right at the problem. Can anyone help?