nginx - codeigniter gives white screen -
i creating web app using nginx , codeigniter, when install codeigniter project give white screen
checks
1) nginx installed because shows default page says "welcome", 2) phpfpm installed because file shows phpinfo(); worked perfectly,
but when have installed codeigniter project shows blank screen or white screen.
nginx default
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /srv/www/vishalnlabz.com/public_html; index index.php index.html index.htm; server_name 104.131.57.74; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { #fastcgi_split_path_info ^(.+\.php)(/.+)$; include /etc/nginx/fastcgi_params; #fastcgi_pass 127.0.0.1:9000; if ($uri !~ "^/images/") { fastcgi_pass unix:/var/run/php5-fpm.sock; } fastcgi_index index.php; fastcgi_param script_filename /srv/www/vishalnlabz.com/public_html$fastcgi_script_name; } location ~ /\.ht { deny all; } }
try turning on notices , errors in code:
error_reporting(e_all); ini_set('display_errors', true); ini_set('display_startup_errors', true);
Comments
Post a Comment