首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Xdebug时丢失Xdebug.ini文件

安装Xdebug时丢失Xdebug.ini文件
EN

Stack Overflow用户
提问于 2013-05-28 14:27:04
回答 2查看 5.7K关注 0票数 2

意外地,我丢失了/etc/php5/conf.d文件夹中的xdebug.ini文件。当我尝试使用apt-get安装xdebug时,它给出了如下说明。

代码语言:javascript
复制
Not replacing deleted config file /etc/php5/conf.d/xdebug.ini

我在谷歌上搜索了一下,我只能找到一个有用的回复。我不能理解如何做,所以我也粘贴在这里,所以请建议我如何继续。

代码语言:javascript
复制
I lost my xdebug.ini file on my ubuntu slice. What happened was that I had accidentally installed xdebug via apt-get as well as pecl. I was removing the pecl installation, which also removed the ini file. I then tried reinstalling through apt-get, but i get the message: 

Setting up php5-xdebug (2.0.3-1) ...
Not replacing deleted config file /etc/php5/conf.d/xdebug.ini

Aaaaaarghhhh!! How do I get back my ini file??? anyone have a clue?
rubing January 2009
I just fixed this by purging xdebug using dpkg with the -P flag. And then reinstalling with apt-get. No worries!

Ah geez, it looks the whole file is just a link to the module:

zend_extension=/usr/lib/php5/20060613/xdebug.so
EN

回答 2

Stack Overflow用户

发布于 2013-06-23 18:11:43

您删除的文件(/etc/php5/conf.d/xdebug.ini)只包含以下行:

代码语言:javascript
复制
zend_extension=/usr/lib/php5/20060613/xdebug.so

尽管路径可能与较旧的PHP版本不同,但请检查/usr/lib/php5下有哪些目录名并使用它。

@tetet已经提供了替代选项。

票数 1
EN

Stack Overflow用户

发布于 2013-05-28 16:44:12

也许'apt-get install --reinstall‘可以帮你解决这个问题。否则,触摸/etc/php5/conf.d中的xdebug.ini并重试,触摸将创建一个空文件。

另一种方法是解压下载的debian包,然后从那里复制配置文件: dpkg-deb -x。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16785211

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档