Run PHP presence no input file specified error resolution

Source: Internet
Author: User

Today, a new server is configured, using IIS + Fastcgi + PHP 5.3.X, the default Web site to run is normal, but a new virtual host or Web site to access the PHP page when the error "No input file specified". According to the various solutions on the Internet, such as blocking doc_root, adding permissions to directories, modifying buffer pools and so on are not valid.

Later found a solution to the document, looking for a test really works, the method is as follows:

Open the php.ini file, this you see how you configure the.

In the php.ini file, modify:

1. Add a line (the most important)

Fastcgi.impersonate = 1

2. Modify two items (to undo the comment)

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.