13

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 input file specified." error I changed it back to the default php.ini and now it won't go away!

Any ideas on what might've happened?

hakre
  • 193,403
  • 52
  • 435
  • 836
Logan Best
  • 501
  • 3
  • 7
  • 21

2 Answers2

4

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

change

user: nginx

group:nginx

Brian
  • 96
  • 3
  • 1
    This fixed it for me! I had to edit `/etc/php5/fpm/pool.d/app.conf`. I have multiple pools so the user/group needed to be appuser/appuser. I had it set to appuser/www-data and that caused the problem. – e.thompsy Jul 23 '14 at 17:13
  • This fixed for me too. My case was that I was using vagrant and php 7 with FPM. So I had to edit /etc/php/7.0/fpm/pool.d/www.conf and changed the user and group to vagrant. – user1105491 Jul 30 '16 at 14:17
0

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

Fresco
  • 289
  • 3
  • 13