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?

3
  • would like to see this problem solved without calling back to apache Commented Sep 25, 2011 at 21:01
  • I bet you were using Godaddy's hosting Commented Nov 29, 2012 at 15:56
  • Ha nope. This was actually on an EC2 instance Commented Jan 10, 2013 at 5:26

2 Answers 2

4

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

change

user: nginx

group:nginx

Sign up to request clarification or add additional context in comments.

2 Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.