wgpubs wrote:
Thanks for the quick reply.
Ran
Code:
ps axl | grep fpm
The result was (which I'm not sure how to interpret) ...
Code:
0 1000 3574 3535 20 0 4392 840 - S+ pts/0 0:00 grep --color=auto fpm
ps lists processes. Grep searches text. 'ps axl | grep fpm' finds all processes with fpm in their name. The only process it found was itself. This means php-fpm isn't running.
wgpubs wrote:
I'm running on Ubuntu 12.10. While I understand the general workflow you gave, I'm not sure about how to do implement them specifically:
1. How do I uninstall PHP FastCGI? (will this break all of the current Wordpress sites I'm running for example?)
2. Installing PHP-FPM? I assume I have it already installed, else I need to do a
apt-get php-fpm?
3. How do I configure PHP-FPM? I have no idea what files I need to touch and what needs to change in order to get it running and used in Nginx.
4. How do I start PHP-FPM? I'm assuming something like
service php-fpm start?
5. Lastly, what do I need to do in my nginx.conf and individual virtual host files to ensure my WP sites are using PHP-FPM?
Sorry for the need to detail but I'm rather green in the world of PHP as you can tell. Need it baby stepped as much as possible

Firstly php-fpm is better than spawn-fcgi that the linode tutorials tell people to use, but not significantly. Are you really sure it's worth changing?
1. Find the part of the tutorial that told you how to install FastCGI and do the reverse. What tutorial was it? I really don't like the way those tutorials tell people to put unpackaged files all over their filesystems.
2. Yes, 'apt-get php-fpm'. '/etc/init.d/php-fpm status' will tell you if it's running, use '/etc/init.d/php-fpm start' to start and '/etc/init.d/php-fpm stop' to stop.
3. The condig is under /etc/php5/fpm/. You can edit these files in any editor you like but the chances are you don't need to change anything.
4. The 'service' command is a redhat thing, not ubuntu. You can run the commands in answer 2.
5. As long as php-fpm is listening on the right port/socket that's all. There should be a fastcgi_pass line in your nginx config ( /etc/nginx/sites-avalible/<sitename> ) that will tell you where it is sending fastcgi requests. This should match the listening port set on the 'listen = <whatever>' line in /etc/php5/fpm/pool.d/www.conf. At most you will have to change the listen line in www.conf and restart php-fpm. In my nginx config I have fastcgi_pass 'unix:/tmp/phpfpm.sock;' and in /etc/php5/fpm/pool.d/www.conf I have 'listen = /tmp/phpfpm.sock'. You don't need the 'unix:' prefix in www.conf.
I hope this makes some sense!
You may want to install APC as well, It speeds php up a lot. Maybe get the above working first before thinking about it.