没有需要的系统。php”(include_path = '。C:\ php \梨”)在D:\ wamp \ www \ z

时间:2022-06-09 19:21:29

I am bit new in php. I Downloaded a wordpress and installed in my wamp. But the below error encountered.

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

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

My Wamp is not installed in C drive. Instead it is in D Drive. Please please help me

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

1 个解决方案

#1


3  

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'

在WAMPServer中,include_path被注释掉了,所以您得到了默认的版本,这就是为什么它指向include_path='.;

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)

你可以尝试编辑php。ini文件,使用wampserver菜单确保您编辑了正确的文件(\wamp\bin\ 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"

Although I have an idea this is not related to PEAR at all.

虽然我有一个想法,这和梨没有关系。

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.

您可能会更好地为Wordpress站点创建一个虚拟主机,然后它可能会在主题文件夹中找到它所寻找的文件。

#1


3  

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'

在WAMPServer中,include_path被注释掉了,所以您得到了默认的版本,这就是为什么它指向include_path='.;

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)

你可以尝试编辑php。ini文件,使用wampserver菜单确保您编辑了正确的文件(\wamp\bin\ 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"

Although I have an idea this is not related to PEAR at all.

虽然我有一个想法,这和梨没有关系。

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.

您可能会更好地为Wordpress站点创建一个虚拟主机,然后它可能会在主题文件夹中找到它所寻找的文件。