修复损坏的符号链接/重新安装PHP5 [英] repair broken symlinks / reinstall php5

查看:209
本文介绍了修复损坏的符号链接/重新安装PHP5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

怎么我修复断裂的符号链接? /删除'死'的文件?

上下文:由于我搞砸了我的php.ini配置我本地testservers之一,我决定重新安装基本网络服务器的东西。 (apache2的,PHP5,..)

问题:安装/etc/apache2/php5/php.ini疏漏之处,/etc/apache2/php5/conf.d是一个坏了符号链接后,我觉得<。 / p>

错误:在安装过程中:不替换删除配置文件/etc/php5/apache2/php.ini

那么,这些破符号链接?我可以用'LS /目录找到他们,他们在红色:)着色
我想RM /等/ PHP5 -r -f?但它不工作...而我应该怎么摆脱的php.ini'僵尸文件的?我想要的是一个新的PHP5的安装。


解决方案

您可以做到这样的:

  apt-get的清洗中的libapache2-MOD-PHP5 PHP5和放大器;&安培; \\
    易于得到安装中的libapache2-MOD-PHP5 PHP5

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.

解决方案

You can do it like that:

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

这篇关于修复损坏的符号链接/重新安装PHP5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆