repair broken symlinks / reinstall php5

廉价感情. 提交于 2019-12-06 01:28:16

问题


How the I repair broken symlinks? / Delete 'dead' files?

Context: Since I messed up my php.ini configuration on one of my local testservers, I decided to re-installed the basic webserver stuff. (apache2, php5,..)

Problem: After installation is /etc/apache2/php5/php.ini missing at all, /etc/apache2/php5/conf.d is a 'broken symlink', I think.

Error: During installation: Not replacing deleted config file /etc/php5/apache2/php.ini

So what's these 'broken symlinks'? I can find them using 'ls /dir', they are colored in red :) I tried "rm /etc/php5 -R -f"? But it doesn't work... And how should I get rid of the php.ini 'zombie-file'? All I want is a new php5 installation.


回答1:


You can do it like that:

apt-get purge libapache2-mod-php5 php5 && \
    apt-get install libapache2-mod-php5 php5


来源:https://stackoverflow.com/questions/9323678/repair-broken-symlinks-reinstall-php5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!