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

后端 未结 2 1109
盖世英雄少女心
盖世英雄少女心 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:34

    in file /etc/php-fpm.d/www.conf

    change

    user: nginx

    group:nginx

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题