toyota 2013-12-10 18:33
CentOS 下 PHP5.4 版安裝 php-tidy 相容性解決方案
環境: CentOS 6.4 x64 , PHP 5.4 , nginx 1.0.15<div><span style="line-height: 20.796875px;"><br></span></div><div><span style="line-height: 20.796875px;">使用的是 remi 資源庫安裝的...剛好要新安裝 php-tidy</span></div><div><span style="line-height: 20.796875px;">結果遇到相容性問題...這時後可以這樣做</span></div><div><span style="line-height: 20.796875px;"><br></span></div><div><div>修改yum 配置</div><div><br></div><div>把 /etc/yum.repos.d/remi.repo 內的 enabled=0 改為enabled=1</div></div><div><span style="line-height: 20.796875px;"><br></span><div>[quote]<br>[remi]<br>name=Les RPM de remi pour Enterprise Linux 6 - $basearch<br>#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/<br>mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror<br><font color="Red">enabled=1</font><br>gpgcheck=1<br>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi<br><br>[remi-test]<br>name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch<br>#baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/<br>mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror<br><font color="Red">enabled=1</font><br>gpgcheck=1<br>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi<br>[/quote]<br><br>改完之後...再重新安裝 <br># yum install php-tidy<br><br>這樣就可以囉~~<br></div></div>