0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PHPのバージョンを切り替える

Posted at

remi リポジトリを追加する

bash
yum install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

PHP 5.6 7.2 7.3 をインストールしてみる

bash
for v in 56 72 73 ; do yum -y install php$v php$v-php-{gd,xml,mbstring,mysqlnd,opcache,pecl-apcu,common,fpm,embedded,pear} ; done

本体の場所の確認

bash
$ ls -l /opt/remi/
total 0
dr-xr-xr-x. 3 root root 32 Feb 15 12:17 php56
dr-xr-xr-x. 3 root root 32 Feb 15 12:18 php72
dr-xr-xr-x. 3 root root 32 Feb 15 12:18 php73

本体のシンボリックリンクが置かれる場所
上記の本体のシンボリックリンクは「/usr/bin/」に置かれる。

設定ファイルの場所を確認

7.xの場合

find /etc/opt/remi/ -type f -name php.ini
/etc/opt/remi/php72/php.ini
/etc/opt/remi/php73/php.ini

5.xの場合

find /opt/remi/ -type f -name php.ini
/opt/remi/php56/root/etc/php.ini

php-fpmの自動起動を有効化しておく

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?