<p>acabei de transferir minha instalação do joomla para o digitalocean e estou executando o nginx. o site parece estar funcionando bem, mas quando entro na parte do administrador e tento atualizar algo na configuração global, recebo o seguinte erro:</p><pre><code>2014/06/26 10:08:38 [error] 19654#0: *1035 fastcgi sent in stderr: "php message: php warning: file\_put\_contents(/usr/share/nginx/projects/hoopsforu/configuration.php): failed to open stream : permission denied in /usr/share/nginx/projects/hoopsforu/libraries/joomla/filesystem/file.php on line 426" while reading response header from upstream, client: 70.208.86.53, server: hoopsf oru.com, request: "post /administrator/index.php?option=com\_config http/1.1", upstream: "fastcg i://127.0.0.1:9000", host: "hoopsforu.com", referrer: "http://hoopsforu.com/administrator/index .php?option=com\_config" 2014/06/26 10:08:38 [error] 19654#0: *1035 upstream sent invalid status "0 could not write to t he configuration file" while reading response header from upstream, client: 70.208.86.53, serve r: hoopsforu.com, request: "post /administrator/index.php?option=com\_config http/1.1", upstream : "fastcgi://127.0.0.1:9000", host: "hoopsforu.com", referrer: "http://hoopsforu.com/administra tor/index.php?option=com\_config" </code></pre><p>é assim que minha configuração se parece:</p><pre><code>server { listen 80; server\_name hoopsforu.com www.hoopsforu.com; server\_name\_in\_redirect off; root /usr/share/nginx/projects/hoopsforu; index index.php index.html index.htm default.html default.htm; # support clean (aka search engine friendly) urls location / { try\_files $uri $uri/ /index.php?$args; } # deny running scripts inside writable directories location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ { return 403; error\_page 403 /403\_error.html; } location ~ \.php$ { fastcgi\_pass 127.0.0.1:9000; fastcgi\_index index.php; include fastcgi\_params; fastcgi\_param script\_filename $document\_root$fastcgi\_script\_name; include /etc/nginx/fastcgi.conf; } # caching of files location ~* \.(ico|pdf|flv)$ { expires 1y; } location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ { expires 14d; } } </code></pre>
nginx 502 no administrador
<p>verifique se suas permissões estão definidas para 644 e 755 para arquivos e pastas, respectivamente. mais informações sobre permissões podem ser encontradas aqui: <a href="https://joomla.stackexchange.com/a/133/19">https://joomla.stackexchange.com/a/133/19</a> </p><p>verifique também se o usuário ou grupo está definido como nginx, para que o nginx tenha permissão para gravar nesses arquivos/diretórios.</p>