无意中我在xdebug.ini
文件夹中丢失了/etc/php5/conf.d
个文件。如何在我尝试使用apt-get
安装xdebug时返回,它会给出如下的注释。
Not replacing deleted config file /etc/php5/conf.d/xdebug.ini
我在谷歌搜索了这个,我只能找到一个有用的回复。我无法理解如何这样做我也在这里粘贴,所以请建议我如何继续。
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
答案 0 :(得分:1)
您删除的文件(/etc/php5/conf.d/xdebug.ini)只包含以下行:
zend_extension=/usr/lib/php5/20060613/xdebug.so
尽管路径可能与旧版PHP版本的路径不同 - 请检查/ usr / lib / php5下的目录名称并使用它。
@tetet已经提供了替代选项。
答案 1 :(得分:0)
也许' apt-get install --reinstall'会为你做的伎俩。否则触摸/etc/php5/conf.d中的xdebug.ini并再试一次,touch会创建一个空文件。
另一种方法是解压缩下载的debian软件包并从那里复制配置文件:dpkg-deb -x。