Originally Posted by BTCentral - Ben
Both PHP-FPM and Nginx run under a user/group created by the script - funnily enough, called nginx.
If the webserver can not write to the directory (as barry suggested - and it sounds like that to me too) then simply do a:
chown -R nginx:nginx /home/nginx
Hopefully that should sort it out for you.
More updates coming soon, I worked on it a bit a few days back - but have not had the chance to test the changes. Will definitely spend some time on it over the weekend.
It still refuses, its something to do with WP3.0 and being more safer by allowing updates to happen by FTP/SFTP/FTPS i decided ill go with SFTP much easier.
I also did a benchmark of the Nginx setup using
ab -kc 1000 -n 10000 http://www.domain.info/test.php
Strangely I found many requests failed:
I tried static images too 'nginx-logo.png' and it had high failed requests too. I looked into the logs and found this error:
2010/09/24 10:36:33 [crit] 28301#0: *3180 open() "/home/nginx/domains/domain.info/public/nginx-logo.png" failed (24: Too many open files), client: 220.127.116.11, server: www.domain.info, request: "GET /nginx-logo.png HTTP/1.0", host: "www.domain.info"
I'm not sure what the problem is.