LoginSignup
0
1

More than 1 year has passed since last update.

ec2のamazon linux2 にnginx+php-fpm+php7.4+phalcon4 セットアップ

Last updated at Posted at 2021-07-20

ログインしてrootで作業します


timedatectl set-timezone Asia/Tokyo
timedatectl status
localectl set-locale LANG=ja_JP.UTF-8


yum update

amazon-linux-extras install php7.4

amazon-linux-extras install nginx1

アップグレードの場合、旧バージョンが有効になっていたらできない。ので以下

 amazon-linux-extras disable php7.3
 yum remove --enablerepo=remi-php73 php-phalcon3

epelのインストール設定がいろいろ調べるとありますが、AmazonLinux2のamazon-linux-extras に存在したので、それをインストールして、有効にすればOKです。

amazon-linux-extras install epel

yum-config-manager --enable epel

yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum install php-mbstring

yum install pcre-devel



curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.rpm.sh | sudo bash

yum install php-devel php-opcache php-mbstring php-xml php-gd php-json
yum install --enablerepo=remi-php74 php-phalcon4


# phalconは、/etc/php.d/にあるのを確認

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