Home  >  Article  >  Backend Development  >  Solution to "include_path=.;c:/php5/pear" prompt when installing PHP program_PHP Tutorial

Solution to "include_path=.;c:/php5/pear" prompt when installing PHP program_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:57:201249browse

This problem occurs because your include path is wrong. If it is cms, your system environment may not be configured properly. Let me introduce two solutions to this problem.

The following is an error report from Discuz.

Fatal error: require_once() [function.require]: Failed opening required './source/class/class_core.php' (include_path='.;c:php5pear') in D:webBBSindex.php on line 14

Solution

Modify the php.ini configuration file.

The code is as follows
 代码如下 复制代码

; Windows: "path1;path2"
;include_path = ".;c:phpincludes"
改为:
; Windows: "path1;path2"
include_path = "c:phpincludes"

Copy code

; Windows: "path1;path2"
;include_path = ".;c:phpincludes"
Change to:
; Windows: "path1;path2"
include_path = "c:phpincludes"

If you are using iis, there may be a problem with permission configuration. We can try the following methods to solve it

For the convenience of writing, let me first talk about my directory structure

1. D:FreeHost is the root directory of the website, under which the DZ forum, wordpress blog and Dream Weaver portal are placed;

2. Take the dz forum as an example, D:FreeHostwebdz2013_JD3QC6, this is the root directory of the dz program, and the dz program is placed in it.

A. My website was initially set up like this. Administrators and system have full control over FreeHos, the root directory of the website.

B. The setting permissions of the webdz2013_JD3QC6 program root directory are: administrators complete, system complete, iis guest account IUSR_dzusr read and run, list file directories and read, network service complete control permissions and are not inherited from the parent directory.

As a result, the above error occurred in the last step of the forum.

The solution is as follows
A. Add the read permission of the iis guest account IUSR_dzusr to the website root directory FreeHos "only this folder"

http://www.bkjia.com/PHPjc/632092.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/632092.html
TechArticle
This problem occurs because your include path is wrong. If it is cms, your system environment may not be configured properly. , let me introduce two solutions to this problem. The following is a report from Discuz...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn