2
2

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 5 years have passed since last update.

phpbrewをAWS EC2環境にインストールし、php7.2を実行できる様にした作業記録

Posted at

EC2にphpbrewインストールする際、ライブラリなど色々必要になったのでメモ

# ダウンロード
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
# 権限付与
chmod +x phpbrew
# 実行できる事を確認
./phpbrew

# /usr/binにインストール 
sudo mv phpbrew /usr/bin/
phpbrew init

# phpbrew init の結果を有効化するために
echo "source ~/.phpbrew/bashrc" >> ~/.bashrc
source ~/.phpbrew/bashrc

phpbrew known
phpbrew install 7.2 +default

# エラーがでたので色々ライブラリインストール
sudo yum install gcc libxml2-devel openssl-devel curl-devel readline-devel libxslt-devel

# openssl のライブラリはパスを指定する必要があったので、指定しました。
phpbrew install 7.2 +default +openssl=/usr -- --with-libdir=lib64

参考:
phpbrew install時OpenSSLが見つからない場合: https://qiita.com/dimgraycat/items/6154cd3a19b0b6cb8c17

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?