This site Note:
Theoretically the following method can be, but the premise is to ensure that your PHP configuration is not error, we recommend that you use the new version of PHP, with the DISCUZ program, related server related software can be downloaded to s.jb51.net.
These two days the 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 authority to ask back, do not know whether the forum can be used.
Workaround One:
In fact, the problem is not so complicated. This problem is caused by a directory permission problem.
It is common knowledge that the permissions settings usually in 2003 are confusing.
The solution to the image point expression is this:
For example: Your forum is placed in the Webroot BBS directory, if you just give the BBS directory to the Internet to
User (or the user you specify), and the parent directory of BBS Webroot No
This problem occurs when the Internet Guest user (or the user you specify) has access rights.
Just give Webroot this directory (which is the parent directory of the Forum directory) with Internet guest permissions (or
You specify the user) problem can be solved!
The reason is: the official to all PHP files in the./include/, if changed to include/can be resolved,
But always can not replace it, the personal solution, is to build a parent directory.
Workaround Two:
This is a server reload system.
Configured PHP MySQL is win but access to the 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
This site does not have any problems, the hint is that the file is not found
It worked out for a while.
The problem is:
1. IIS6.0 has no parent path enabled
2, permissions issues to the Users permissions (note on the machine directory must also have permissions, or this problem occurs)
Other references:
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 in 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: Google Baidu on the internet has a bit of this problem is really a lot of changes./include/for include/problem resolution, but rewrite loading is always unsuccessful, daoteng a half-day only to find that the original is a permission problem, to set the Veryone permissions, Everything will be OK, and finally remind you that IIS is going to enable the parent path.
Method Two:
1. IIS6.0 has no parent path enabled
2, permissions issues to the Users permissions (note on the machine directory must also have permissions, or this problem occurs)
Method Three:
Is the permissions issue, in the parent directory plus the Everyone Read permission, only for the parent directory, but very long, can't wait, stop. Change a directory for E:\im286\bbs, to the upper directory Everyone Read permissions, access, prompt:
No input file specified.
Method Four:
Search, 1 kinds of said php.ini in the Doc_root = "commented out, I see the next itself is commented out, not the problem." The 2nd is to say the problem of 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 higher directory permissions, the upper directory Everyone Read permission to remove, and then refresh, and hints and the above error, OK with this, and then add, problem solving.
Method Five:
I also have this problem, just looking for a long, no results, try to change (./include/common.inc.php), the results are successful, there are problems to try!
Modify the common.inc.php "./for"/(just remove the middle point)
Method Six: The Ultimate solution
Such a problem if other programs are normal, but only a few PHP system problems, here phpMyAdmin for example, such as the current directory is d:\werroot\phpmyadmin as long as the phpMyAdmin directory will be created in a directory web, You can then fix the problem by locating the path in IIS as D:\werroot\phpmyadmin\web. This should be a problem in the program.
The above describes the Discuz in the WIN2003 environment unable to access/include/commonincphp in the problem of the ultimate solution, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.