安装PHP程序(比如Discuz、wordpress等等)提示“include_path='.;c:\php5\pear'”错误,以下是Discuz的一个报错。

Fatal error: require_once() [function.require]: Failed opening required './source/class/class_core.php' (include_path='.;c:\php5\pear') in D:\web\BBS\index.php on line 14

 

解决方法:

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

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

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

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

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

 

; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes" 
改为:
; Windows: "\path1;\path2"
include_path = "c:\php\includes"

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2021-12-06
  • 2021-07-10
  • 2022-01-30
  • 2022-12-23
  • 2021-08-23
猜你喜欢
  • 2021-12-17
  • 2021-11-07
  • 2021-06-07
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案