centos 6 vpsにはPHPパッケージはありません。

centos 6 vpsにはPHPパッケージはありません。

centos6.8 vpsがあり、cpanelを使用してphp5.5バージョンをインストールしましたが、サーバーにphp5.6をインストール/アップグレードする必要がありますが、php5.6およびphp7.0用のパッケージも入手できません。

だから私はインストールepelしましたが、まだ利用可能なパッケージが見つかりませんでした。remiremi-php5.6

   # yum repolist enabled
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ndchost.com
 * epel: mirror.hmc.edu
 * extras: mirror.lax.hugeserver.com
 * remi: mirrors.mediatemple.net
 * remi-php55: mirrors.mediatemple.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: ftp.usf.edu
repo id                                     repo name                                                                                       status
atrpms                                      Red Hat Enterprise Linux 6 - x86_64 - ATrpms                                                       2,746+9
base                                        CentOS-6 - Base                                                                                   6,634+62
epel                                        Extra Packages for Enterprise Linux 6 - x86_64                                                  11,612+746
extras                                      CentOS-6 - Extras                                                                                       64
remi                                        Remi's RPM repository for Enterprise Linux 6 - x86_64                                            335+3,712
remi-php55                                  Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - x86_64                                       14+408
remi-php56                                  Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64                                       12+405
remi-safe                                   Safe Remi's RPM repository for Enterprise Linux 6 - x86_64                                       101+1,667
updates                                     CentOS-6 - Updates                                                                                  907+67
repolist: 22,425

# yum list available 'php-*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: mirror.hmc.edu
 * extras: repos.lax.quadranet.com
 * remi: mirrors.mediatemple.net
 * remi-php55: mirrors.mediatemple.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: centos-distro.cavecreek.net
Error: No matching Packages to list

ここでyumを使ってphp、php5.6 / w、php7.0をインストールしようとしましたが、パッケージを入手できませんでした。なぜパッケージが入手できないのかご存知ですか?

ベストアンサー1

cpanelを使用してインストールしたため無効になりました。/etc/yum.conf

# head /etc/yum.conf
exclude= php*  mysql* ...

ここではphp*yum.confを削除し、今yum

クラウドでvpsを使用している場合は、excludeまずyum設定ファイルのセクションを確認してください:)

おすすめ記事