Solve the failed opening required problem in PHP

Source: Internet
Author: User
Tags iis parent directory php and php and mysql require root directory

Environment: WIN2003+IIS6+PHP5

This machine, 2003 under IIS6, Configuration Php5,mysql, phpMyAdmin.

Now PHP and MySQL can be normal operation, Phpwind forum can also be normal operation.

After configuring several parameters for Ecshop (that is, the username, password, etc.), run Ecshop in the browser,

Returns the following prompt:

Warning:require (.. /includes/init.php) [function.require]: failed to open stream:no such file or directory into c:appservwwwindex.php on line 22

Fatal Error:require () [function.require]: Failed opening required '. /includes/init.php ' (include_path= '.; C:php5pear ') in c:appservwwwindex.php on line 22

The original reason is this: PHP program to the server, can only run in the directory, can not run in the root directory of the site, or directory permissions issues. /www.phpky.cn

The workaround is as follows

Look, D disk permissions for the administrator, the following directory for the Web site Directory Web, permissions for the administrator, and then the Web directory is the directory of various sites, such as the Ecshop directory, The usual method is to Ecshop directory permissions for the administrator, and then build the data directory and the Web directory, the permissions of the two directories is Administrator+web_ecshop (IIS running account), so the problem comes, The root directory of the PHP program will appear a variety of problems, that is not normal operation, this should be directory permissions to inherit the problem.

The correct permission setting is Ecshop directory permissions for Administrator+web_ecshop (IIS running account), the following two directory permissions are inherited, that is, the site root directory permissions to the parent directory and the same as the site root permissions This is a good thing.

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.