脚本宝典收集整理的这篇文章主要介绍了在Debian中将PHP 5.4降级到5.3,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free
创建
/etc/apt/PReferences.d/preferences
Package: PHP5* Pin: release a=oldstable Pin-PriorITy: 700 Package: libapache2-mod-PHP5 Pin: release a=oldstable Pin-Priority: 700 Package: libapache2-mod-PHP5 Pin: release a=oldstable Pin-Priority: 700 Package: PHP-PEar Pin: release a=oldstable Pin-Priority: 700 Package: * Pin: release a=stable Pin-Priority: 600
然后运行命令
aptitude update aptitude reinstall <necessary packages> /etc/init.d/apache2 restart
如果您想知道需要升级的软件包,请运行:
dpkg -l|grep PHP|grep 5.4|awk '{print $2}'
以上是脚本宝典为你收集整理的在Debian中将PHP 5.4降级到5.3全部内容,希望文章能够帮你解决在Debian中将PHP 5.4降级到5.3所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。