在 D:\wamp\www\z 中打开所需的“System.php"(include_path='.;C:\php\pear')失败 [英] Failed opening required 'System.php' (include_path='.;C:\php\pear') in D:\wamp\www\z
问题描述
我对 php 有点陌生.我下载了一个 wordpress 并安装在我的 wamp 中.但是遇到了下面的错误.
I am bit new in php. I Downloaded a wordpress and installed in my wamp. But the below error encountered.
Fatal error: require_once() [function.require]: Failed opening required 'System.php'
(include_path='.;C:\php\pear') in D:\wamp\www\fundwe\...
我的 Wamp 没有安装在 C 盘.相反,它在 D 盘中.请帮帮我
My Wamp is not installed in C drive. Instead it is in D Drive. Please please help me
推荐答案
在 WAMPServer 中,include_path
被注释掉了,所以你得到的是默认版本,这就是它指向 的原因include_path='.;C:\php\pear'
In WAMPServer, the include_path
is commented out, so you are getting the default version which is why it is pointing to include_path='.;C:\php\pear'
所以你可以尝试编辑 php.ini 文件,使用 wampserver 菜单来确保你编辑了正确的文件 (\wamp\bin\php\{phpVersion}\bin\phpForApache.ini)
So you could try editing the php.ini file, using the wampserver menus to make sure you edit the correct file (\wamp\bin\php\{phpVersion}\bin\phpForApache.ini)
wampmanager->PHP->php.ini
并添加一个适当的包含路径来代替已经注释掉的路径
And add a proper include path in place of the commented out one in there already
include_path=".;d:\wamp\bin\php\{yourPHPVersion}\pear"
虽然我有一个想法,这与 PEAR 完全没有关系.
Although I have an idea this is not related to PEAR at all.
您可能最好为 Wordpress 站点创建一个虚拟主机来运行,然后它可能会在主题文件夹中找到它要查找的文件.
You would probably be better of creating a Virtual Host for the Wordpress site to run in, then it will probably find the file its looking for in the theme folder.
这篇关于在 D:\wamp\www\z 中打开所需的“System.php"(include_path='.;C:\php\pear')失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!