打开失败需要“系统.php”(include_path=“;C:phppear') in D:wam


Failed opening required 'System.php' (include_path='.;C:phppear') in D:wampwwwz

我对php有点陌生。我下载了一个wordpress并安装在我的wamp中。但是遇到了以下错误。

Fatal error: require_once() [function.require]: Failed opening required 'System.php'
(include_path='.;C:'php'pear') in D:'wamp'www'fundwe'...

我的Wamp没有安装在C盘中。相反,它在D驱动器中。请帮助我

在WAMPServer中,include_path被注释掉,因此您获得的是默认版本,这就是为什么它指向include_path='.;C:'php'pear'

因此,您可以尝试编辑 php.ini 文件,使用 wampserver 菜单来确保编辑正确的文件('wamp'bin'php'{phpVersion}'bin'phpForApache.ini)

wampmanager->PHP->php.ini

并添加一个适当的包含路径来代替已经注释掉的包含路径

include_path=".;d:'wamp'bin'php'{yourPHPVersion}'pear"

虽然我有一个想法,但这与梨完全无关。

您可能最好为Wordpress站点创建一个虚拟主机以运行,然后它可能会在主题文件夹中找到它要查找的文件。