2014-12-02 3 views
0

내가 nginx를 이그나이터를 사용하여 웹 응용 프로그램을 만드는 오전를 제공하지만, CodeIgniter의 프로젝트를 설치할 때 흰색 화면을의 nginx - CodeIgniter는 흰색 화면

확인을 제공

1)의 nginx가 설치되어

가 기본 페이지를 보여주기 때문에 "Welcome", 2) phpinfo()를 보여주는 파일 때문에 phpfpm이 설치되었습니다. 완벽

을했다하지만 난이 CodeIgniter의 프로젝트를 설치 한 때 빈 화면 또는 백색 화면을 보여줍니다.

의 nginx 기본

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; 
    } 
} 

답변

1

코드에서과 에러 켜보십시오 :

error_reporting(E_ALL); 
ini_set('display_errors', TRUE); 
ini_set('display_startup_errors', TRUE);