Welcome! Log In Create A New Profile

Advanced

the upgrade is driving me crazy (blank pages)

Posted by hdagelic 
the upgrade is driving me crazy (blank pages)
April 30, 2011 07:21AM
Hello!

I'm trying to upgrade Nginx from 0.7.67-3 to 0.9 or 1.0 for a month now but I can't. After I upgrade I only get blank pages on every site that is chrooted. Then I downgrade and everything is working.

I'm running a chrooted php-fpm configuration.

I just can't figure out what's wrong, logs give me no information. I gues that it's something to do with script_file_name, but it looks ok. Please help me if you have the idea what could cause this wierd problem...


Большое спасибо,

Hrvoje




Nginx confiuration for one site (php chrooted to /srv/www, the files in /srv/www/putovanja.net):

[CODE]
## Iz templatea za sajtove na "glavnom" serveru, php chrootan na /srv/www

server {
listen 213.239.210.57:80;
server_name www.putovanja.net putovanja.net;
access_log /var/log/nginx/putovanja.net.access.log;

root /srv/www/putovanja.net;
index index.htm index.html index.php;

location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /putovanja.net$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
#fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 480;
fastcgi_buffer_size 32k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}

## etc...

}

[/CODE]




Here is the fastcgi_params file::

fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;





PHP-FPM config for the same site:

[CODE]

listen = 127.0.0.1:9000
user = www-data
group = www-data

pm = dynamic
pm.max_children = 35
pm.min_spare_servers = 3
pm.max_spare_servers = 8
pm.max_requests = 0

chroot = /srv/www

[/CODE]



Edited 2 time(s). Last edit at 04/30/2011 07:29AM by hdagelic.
Re: the upgrade is driving me crazy (blank pages)
April 30, 2011 07:41AM
Now I tried to include fastcgi_params before other lines, and installed fastcgi_params from the 1.0 package - no help.
Re: the upgrade is driving me crazy (blank pages)
April 30, 2011 07:46AM
No, sorry that was it!!

The fastcgi_params file was included after script_filename line, what the older version supported and the new one does not.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready