问题描述
我正在尝试在Windows开发服务器上使用XAMPP安装 Laconica ,这是我的Windows开发服务器上的开源微博客应用程序. 提供的说明.
I'm trying to install Laconica, an open-source Microblogging application on my Windows development server using XAMPP as per the instructions provided.
网站找不到PEAR,并引发以下错误:
The website cannot find PEAR, and throws the below errors:
致命错误:require_once()[function.require]:无法在C:\ xampplite \ htdocs \ laconica \ lib中打开所需的'PEAR.php'(include_path ='.; \ xampplite \ php \ pear \ PEAR') \ common.php,第31行
Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;\xampplite\php\pear\PEAR') in C:\xampplite\htdocs\laconica\lib\common.php on line 31
- PEAR位于
C:\xampplite\php\pear
-
phpinfo()
向我显示包含路径为.;\xampplite\php\pear
- PEAR is located in
C:\xampplite\php\pear
phpinfo()
shows me that the include path is.;\xampplite\php\pear
我做错了什么?为什么不包含PEAR文件夹?
What am I doing wrong? Why isn't the PEAR folder being included?
推荐答案
您需要修复include_path
系统变量以指向正确的位置.
You need to fix your include_path
system variable to point to the correct location.
要修复此问题,请编辑php.ini
文件.在该文件中,您会找到一行"include_path = ...
". (您可以通过在页面上运行phpinfo()
来查找php.ini的位置.)修复行中显示"\xampplite\php\pear\PEAR
"的部分以读取"C:\xampplite\php\pear
".确保在行之前和/或之后保留分号.
To fix it edit the php.ini
file. In that file you will find a line that says, "include_path = ...
". (You can find out what the location of php.ini by running phpinfo()
on a page.) Fix the part of the line that says, "\xampplite\php\pear\PEAR
" to read "C:\xampplite\php\pear
". Make sure to leave the semi-colons before and/or after the line in place.
重新启动PHP,您应该一切顺利.要在IIS中重新启动PHP,您可以重新启动分配给您站点的应用程序池,或者最好一起重新启动IIS.
Restart PHP and you should be good to go. To restart PHP in IIS you can restart the application pool assigned to your site or, better yet, restart IIS all together.
这篇关于使PEAR在XAMPP上工作(Windows上的Apache/MySQL堆栈)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!