<div dir="ltr">Заметил в error.log следующую ошибку:<br><br>2008/08/21 16:49:12 [crit] 31836#0: *316 rename() "/var/tmp/nginx/fastcgi/3/04/0000000043" to "/var/www/phpMyAdmin/navigation.php" failed (13: Permission denied) while reading upstream, client: <a href="http://89.175.80.253">89.175.80.253</a>, server: <a href="http://mysql.domain.ru">mysql.domain.ru</a>, request: "GET /navigation.php?token=83f3ab3525f0dba8d3aba091e4004678 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php.sock:", host: "<a href="http://mysql.domain.ru">mysql.domain.ru</a>", referrer: "<a href="http://mysql.domain.ru/">http://mysql.domain.ru/</a>"<br>
<br>Если дать nginx права записи (chown -R www-data:www-data /var/www/phpMyAdmin/) то вот кусок того, что становится с файлом.<br><br>^_<8b>^H^@^@^@^@^@^@^Cì]yo^[G<96>ÿ_<9f>¢Ü<80>,id±IÊ:-r!KrÆ^X_#ËØd^M<83>i²<8b>bÛÍn¦^O^]<99>^M^P;<9b>Ì.<9c>M2A<80>^M^F<98>Ì:»ûç^B²'^;>¿^Bù<8d>ö½ª>É&Ù<94>HNËn^C¦º«^U¿zõê^]¿êcíÌæõ<8d><9d><8f>nl<91><9a>UWÉ<8d>[^W¯\Þ Â<9c>(þãü<86>(nîl<92>^O^?»sõ<br>
<br>До этого, на его месте был стройненький код пхпмайадмина.<br><br>/usr/local/nginx/sbin/nginx -V<br>nginx version: nginx/0.7.11<br>built by gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7)<br>configure arguments: --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --with-pcre=../pcre-7.7 --with-zlib=../zlib-1.2.3 --without-select_module --without-http_ssi_module --without-http_userid_module --without-http_auth_basic_module --without-http_geo_module --without-http_map_module --without-http_referer_module --without-http_memcached_module --without-http_empty_gif_module --without-http_browser_module --without-http_upstream_ip_hash_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module<br>
<br><br>Конфиг:<br><br>server {<br> listen 80;<br> server_name <a href="http://mysql.domain.ru">mysql.domain.ru</a>;<br> set $srv_root /var/www/phpMyAdmin;<br><br> root $srv_root;<br><br> location / {<br>
index index.html index.php;<br> }<br><br> location ~* \.php$ {<br> fastcgi_pass unix:/var/run/php.sock;<br> fastcgi_index index.php;<br> fastcgi_connect_timeout 30;<br> fastcgi_send_timeout 300;<br><br> fastcgi_read_timeout 300;<br>
fastcgi_buffer_size 32k;<br> fastcgi_buffers 4 32k;<br> fastcgi_busy_buffers_size 32k;<br> fastcgi_store on;<br> fastcgi_store_access user:rw group:rw all:r;<br><br> fastcgi_temp_file_write_size 32k;<br>
<br> fastcgi_intercept_errors on;<br><br> fastcgi_param DOCUMENT_ROOT $srv_root/;<br> fastcgi_param SCRIPT_FILENAME $srv_root$fastcgi_script_name;<br> fastcgi_param PATH_TRANSLATED $srv_root$fastcgi_script_name;<br>
fastcgi_param SCRIPT_NAME $fastcgi_script_name;<br> fastcgi_param QUERY_STRING $query_string;<br> fastcgi_param REDIRECT_STATUS 200;<br><br> fastcgi_param CONTENT_TYPE $content_type;<br> fastcgi_param CONTENT_LENGTH $content_length;<br>
<br> fastcgi_param SERVER_ADDR $server_addr;<br> fastcgi_param SERVER_PORT $server_port;<br> fastcgi_param SERVER_PROTOCOL $server_protocol;<br> fastcgi_param SERVER_SOFTWARE "nginx";<br> fastcgi_param GATEWAY_INTERFACE "CGI/1.1";<br>
fastcgi_param SERVER_NAME $server_name;<br> fastcgi_param REQUEST_URI $request_uri;<br> fastcgi_param REQUEST_METHOD $request_method;<br> fastcgi_param REMOTE_USER $remote_user;<br> fastcgi_param REMOTE_ADDR $remote_addr;<br>
fastcgi_param REMOTE_PORT $remote_port;<br> }<br><br> location ~* ^.+.(zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|wmv|avi|swf)$ {<br> root $srv_root/;<br> expires 30d;<br>
}<br>}<br><br></div>