You have to config the nginx.conf for using php-fpm . Also the php-fpm.conf have to be configured . Adding a new config file for your website whatever you want .
Then /etc/init.d/nginx restart for restarting nginx and /etc/init.d/php5-fpm restart for restarting php-fpm .
If you have problems use google there are many tutorials about this .
Google "configure php5-fpm"; "How to config?" is too much generic, IMO, to receive an answer.
"How can I fine tune it for a 32mb vps?" require at least to know how to configure it.
Comments
There was a script and even a guide in LEB wiki, now it looks all messed up..
http://wiki.lowendbox.com/
EDIT:And then,how to do?Install nginx and php5-fpm done,and then i can use PHP with Nginx?Don't any set?
Sorry for bad English.
yes ub debian, but you have to fine tune the config files of fpm. Otherwise you will have memory issues
How to config?
You have to config the nginx.conf for using php-fpm . Also the php-fpm.conf have to be configured . Adding a new config file for your website whatever you want .
Then
/etc/init.d/nginx restart
for restarting nginx and/etc/init.d/php5-fpm restart
for restarting php-fpm .If you have problems use google there are many tutorials about this .
Google "configure php5-fpm"; "How to config?" is too much generic, IMO, to receive an answer.
"How can I fine tune it for a 32mb vps?" require at least to know how to configure it.
Here you go. Just don't install MariaDB.
And additional config
nano /etc/php5/fpm/pool.d/www.conf
service php5-fpm restart
http://32mb.org
Have a look at that site, maybe you can try minstall too
Also
Change the "number of worker" with the number of your vps cpu core.
Yeah as budi1413 said even Nginx workers has to be reduced. I think that would be 1 anyhow.
I would recommend you to use minstall, and auto-config it for minimal use but you can't host "big" php scripts like wordpress with 32mb ram.
take a look at this site: http://32mb.org/