관련 링크
php측
PHP 설치 폴더 |
---|
php-cgi.exe -b 127.0.0.1:9123 |
포트는 (9123) 임의 설정 |
nginx 측
nginx 설치폴더/conf/nginx.conf |
---|
http { # # .. 원래 있던 여러 항목들 .. # server { # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { fastcgi_pass 127.0.0.1:9123; fastcgi_index index.php; # SCRIPT_FILENAME 이 잘못되어 있으면 오류남 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # # .. 그외 원래 있던 것들 .. } } |
no input file specified.
위의 에러가 뜰때는,
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
파일을 못찾아서 나는 에러니,
fastcgi_param 부분에서 $document_root 로 시작하는지 확인합니다.