2013-05-28 2 views
1

우연히 파일이 /etc/php5/conf.d 폴더에 유실되었습니다. apt-get을 사용하여 xdebug를 설치하려고 시도하는 동안 그걸 얻는 방법은 아래와 같습니다.Xdebug를 설치하는 동안 Xdebug.ini 파일이 손실되었습니다

Not replacing deleted config file /etc/php5/conf.d/xdebug.ini 

Google에서 검색 한 결과 유용한 답변이 하나만 있습니다. 그렇게하는 방법을 이해할 수 없으므로 여기에 붙여 넣으므로 진행 방법을 제안하십시오.

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

아마도 'apt-get install --reinstall'이 당신을 대신 할 것입니다. 그렇지 않으면 /etc/php5/conf.d에서 xdebug.ini를 터치하고 다시 시도하십시오. touch는 빈 파일을 만듭니다.

대체 경로는 다운로드 한 debian 패키지의 압축을 풀고 거기에서 config 파일을 복사하는 것입니다 : dpkg-deb -x.

1

당신이 (/etc/php5/conf.d/xdebug.ini)이 단지에 다음과 같은 행이 들어있는 삭제 파일 : 그 이전 PHP 버전 보인다

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

하는 경로가 다를 수 있습니다 만을 -/usr/lib/php5에있는 디렉토리 이름을 확인하고이를 사용하십시오.

대체 옵션은 @tetet에서 이미 제공합니다.