Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx 1.21 > 1.6 White page with php5-fpm

$
0
0
Hi all,
i have problem with Nginx and PHP5-fpm, if i configure Nginx 1.2.1 everything is fine, but if i upgrade to 1.6 i have only blank page. Cany anyone say why?



Socket is created fine.
Html pages working

My confing files:/etc/nginx/conf.d/web.conf

server {

listen 192.168.99.127:8080;
server_name sub.localhost;


root /home/clients_ssl/sub/www;
index index.php index.html index.htm;

location ~ \.php$ {

fastcgi_pass unix:/etc/php5/fpm/socks/ssl_sub.sock;
include fastcgi_params;
fastcgi_param HTTPS on;

}

location ~ /\. {
deny all;
}

access_log /home/clients_ssl/sub/logs/access.log;
error_log /home/clients_ssl/sub/logs/error.log;
error_page 404 /404.html;

}



-----------------------------------------------------------------------------------------------------------------------------------

/etc/nginx/nginx.conf



user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
}



--------------------------------------------------------------------------------------------------------------------------

/etc/php5/fpm/pool.d/web.conf


[ssl_sub]

listen = /etc/php5/fpm/socks/ssl_sub.sock
user = nginx
group = nginx
pm = dynamic
pm.max_children = 50
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 5
pm.max_requests = 0
php_admin_value[open_basedir]=/
php_admin_value[session.save_path]=/home/clients_ssl/sub/tmp
php_admin_value[upload_tmp_dir]=/home/clients_ssl/sub/tmp
php_admin_value[disable_functions]=dl

listen.owner = nginx
listen.group = nginx
listen.mode = 0660

((( if i change lister.owner/group and user/group to other system user for example USER0 i have error 502 bad gateway, where is problem? ))))
----------------------------------------------------------------------------------------------------------------------

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>