OpenBSD 4.7 MediaWiki SphinxSearch 部署
常见错误:
[Thu Sep 9 17:12:27 2010] [error] PHP Warning: require_once(/var/www/mediawiki/extensions/SphinxSearch/SphinxSearch.php) [
function.require-once]: failed to open stream: No such file or directory in /mediawiki/LocalSettings.php on line 146
[Thu Sep 9 17:12:27 2010] [error] PHP Fatal error: require_once() [
function.require]: Failed opening required '/var/www/mediawiki/extensions/SphinxSearch/SphinxSearch.php' (include_path='/mediawiki:/mediawiki/includes:/mediawiki/languages:.:/pear/lib:/var/www/pear/lib') in /mediawiki/LocalSettings.php on line 146
这个与include_path变量的设置有关,保存include/require的目录没有保存在服务器php.ini配置文件中的
include_path变量当中,所以报打开文件失败的错误。设置include_path有两个方法,一个是在php.ini设置,另一个是在运行时
使用ini_set()函数来改变
阅读(2037) | 评论(0) | 转发(0) |