Fastcgi + php prompts Noinputfilespecified. how can this problem be solved?

Source: Internet
Author: User
Fastcgi + php prompt Noinputfilespecified. how can I solve the problem that other php on the server can run,


Reply to discussion (solution)

The log should contain more information. it is estimated that the permission for the newly created file is incorrect, and the process cannot access the file.

Directory permission issues.

Have you used htaccess?

 
     RewriteEngine on   RewriteCond %{REQUEST_FILENAME} !-d   RewriteCond %{REQUEST_FILENAME} !-f   RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
 


Have you used htaccess?

 
     RewriteEngine on   RewriteCond %{REQUEST_FILENAME} !-d   RewriteCond %{REQUEST_FILENAME} !-f   RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
 


There is no such file, and I have tried it. even if there is such a file, there will be no 404. thinkphp has studied it some time ago. even if we see this code,
I use iis, so htaccess is invalid.

None of the above,
Only php files cannot be accessed. other files such as html, jpg, and gif can be viewed normally.

The log access path is the same as what you see. there is no htaccess, and the httpd. ini file

Find the solution


Open the php. ini file. you can see how you configured it.

In the php. ini file, modify:

1. add a row (this is the most important)

Fastcgi. impersonate = 1 // you can just remove this comment. The following two have been set.

2. modify the two items (Unlock the comments)

Cgi. fix_pathinfo = 1
Cgi. force_redirect = 0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.