Ok, finally I succeed to run php correctly, for this I was required to replace spawn fcgi with php-fpm. It look like nginx works better for php-fpm then for spawn-fcgi, at least config was easier. -- Posted via http://www.ruby-forum.com/.