nginx php No input file specified.

0 투표

nginx 웹서버에 php 올려서 테스트하는데,

No input file specified.

오류가 발생합니다.

nginx.conf :

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

        #

        location ~ \.php$ {

            root           html;

            fastcgi_pass   127.0.0.1:9991;

            fastcgi_index  index.php;

            fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;

            include        fastcgi_params;

        }

cmd:

C:\nginx-1.15.0\php-7.2.6>php-cgi.exe -b 127.0.0.1:9991

cmd:

C:\nginx-1.15.0>nginx.exe

1 답변

0 투표

nginx.conf :

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

        #

        location ~ \.php$ {

            root           html;

            fastcgi_pass   127.0.0.1:9991;

            fastcgi_index  index.php;

            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

            include        fastcgi_params;

        }

위와 같이 /scripts 를 $document_root 변경해 보세요.

구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
add
...