power_settings_new

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
...