Archive for June, 2008

Nginx, PHP5, Memcached, FastCGI

Thursday, June 26th, 2008

Запускаем memcached: memcached -s /tmp/memcached.sock -a 0655 -u apache -m 32 -vvv Настраиваем nginx: server { listen 0.0.0.0:80; server_name www.domain.ru; location / { root /home/www; expires 43200s; index index.php index.html index.htm; } location ~ .php$ { include fastcgi_php5_mc; fastcgi_param SCRIPT_FILENAME /home/www$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT /home/www/; #Постит в кеш не надо if ($request_method = POST ) { fastcgi_pass unix:/tmp/php5.socket; break; } set ...