When IIS runs PHP, no input file specified.

Source: Internet
Author: User

In the evening to help friends look at the problem of IIS, conveniently recorded.

Site Directory is e:\mysite\www.**.com, is the DISCUZ program, hint:

Warning:require_once (./include/common.inc.php) [Function.require-once]: failed to open stream:no such file or directory In e:\mysite\www.**.com\index.php on line 12

Fatal error:require_once () [function.require]: Failed opening required './include/common.inc.php ' (include_path= '.; C:\php5\pear ') in e:\mysite\www.**.com\index.php on line 12

Seems to be a permission problem, in the superior directory plus everyone read permission, only for the superior directory, but very long, can't wait, stop. Changed the directory for e:\myphp\www.**.com, to the superior directory Everyone Read permission, access, hint:

No input file specified.

Search, 1 kinds of said is to php.ini in the Doc_root = "comment out, I read the next itself is commented out, not this problem." The 2nd is the problem of the application pool. IIS has created a new application pool for this site. Refresh, the site can be accessed. Try again, is not related to the superior directory permissions, the superior directory Everyone Read permission to remove, and then refresh, and prompted and above the same error, to determine the relevant, and then add, solve the problem.

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.