当我安装wordpress插件,我经常得到错误
Warning: include_once() [function.include]: Failed opening '/usr/share/wordpress/wp-content/plugins/twitter-for-wordpress/' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/wordpress/wp-settings.php on line 473
我安装了梨,但Ubuntu显然没有把它放在预期的地方。 必须有一个别名,可以解决这个问题,有谁知道它是什么?
谢谢。
这很可能是一个权限问题,与Pear和includepath无关 – 因为错误消息显示include_once使用绝对path,不需要使用PHP include_path设置。
我build议你检查一下/ usr / share / wordpress / wp-content / plugins / twitter-for-wordpress /是否有权限允许web服务器读取它。 这通常应该是755( ls -l rwxr-xr-x)。
如果你使用PHP 5,你可以试试/ usr / local / php5 / lib / php / PEAR。