修复损坏的符号链接/重新安装 php5 [英] repair broken symlinks / reinstall php5
问题描述
我如何修复损坏的符号链接?/删除死"文件?
How the I repair broken symlinks? / Delete 'dead' files?
上下文: 由于我弄乱了本地测试服务器之一上的 php.ini 配置,因此我决定重新安装基本的网络服务器内容.(apache2, php5,..)
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,..)
问题: 安装后根本没有/etc/apache2/php5/php.ini,我认为/etc/apache2/php5/conf.d 是一个损坏的符号链接".
Problem: After installation is /etc/apache2/php5/php.ini missing at all, /etc/apache2/php5/conf.d is a 'broken symlink', I think.
错误: 安装过程中:不替换已删除的配置文件/etc/php5/apache2/php.ini
那么这些损坏的符号链接"是什么?我可以使用 'ls/dir' 找到它们,它们是红色的 :)我试过rm/etc/php5 -R -f"?但它不起作用......我应该如何摆脱 php.ini 'zombie-file'?我想要的只是一个新的 php5 安装.
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.
推荐答案
你可以这样做:
apt-get purge libapache2-mod-php5 php5 && \
apt-get install libapache2-mod-php5 php5
这篇关于修复损坏的符号链接/重新安装 php5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!