LoginSignup
2
1

More than 5 years have passed since last update.

php 7.2インストール

Posted at

CentOSにPHP 7.2をインストールする機会があったので、参考までに共有します。

インストールコマンド

yum -y install --enablerepo=remi,remi-php72 php php-mbstring php-xml php-xmlrpc php-gd php-pdo php-pecl-mcrypt php-mysqlnd php-pecl-mysql php-zip
「yum -y install --enablerepo=remi,remi-php72 php インストール名は先頭のphp72を削除して実行する」

例:インストール後にphp-fpmをインストールするコマンド
yum -y install --enablerepo=remi,remi-php72 php php-fpm

例:インストール後にphp-zipをインストールするコマンド
yum -y install --enablerepo=remi,remi-php72 php php-zip

extension_dirの場所確認コマンド

php -i |grep -i extension_dir
出力内容の例
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
sqlite3.extension_dir => no value => no value

インストール済みextensionの確認コマンド

php -m

2
1
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
2
1