プロジェクトの制限により、PHPバージョン<5.3と>5.2の間でプロジェクトを実行する必要があります。
CentOs6.xを使用してVagrantを介して環境をデプロイしています。このプロジェクトでは、CentOs 5.xボックスを作成(ダウンロード)しました。これは、PHP5.3.xに自動的に付属していないためです。
それでも、CentOs5.xに付属しているバージョンは5.1.6であり、プロジェクトには低すぎます。私はインターネットで適切なソリューションを探すのに何時間も費やし、多くの(アトミック、rpvのダウンロード、CentOsテストリポジトリの使用)を試しましたが、実際には機能せず、VagrantやPuppetのプロビジョニングと統合するのも安定していません。
私が見つけた最も簡単な解決策は、ダイレクトシェルパペットプロビオンを介して実行可能です
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*
しかし、を実行するyum install php
と、PHP 5.1.6バージョンが生成され、期待されるPHP5.2.xは生成されません。
ターミナルで、このc5テストリポジトリを使用していることがわかります。
実行yum --enablerepo=c5-testing install php
しても効果は少なくなります。
yum --enablerepo=c5-testing install php
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* addons: ftp.cvut.cz
* base: ftp.cvut.cz
* centosplus: ftp.cvut.cz
* epel: mirror.karneval.cz
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
Reducing CentOS-5 Testing to included packages only
Finished
309 packages excluded due to repository priority protections
Setting up Install Process
Package php-5.1.6-39.el5_8.x86_64 already installed and latest version
Nothing to do
誰かがこのトピックに関してもっとアイデアを持っているか、またはPHPの5.2バージョンを備えたCentOsボックスを持っていますか?
前もって感謝します。