pesky popular “No input file specified.” with nginx_php-fastcgi

后端 未结 2 1133
盖世英雄少女心
盖世英雄少女心 2021-01-11 13:04

I didn\'t have this problem earlier until I changed the include path on my php.ini in hopes of being able to upload to a dir outside the docroot. When I encountered the \"No

2条回答
  •  梦谈多话
    2021-01-11 13:50

    Edit nginx.conf

    http{
    ....
    server{
    ....
    location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  D:\WebRoot\www\$fastcgi_script_name;
            include        fastcgi_params;
        }
    }}
    

    replace D:\WebRoot\www\ with the root of your webserver

提交回复
热议问题