Failed opening required 'System.php' (include_path='.;C:\php\pear') in D:\wamp\www\z

 ̄綄美尐妖づ 提交于 2019-12-08 05:16:09

问题


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\...

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


回答1:


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'

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"

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.



来源:https://stackoverflow.com/questions/27023454/failed-opening-required-system-php-include-path-c-php-pear-in-d-wamp-w

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!