Discuz in Win2003 Environment unable to access .../include/common.inc.php in ... The ultimate solution to the problem _php skills

Source: Internet
Author: User
Tags parent directory php mysql phpmyadmin
Cloud-dwelling Community Note:
Theoretically the following method can be, but the premise is to ensure that your PHP configuration is not wrong, we recommend that the new version of PHP, with the DISCUZ program, relevant server-related software can be downloaded to the s.jb51.net.

These two days forum often reported error messages

Warning:require_once (./include/common.inc.php) [function.require-
Once]: failed to open stream:no such file or directory in
E:\host\aydsw\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:\host\aydsw\index.php on line 12

I checked on the Internet, should be the right to ask back, do not know whether the forum can be used.

Workaround One:

In fact, this question is needless to say so complicated. This problem is caused by directory permissions issues.
Everyone knows that the permissions set in the 2003 usually are confusing.
The solution to the image point expression is this:
For example: Your forum is placed in the Webroot BBS directory, if you only give the BBS directory Internet to
User (or your designated user) access rights, and the BBS's superior directory Webroot No
This problem occurs when an Internet guest user (or a user you specify) has access rights.
Just give Webroot this directory (that is, the parent directory of the Forum directory) with Internet guest privileges (or
You specify the user) problem can be solved!
The reason is: the official put all PHP files in the./include/, if changed to include/can be resolved,
But can not replace each one, the individual solution is to build a parent directory.

Workaround Two:

This is a server reload system.
Configuration of PHP MySQL is under win but visit DZ (Discuz) forum When the following error occurred:
Warning:require_once () [function.require-once]: Unable to access
./include/common.inc.php in E:\mysite\ceshi\index.php on line 12
Warning:require_once (./include/common.inc.php) [function.require-
Once]: failed to open stream:no such file or directory in
E:\mysite\ceshi\index.php on line 12
Fatal error:require_once () [function.require]: Failed opening required
'./include/common.inc.php ' (include_path= ' d:/php5/includes ') in
E:\mysite\ceshi\index.php on line 12
There is no problem with this site, the hint is that the file is not found

I finally solved it.
The problem is:
1, IIS6.0 has not enabled the parent path
2, permission issues to the Users permission (note on the machine directory must also have permissions, otherwise it appears this problem)

Other reference:

The forum is transferred to its own server, the server is Win2003+iis+php+mysql, but the Access forum always prompts the following information:

Warning:require_once () [function.require-once]: Unable to access./include/common.inc.php into E:\im286\index.php on line 12
Warning:require_once (./include/common.inc.php) [Function.require-once]: failed to open stream:no such file or directory In E:\im286\index.php on line 12

Fatal error:require_once () [function.require]: Failed opening required './include/common.inc.php ' (include_path= ' d:/ Php5/includes ') in E:\im286\index.php on line 12
Method One: On the internet also Google Baidu a bit of this problem is really a lot of change./include/for the include/problem, but rewrite loading is always unsuccessful, and the long time to find out that the problem is permission, to set the Veryone permissions, Everything's OK, and finally, let's remind you that IIS is enabling the parent path.

Method Two:
1, IIS6.0 has not enabled the parent path
2, permission issues to the Users permission (note on the machine directory must also have permissions, otherwise it appears this problem)

Method Three:
is 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:\im286\bbs, to the superior directory Everyone Read permission, access, hint:
No input file specified.

method Four:
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.

Method Five:
I this also appeared this kind of problem, just looked for half a day did not result, try to change (./include/common.inc.php), the result is successful, have the question may wish to try!
Modify common.inc.php all './For '/(just remove the middle point)

Method VI: The ultimate solution
Such a problem if the other program is normal, but only a few PHP system problems, here, for example, phpMyAdmin, such as the current directory is d:\werroot\phpmyadmin as long as the phpMyAdmin directory to create a directory web, You can then resolve the problem by locating the path as D:\werroot\phpmyadmin\web in IIS. This should be a problem with the program.

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.