2010/6/13 netroby <netroby@netroby.com>:
Hello
> after i try to configure the fastcgi -cache to speed up my wordpress,
> the request often drop down to freeze.
you need to be more precise
>
> anybody have the same trouble ?
don't know, depends on the problem you didn't describe precisely.
>
> My VPS have 384M RAM memory,
>
> I configured 1 nginx worker , 5 php-fpm worker.
>
> following was my wordpress.conf
If you want us to help you, we need to know more. Your FPM conf file,
your FPM version, your nginx version, your system type and error logs
(nginx and fpm).
Do you have the same troubles without cache ?
++ Jerome
>
> location = /
> {
> fastcgi_cache_key $host$request_uri;
> fastcgi_cache_valid 200 302 10m;
> fastcgi_cache_valid 301 30m;
> fastcgi_cache_valid any 5m;
> fastcgi_cache_use_stale off;
> fastcgi_cache one;
> fastcgi_cache_min_uses 1;
> fastcgi_cache_use_stale error timeout invalid_header
> http_500;
> fastcgi_ignore_headers Cache-Control Expires;
> fastcgi_pass 127.0.0.1:9000;
> # fastcgi_pass unix:/tmp/php-cgi.sock;
> fastcgi_index index.php;
> include /etc/nginx/fastcgi_params;
>
> }
> location /
> {
> index index.html index.php;
> if (-f $request_filename/index.html)
> {
> rewrite (.*) $1/index.html break;
> }
> if (-f $request_filename/index.php)
> {
> rewrite (.*) $1/index.php;
> }
> if (!-f $request_filename)
> {
> rewrite (.*) /index.php;
> }
> }
> location ~ ^/index\.php.*$
> {
> fastcgi_cache_key $host$request_uri;
> fastcgi_cache_valid 200 302 10m;
> fastcgi_cache_valid 301 30m;
> fastcgi_cache_valid any 5m;
> fastcgi_cache_use_stale off;
> fastcgi_cache one;
> fastcgi_cache_min_uses 1;
> fastcgi_cache_use_stale error timeout invalid_header
> http_500;
> fastcgi_ignore_headers Cache-Control Expires;
> fastcgi_pass 127.0.0.1:9000;
> # fastcgi_pass unix:/tmp/php-cgi.sock;
> fastcgi_index index.php;
> include /etc/nginx/fastcgi_params;
>
> }
>
> include /etc/nginx/php.conf;
>