nano /etc/nginx/nginx.conf
worker_processes 1; # Number of cores
server_tokens off; # Disable show version
nano /etc/php5/fpm/pool.d/www.conf
pm = static
pm.max_children = 10 # Max num of processes (Virtual Memory / Memory of One Process)
nano /etc/php5/fpm/php.ini
session.gc_maxlifetime = 259200
nano /etc/php5/fpm/pool.d/www.conf
env[PATH] = /usr/local/bin:/usr/bin:/bin
Исправляем уязвимость http://habrahabr.ru/post/100961/
nano /etc/php5/fpm/php.ini
cgi.fix_pathinfo=0