安装PHP程序提示“include_path='.;c:php5pear'”错误的解决方法

安装PHP程序(比如Discuz、wordpress等等)提示“include_path='.;c:php5pear'”错误,以下是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

解决方法:

1.可能由于你没有传完整php程序,或者php程序中的某个文件损坏,可能会报这个错误。去官网重新下载文件,是虚拟空间的请用官网支持的FTP工具上传php程序。

2.文件权限问题,可能文件或者文件夹权限设置错误引起的。

3.文件夹名含有中文,有时候中文文件夹名也可能引起这个错误,建议改成英文的。

4.修改php程序,这个方法我不推荐(因为有的php程序可能需要改很多很多)

5.修改php.ini配置文件。

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

 

原文地址:https://www.cnblogs.com/frankchia/p/9880653.html