I am setting up a VPS and followed the nginx, PHP, MySQL instructions for WordPress from this tutorial http://tutspundit.com/howto-install-nginx-php-fpm-mysql-php533-wordpress-ubuntu-part-1/ and then http://tutspundit.com/how-to-install-nginx-php-fpm-mysql-php533-wordpress-part-2/
The problem is the php file returns the php code itself in the browser without parsing it. So what did I miss?
Update: Staring php-fpm
or nginx
works fine. I think nginx
isn't aware of php-fpm
at all, some link is missing perhaps? I checked nginx error logs but there is nothing related to PHP. I can't seem to figure out what is missing.