LoginSignup
1
2

More than 3 years have passed since last update.

[備忘録] CentOS7 に PHP7.2 をインストール

Last updated at Posted at 2019-11-12

yumphp7.2 をインストールしたときの手順メモ

$ sudo yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
$ sudo sed -i -e "s/enabled *= *1/enabled=0/g" /etc/yum.repos.d/remi.repo

$ sudo yum install -y https://repo.ius.io/ius-release-el7.rpm
$ sudo sed -i -e "s/enabled *= *1/enabled=0/g" /etc/yum.repos.d/ius.repo

$ sudo yum update -y 
$ sudo yum install -y httpd httpd-tools zip unzip
$ sudo yum install --enablerepo=epel -y libmcrypt libwebp
$ sudo yum install --enablerepo=remi -y gd-last
$ sudo yum install --enablerepo=epel,remi-php72 -y php php-devel php-gd php-mbstring php-mcrypt php-pdo php-xml php-opcache php-xdebug
$ sudo yum install --enablerepo=ius -y git2u
$ sudo yum clean all

変更履歴

  • ius リポジトリの URL 変更 (2020-07-02)

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2