T4g + Amazon Linux 2 + goofys + PHP8

Emotional, Burning, Unlimited Tuned Laboratory

mount S3 by Goofys

install Goofys
https://github.com/kahing/goofys/issues/527

# yum-config-manager
# yum-config-manager --enable epel
# yum search goofys
# yum repolist
# exit
# export GOPATH=$HOME/go
# cd go/
# go get -d github.com/kahing/goofys
# cd ..
# cd go/src/github.com/
# cd /root/go/src/github.com/kahing/goofys/
# git submodule init
# git submodule update
# cd /root/go/src/github.com/
# go get github.com/Azure/azure-pipeline-go
# env | grep GO
# export GOOFYS_HOME=/root/go/src/github.com/kahing/goofys/
# go get github.com/Azure/azure-pipeline-go
# ls
# cd google/
# cd /root/go/src/github.com/kahing/goofys/
# go install /root/go/src/github.com/kahing/goofys/
# ll /root/bin
# ll /root/go/bin/
# whereis goofys
# ll /usr/local/bin/goofys
# whereis goofys
# /root/go/bin/goofys --help
Test for mounting
# su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=500 --gid=500 ebut.data.backup /dataS3/backup"
-bash: /root/go/bin/goofys: Permission denied
# /root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=500 --gid=500 ebut.data.backup /dataS3/backup
# df -h
Filesystem        Size  Used Avail Use% Mounted on
devtmpfs          437M     0  437M   0% /dev
tmpfs             478M     0  478M   0% /dev/shm
tmpfs             478M  420K  478M   1% /run
tmpfs             478M     0  478M   0% /sys/fs/cgroup
/dev/nvme0n1p1     20G  4.0G   17G  20% /
/dev/nvme0n1p128   10M  3.7M  6.3M  38% /boot/efi
/dev/nvme1n1       30G  9.5G   21G  32% /data
tmpfs              96M     0   96M   0% /run/user/500
ebut.data.backup  1.0P     0  1.0P   0% /dataS3/backup



$ ll /dataS3/backup/test
合計 1
-rw-rw-r-- 1 cozy ebut 3  6月 21  2017 rsync01
-rw-rw-r-- 1 cozy ebut 0  2月 11 11:53 test
$ ll /dataS3/backup/test/
合計 1
-rw-rw-r-- 1 cozy ebut 3  6月 21  2017 rsync01
-rw-rw-r-- 1 cozy ebut 0  2月 11 11:53 test
$ touch /dataS3/backup/test/test2
$ ll /dataS3/backup/test/
合計 1
-rw-rw-r-- 1 cozy ebut 3  6月 21  2017 rsync01
-rw-rw-r-- 1 cozy ebut 0  2月 11 11:53 test
-rw-rw-r-- 1 cozy ebut 0  6月 27 10:22 test2
$ echo "hogehoge" >> /dataS3/backup/test/test2
$ cat /dataS3/backup/test/test2
hogehoge


$ umount /dataS3/backup
umount: /dataS3/backup: アンマウントに失敗しました: Operation not permitted.
$ sudo umount /dataS3/backup
$ df -h
ファイルシス     サイズ  使用  残り 使用% マウント位置
devtmpfs           437M     0  437M    0% /dev
tmpfs              478M     0  478M    0% /dev/shm
tmpfs              478M  420K  478M    1% /run
tmpfs              478M     0  478M    0% /sys/fs/cgroup
/dev/nvme0n1p1      20G  4.0G   17G   20% /
/dev/nvme0n1p128    10M  3.7M  6.3M   38% /boot/efi
/dev/nvme1n1        30G  9.5G   21G   32% /data
tmpfs               96M     0   96M    0% /run/user/500

$ grep root /etc/group
root:x:0:
$ sudo vi /etc/group
$ grep root /etc/group
root:x:0:cozy

# su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=500 --gid=500 ebut.data.backup /dataS3/backup"
2021/06/27 11:27:42.959993 main.FATAL Unable to mount file system, see syslog for details

# tali -n 50 /var/log/messages
Jun 27 11:27:41 ip-172-31-39-224 /root/go/bin/goofys[1365]: s3.INFO Switching from region 'us-east-1' to 'ap-northeast-1'
Jun 27 11:27:41 ip-172-31-39-224 systemd: Mounting FUSE Control File System...
Jun 27 11:27:41 ip-172-31-39-224 kernel: fuse init (API version 7.26)
Jun 27 11:27:41 ip-172-31-39-224 systemd: Mounted FUSE Control File System.
Jun 27 11:27:41 ip-172-31-39-224 /root/go/bin/goofys[1365]: main.FATAL Mounting file system: Mount: mount: running fusermount: exit status 1#012#012stderr:#012fusermount: user has no write access to mountpoint /dataS3/backup
Mounting on booting up
# ll /dataS3/
total 0
drwxr-xr-x 2 root root 6 Jun 26 22:12 backup
# chown cozy.ebut /dataS3/backup/
# ll /dataS3/
total 0
drwxr-xr-x 2 cozy ebut 6 Jun 26 22:12 backup

# cat /etc/fuse.conf
# mount_max = 1000
# user_allow_other
# vi /etc/fuse.conf
# cat /etc/fuse.conf
# mount_max = 1000
user_allow_other

# su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=500 --gid=500 ebut.data.backup /dataS3/backup"
# df -h
Filesystem        Size  Used Avail Use% Mounted on
devtmpfs          437M     0  437M   0% /dev
tmpfs             478M     0  478M   0% /dev/shm
tmpfs             478M  420K  478M   1% /run
tmpfs             478M     0  478M   0% /sys/fs/cgroup
/dev/nvme0n1p1     20G  4.0G   17G  20% /
/dev/nvme0n1p128   10M  3.7M  6.3M  38% /boot/efi
/dev/nvme1n1       30G  9.5G   21G  32% /data
tmpfs              96M     0   96M   0% /run/user/500
ebut.data.backup  1.0P     0  1.0P   0% /dataS3/backup


# grep nginx /etc/passwd
nginx:x:498:498:Nginx web server:/var/lib/nginx:/sbin/nologin
# grep nginx /etc/group
nginx:x:498:

# mkdir /dataS3/{nginx,share}
# chown nginx.ebut /dataS3/{nginx,share}
# chmod 775 /dataS3/{nginx,share}
# ll /dataS3/
total 4
drwxrwxr-x 2 cozy  ebut 4096 Jun 27 11:32 backup
drwxrwxr-x 2 nginx ebut    6 Jun 27 11:33 nginx
drwxrwxr-x 2 nginx ebut    6 Jun 27 11:33 share

# su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=499 --gid=500 ebut.data.share /dataS3/share"
# su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=499 --gid=500 ebut.data.apache /dataS3/nginx"
# df -h
Filesystem        Size  Used Avail Use% Mounted on
devtmpfs          437M     0  437M   0% /dev
tmpfs             478M     0  478M   0% /dev/shm
tmpfs             478M  420K  478M   1% /run
tmpfs             478M     0  478M   0% /sys/fs/cgroup
/dev/nvme0n1p1     20G  4.0G   17G  20% /
/dev/nvme0n1p128   10M  3.7M  6.3M  38% /boot/efi
/dev/nvme1n1       30G  9.5G   21G  32% /data
tmpfs              96M     0   96M   0% /run/user/500
ebut.data.backup  1.0P     0  1.0P   0% /dataS3/backup
ebut.data.share   1.0P     0  1.0P   0% /dataS3/share
ebut.data.apache  1.0P     0  1.0P   0% /dataS3/nginx

OK!!!

# emacs -nw /etc/init.d/mountS3
#!/bin/sh
# chkconfig: 2345 99 10
# description: mount S3 storage Ver.2 for AL2 on ARM
case "$1" in
    start)
	su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=500 --gid=500 ebut.data.backup /dataS3/backup"
	su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=499 --gid=500 ebut.data.share /dataS3/share"
	su -l cozy -c "/root/go/bin/goofys -o allow_other --dir-mode=0775 --file-mode=0664 --uid=499 --gid=500 ebut.data.apache /dataS3/nginx"
	;;
    stop)
	su -l cozy -c "killall goofys"
	;;
    *) break ;;
esac

# chkconfig --add mountS3
# chkconfig --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

mountS3        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off

# /etc/init.d/mountS3 stop
# df -h
Filesystem        Size  Used Avail Use% Mounted on
devtmpfs          437M     0  437M   0% /dev
tmpfs             478M     0  478M   0% /dev/shm
tmpfs             478M  424K  478M   1% /run
tmpfs             478M     0  478M   0% /sys/fs/cgroup
/dev/nvme0n1p1     20G  4.0G   17G  20% /
/dev/nvme0n1p128   10M  3.7M  6.3M  38% /boot/efi
/dev/nvme1n1       30G  9.5G   21G  32% /data
tmpfs              96M     0   96M   0% /run/user/500
# /etc/init.d/mountS3 start
# df -h
Filesystem        Size  Used Avail Use% Mounted on
devtmpfs          437M     0  437M   0% /dev
tmpfs             478M     0  478M   0% /dev/shm
tmpfs             478M  424K  478M   1% /run
tmpfs             478M     0  478M   0% /sys/fs/cgroup
/dev/nvme0n1p1     20G  4.0G   17G  20% /
/dev/nvme0n1p128   10M  3.7M  6.3M  38% /boot/efi
/dev/nvme1n1       30G  9.5G   21G  32% /data
tmpfs              96M     0   96M   0% /run/user/500
ebut.data.backup  1.0P     0  1.0P   0% /dataS3/backup
ebut.data.share   1.0P     0  1.0P   0% /dataS3/share
ebut.data.apache  1.0P     0  1.0P   0% /dataS3/nginx
Install application binaries of nginx …
# yum install nginx
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                             | 3.7 kB  00:00:00
No package nginx available.
Error: Nothing to do


nginx is available in Amazon Linux Extra topic "nginx1"

To use, run
# sudo amazon-linux-extras install nginx1

Learn more at
https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras

# amazon-linux-extras install nginx1
Installing nginx
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-nginx1
12 metadata files removed
4 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                             | 3.7 kB  00:00:00
amzn2extra-docker                                                      | 3.0 kB  00:00:00
amzn2extra-nginx1                                                      | 3.0 kB  00:00:00
(1/7): amzn2-core/2/aarch64/group_gz                                   | 2.5 kB  00:00:00
(2/7): amzn2-core/2/aarch64/updateinfo                                 | 390 kB  00:00:00
(3/7): amzn2extra-nginx1/2/aarch64/primary_db                          |  35 kB  00:00:00
..snip
---> Package openssl11-pkcs11.aarch64 0:0.4.10-6.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
 Package               Arch         Version                      Repository              Size
==============================================================================================
Installing:
 nginx                 aarch64      1:1.20.0-2.amzn2.0.3         amzn2extra-nginx1      591 k
Installing for dependencies:
 gperftools-libs       aarch64      2.6.1-1.amzn2                amzn2-core             266 k
 nginx-filesystem      noarch       1:1.20.0-2.amzn2.0.3         amzn2extra-nginx1       23 k
 openssl11-libs        aarch64      1:1.1.1g-12.amzn2.0.3        amzn2-core             1.4 M
 openssl11-pkcs11      aarch64      0.4.10-6.amzn2.0.1           amzn2-core              63 k

Transaction Summary
==============================================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 2.3 M
Installed size: 7.1 M
Is this ok [y/d/N]: y

Downloading packages:
(1/5): nginx-filesystem-1.20.0-2.amzn2.0.3.noarch.rpm                  |  23 kB  00:00:00
(2/5): gperftools-libs-2.6.1-1.amzn2.aarch64.rpm                       | 266 kB  00:00:00
(3/5): nginx-1.20.0-2.amzn2.0.3.aarch64.rpm                            | 591 kB  00:00:00
(4/5): openssl11-pkcs11-0.4.10-6.amzn2.0.1.aarch64.rpm                 |  63 kB  00:00:00
(5/5): openssl11-libs-1.1.1g-12.amzn2.0.3.aarch64.rpm                  | 1.4 MB  00:00:00
----------------------------------------------------------------------------------------------
Total                                                          13 MB/s | 2.3 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : openssl11-pkcs11-0.4.10-6.amzn2.0.1.aarch64                                1/5
  Installing : 1:openssl11-libs-1.1.1g-12.amzn2.0.3.aarch64                               2/5
  Installing : 1:nginx-filesystem-1.20.0-2.amzn2.0.3.noarch                               3/5
  Installing : gperftools-libs-2.6.1-1.amzn2.aarch64                                      4/5
  Installing : 1:nginx-1.20.0-2.amzn2.0.3.aarch64                                         5/5
  Verifying  : gperftools-libs-2.6.1-1.amzn2.aarch64                                      1/5
  Verifying  : 1:openssl11-libs-1.1.1g-12.amzn2.0.3.aarch64                               2/5
  Verifying  : openssl11-pkcs11-0.4.10-6.amzn2.0.1.aarch64                                3/5
  Verifying  : 1:nginx-1.20.0-2.amzn2.0.3.aarch64                                         4/5
  Verifying  : 1:nginx-filesystem-1.20.0-2.amzn2.0.3.noarch                               5/5

Installed:
  nginx.aarch64 1:1.20.0-2.amzn2.0.3

Dependency Installed:
  gperftools-libs.aarch64 0:2.6.1-1.amzn2       nginx-filesystem.noarch 1:1.20.0-2.amzn2.0.3
  openssl11-libs.aarch64 1:1.1.1g-12.amzn2.0.3  openssl11-pkcs11.aarch64 0:0.4.10-6.amzn2.0.1

Complete!
  0  ansible2                 available    [ =2.4.6  =2.8  =stable ]
  1  httpd_modules            available    [ =1.0  =stable ]
  2  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  4  postgresql9.6            available    [ =9.6.8  =stable ]
  5  postgresql10             available    [ =10  =stable ]
  7  R3.4                     available    [ =3.4.3  =stable ]
  8  rust1                    available    [ =stable ]
 11  php7.2                   available    \
        [ =7.2.13  =7.2.14  =7.2.16  =7.2.17  =7.2.19  =7.2.21
          =7.2.22  =7.2.23  =7.2.24  =7.2.26  =stable ]
 13  lamp-mariadb10.2-php7.2  available    \
        [ =10.2.10_7.2.11  =10.2.10_7.2.14  =10.2.10_7.2.16
          =10.2.10_7.2.17  =10.2.10_7.2.19  =10.2.10_7.2.22
          =10.2.10_7.2.23  =10.2.10_7.2.24  =stable ]
 14  libreoffice              available    [ =5.3.6.1  =stable ]
 16  docker=latest            enabled      \
        [ =18.06.1  =18.09.9  =stable ]
 17  mate-desktop1.x          available    [ =stable ]
 18  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 19  tomcat8.5                available    \
        [ =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50  =stable ]
 20  epel                     available    [ =7.11  =stable ]
 21  testing                  available    [ =1.0  =stable ]
 22  ecs                      available    [ =stable ]
 23  corretto8                available    \
        [ =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232  =1.8.0_242
          =stable ]
 24  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 25  squid4                   available    [ =4  =stable ]
 26  php7.3                   available    \
        [ =7.3.2  =7.3.3  =7.3.4  =7.3.6  =7.3.8  =7.3.9  =7.3.10
          =7.3.11  =7.3.13  =stable ]
 27  java-openjdk11           available    [ =11  =stable ]
 28  lynis                    available    [ =stable ]
 29  kernel-ng                available    [ =stable ]
 30  BCC                      available    [ =0.x  =stable ]
 31  nginx1=latest            enabled      [ =stable ]
 32  ruby2.6                  available    [ =2.6  =stable ]
 33  mock                     available    [ =stable ]
 34  postgresql11             available    [ =11  =stable ]
 35  php7.4                   available    [ =stable ]
 36  python3.8                available    [ =stable ]
 37  lustre2.10               available    [ =stable ]
 38  haproxy2                 available    [ =stable ]
 39  collectd                 available    [ =stable ]
 40  R4                       available    [ =stable ]
 41  kernel-5.4               available    [ =stable ]
 42  selinux-ng               available    [ =stable ]
 43  php8.0                   available    [ =stable ]
 44  tomcat9                  available    [ =stable ]
 45  unbound1.13              available    [ =stable ]
 46  mariadb10.5              available    [ =stable ]
 47  kernel-5.10              available    [ =stable ]
 48  redis6                   available    [ =stable ]
 49  ruby3.0                  available    [ =stable ]
 50  postgresql12             available    [ =stable ]
 51  postgresql13             available    [ =stable ]
 52  mock2                    available    [ =stable ]


# amazon-linux-extras install epel
Installing epel-release
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-epel amzn2extra-nginx1
17 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                 | 3.7 kB  00:00:00
amzn2extra-docker                                                          | 3.0 kB  00:00:00
amzn2extra-epel                                                            | 3.0 kB  00:00:00
amzn2extra-nginx1                                                          | 3.0 kB  00:00:00
(1/9): amzn2-core/2/aarch64/group_gz                                       | 2.5 kB  00:00:00
(2/9): amzn2-core/2/aarch64/updateinfo                                     | 390 kB  00:00:00
(3/9): amzn2extra-epel/2/aarch64/primary_db                                | 1.8 kB  00:00:00
(4/9): amzn2extra-nginx1/2/aarch64/updateinfo                              |   76 B  00:00:00
(5/9): amzn2extra-nginx1/2/aarch64/primary_db                              |  35 kB  00:00:00
(6/9): amzn2extra-docker/2/aarch64/primary_db                              |  57 kB  00:00:00
(7/9): amzn2extra-docker/2/aarch64/updateinfo                              |   76 B  00:00:00
(8/9): amzn2extra-epel/2/aarch64/updateinfo                                |   76 B  00:00:00
(9/9): amzn2-core/2/aarch64/primary_db                                     |  37 MB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================
 Package                  Arch               Version            Repository                   Size
==================================================================================================
Installing:
 epel-release             noarch             7-11               amzn2extra-epel              15 k

Transaction Summary
==================================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm                                               |  15 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                       1/1
  Verifying  : epel-release-7-11.noarch                                                       1/1

Installed:
  epel-release.noarch 0:7-11

Complete!
  0  ansible2                 available    [ =2.4.6  =2.8  =stable ]
  1  httpd_modules            available    [ =1.0  =stable ]
  2  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  4  postgresql9.6            available    [ =9.6.8  =stable ]
  5  postgresql10             available    [ =10  =stable ]
  7  R3.4                     available    [ =3.4.3  =stable ]
  8  rust1                    available    [ =stable ]
 11  php7.2                   available    \
        [ =7.2.13  =7.2.14  =7.2.16  =7.2.17  =7.2.19  =7.2.21
          =7.2.22  =7.2.23  =7.2.24  =7.2.26  =stable ]
 13  lamp-mariadb10.2-php7.2  available    \
        [ =10.2.10_7.2.11  =10.2.10_7.2.14  =10.2.10_7.2.16
          =10.2.10_7.2.17  =10.2.10_7.2.19  =10.2.10_7.2.22
          =10.2.10_7.2.23  =10.2.10_7.2.24  =stable ]
 14  libreoffice              available    [ =5.3.6.1  =stable ]
 16  docker=latest            enabled      \
        [ =18.06.1  =18.09.9  =stable ]
 17  mate-desktop1.x          available    [ =stable ]
 18  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 19  tomcat8.5                available    \
        [ =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50  =stable ]
 20  epel=latest              enabled      [ =7.11  =stable ]
 21  testing                  available    [ =1.0  =stable ]
 22  ecs                      available    [ =stable ]
 23  corretto8                available    \
        [ =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232  =1.8.0_242
          =stable ]
 24  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 25  squid4                   available    [ =4  =stable ]
 26  php7.3                   available    \
        [ =7.3.2  =7.3.3  =7.3.4  =7.3.6  =7.3.8  =7.3.9  =7.3.10
          =7.3.11  =7.3.13  =stable ]
 27  java-openjdk11           available    [ =11  =stable ]
 28  lynis                    available    [ =stable ]
 29  kernel-ng                available    [ =stable ]
 30  BCC                      available    [ =0.x  =stable ]
 31  nginx1=latest            enabled      [ =stable ]
 32  ruby2.6                  available    [ =2.6  =stable ]
 33  mock                     available    [ =stable ]
 34  postgresql11             available    [ =11  =stable ]
 35  php7.4                   available    [ =stable ]
 36  python3.8                available    [ =stable ]
 37  lustre2.10               available    [ =stable ]
 38  haproxy2                 available    [ =stable ]
 39  collectd                 available    [ =stable ]
 40  R4                       available    [ =stable ]
 41  kernel-5.4               available    [ =stable ]
 42  selinux-ng               available    [ =stable ]
 43  php8.0                   available    [ =stable ]
 44  tomcat9                  available    [ =stable ]
 45  unbound1.13              available    [ =stable ]
 46  mariadb10.5              available    [ =stable ]
 47  kernel-5.10              available    [ =stable ]
 48  redis6                   available    [ =stable ]
 49  ruby3.0                  available    [ =stable ]
 50  postgresql12             available    [ =stable ]
 51  postgresql13             available    [ =stable ]
 52  mock2                    available    [ =stable ]
# yum repolist
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
200 packages excluded due to repository priority protections
repo id                           repo name                                             status
amzn2-core/2/aarch64              Amazon Linux 2 core repository                            16,773
amzn2extra-docker/2/aarch64       Amazon Extras repo for docker                                 36
amzn2extra-epel/2/aarch64         Amazon Extras repo for epel                                    1
amzn2extra-nginx1/2/aarch64       Amazon Extras repo for nginx1                                 54
epel/aarch64                      Extra Packages for Enterprise Linux 7 - aarch64       12,788+200
repolist: 29,652
Install application binaries of php8 + php-fpm
# amazon-linux-extras info php8.0
php8.0 recommends php-cli                    # yum install php-cli
php8.0 recommends php-pdo                    # yum install php-pdo
php8.0 recommends php-fpm                    # yum install php-fpm
php8.0 recommends php-mysqlnd                # yum install php-mysqlnd
# amazon-linux-extras install php8.0
Installing php-pdo, php-fpm, php-mysqlnd, php-cli
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-epel amzn2extra-nginx1 amzn2extra-php8.0
              : epel
28 metadata files removed
10 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                 | 3.7 kB  00:00:00
amzn2extra-docker                                                          | 3.0 kB  00:00:00
amzn2extra-epel                                                            | 3.0 kB  00:00:00
amzn2extra-nginx1                                                          | 3.0 kB  00:00:00
amzn2extra-php8.0                                                          | 3.0 kB  00:00:00
epel/aarch64/metalink                                                      | 9.0 kB  00:00:00
epel                                                                       | 5.4 kB  00:00:00
(1/14): amzn2-core/2/aarch64/updateinfo                                    | 390 kB  00:00:00
(2/14): amzn2-core/2/aarch64/group_gz                                      | 2.5 kB  00:00:00
(3/14): amzn2extra-epel/2/aarch64/primary_db                               | 1.8 kB  00:00:00
(4/14): amzn2extra-nginx1/2/aarch64/updateinfo                             |   76 B  00:00:00
(5/14): amzn2extra-nginx1/2/aarch64/primary_db                             |  35 kB  00:00:00
(6/14): amzn2extra-docker/2/aarch64/updateinfo                             |   76 B  00:00:00
(7/14): amzn2extra-epel/2/aarch64/updateinfo                               |   76 B  00:00:00
(8/14): amzn2extra-php8.0/2/aarch64/updateinfo                             |   76 B  00:00:00
(9/14): amzn2extra-docker/2/aarch64/primary_db                             |  57 kB  00:00:00
(10/14): amzn2extra-php8.0/2/aarch64/primary_db                            |  78 kB  00:00:00
(11/14): epel/aarch64/group_gz                                             |  88 kB  00:00:00
(12/14): epel/aarch64/updateinfo                                           | 1.0 MB  00:00:00
(13/14): epel/aarch64/primary_db                                           | 6.6 MB  00:00:00
(14/14): amzn2-core/2/aarch64/primary_db                                   |  37 MB  00:00:00
203 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-cli.aarch64 0:8.0.6-1.amzn2 will be installed
--> Processing Dependency: php-common(aarch-64) = 8.0.6-1.amzn2 for package: php-cli-8.0.6-1.amzn2.aarch64
---> Package php-fpm.aarch64 0:8.0.6-1.amzn2 will be installed
---> Package php-mysqlnd.aarch64 0:8.0.6-1.amzn2 will be installed
---> Package php-pdo.aarch64 0:8.0.6-1.amzn2 will be installed
--> Running transaction check
---> Package php-common.aarch64 0:8.0.6-1.amzn2 will be installed
--> Processing Dependency: libzip.so.5()(64bit) for package: php-common-8.0.6-1.amzn2.aarch64
--> Running transaction check
---> Package libzip.aarch64 0:1.3.2-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================
 Package             Arch            Version                      Repository                 Size
==================================================================================================
Installing:
 php-cli             aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         5.0 M
 php-fpm             aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         1.7 M
 php-mysqlnd         aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         192 k
 php-pdo             aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         123 k
Installing for dependencies:
 libzip              aarch64         1.3.2-1.amzn2.0.1            amzn2-core                 63 k
 php-common          aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         1.2 M

Transaction Summary
==================================================================================================
Install  4 Packages (+2 Dependent packages)

Total download size: 8.3 M
Installed size: 39 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): libzip-1.3.2-1.amzn2.0.1.aarch64.rpm                                |  63 kB  00:00:00
(2/6): php-common-8.0.6-1.amzn2.aarch64.rpm                                | 1.2 MB  00:00:00
(3/6): php-cli-8.0.6-1.amzn2.aarch64.rpm                                   | 5.0 MB  00:00:00
(4/6): php-fpm-8.0.6-1.amzn2.aarch64.rpm                                   | 1.7 MB  00:00:00
(5/6): php-mysqlnd-8.0.6-1.amzn2.aarch64.rpm                               | 192 kB  00:00:00
(6/6): php-pdo-8.0.6-1.amzn2.aarch64.rpm                                   | 123 kB  00:00:00
--------------------------------------------------------------------------------------------------
Total                                                              22 MB/s | 8.3 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libzip-1.3.2-1.amzn2.0.1.aarch64                                               1/6
  Installing : php-common-8.0.6-1.amzn2.aarch64                                               2/6
  Installing : php-pdo-8.0.6-1.amzn2.aarch64                                                  3/6
  Installing : php-mysqlnd-8.0.6-1.amzn2.aarch64                                              4/6
  Installing : php-fpm-8.0.6-1.amzn2.aarch64                                                  5/6
  Installing : php-cli-8.0.6-1.amzn2.aarch64                                                  6/6
  Verifying  : php-fpm-8.0.6-1.amzn2.aarch64                                                  1/6
  Verifying  : php-cli-8.0.6-1.amzn2.aarch64                                                  2/6
  Verifying  : php-mysqlnd-8.0.6-1.amzn2.aarch64                                              3/6
  Verifying  : libzip-1.3.2-1.amzn2.0.1.aarch64                                               4/6
  Verifying  : php-pdo-8.0.6-1.amzn2.aarch64                                                  5/6
  Verifying  : php-common-8.0.6-1.amzn2.aarch64                                               6/6

Installed:
  php-cli.aarch64 0:8.0.6-1.amzn2                   php-fpm.aarch64 0:8.0.6-1.amzn2
  php-mysqlnd.aarch64 0:8.0.6-1.amzn2               php-pdo.aarch64 0:8.0.6-1.amzn2

Dependency Installed:
  libzip.aarch64 0:1.3.2-1.amzn2.0.1              php-common.aarch64 0:8.0.6-1.amzn2

Complete!
  0  ansible2                 available    [ =2.4.6  =2.8  =stable ]
  1  httpd_modules            available    [ =1.0  =stable ]
  2  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  4  postgresql9.6            available    [ =9.6.8  =stable ]
  5  postgresql10             available    [ =10  =stable ]
  7  R3.4                     available    [ =3.4.3  =stable ]
  8  rust1                    available    [ =stable ]
  _  php7.2                   available    \
        [ =7.2.13  =7.2.14  =7.2.16  =7.2.17  =7.2.19  =7.2.21
          =7.2.22  =7.2.23  =7.2.24  =7.2.26  =stable ]
  _  lamp-mariadb10.2-php7.2  available    \
        [ =10.2.10_7.2.11  =10.2.10_7.2.14  =10.2.10_7.2.16
          =10.2.10_7.2.17  =10.2.10_7.2.19  =10.2.10_7.2.22
          =10.2.10_7.2.23  =10.2.10_7.2.24  =stable ]
 14  libreoffice              available    [ =5.3.6.1  =stable ]
 16  docker=latest            enabled      \
        [ =18.06.1  =18.09.9  =stable ]
 17  mate-desktop1.x          available    [ =stable ]
 18  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 19  tomcat8.5                available    \
        [ =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50  =stable ]
 20  epel=latest              enabled      [ =7.11  =stable ]
 21  testing                  available    [ =1.0  =stable ]
 22  ecs                      available    [ =stable ]
 23  corretto8                available    \
        [ =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232  =1.8.0_242
          =stable ]
 24  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 25  squid4                   available    [ =4  =stable ]
  _  php7.3                   available    \
        [ =7.3.2  =7.3.3  =7.3.4  =7.3.6  =7.3.8  =7.3.9  =7.3.10
          =7.3.11  =7.3.13  =stable ]
 27  java-openjdk11           available    [ =11  =stable ]
 28  lynis                    available    [ =stable ]
 29  kernel-ng                available    [ =stable ]
 30  BCC                      available    [ =0.x  =stable ]
 31  nginx1=latest            enabled      [ =stable ]
 32  ruby2.6                  available    [ =2.6  =stable ]
 33  mock                     available    [ =stable ]
 34  postgresql11             available    [ =11  =stable ]
  _  php7.4                   available    [ =stable ]
 36  python3.8                available    [ =stable ]
 37  lustre2.10               available    [ =stable ]
 38  haproxy2                 available    [ =stable ]
 39  collectd                 available    [ =stable ]
 40  R4                       available    [ =stable ]
 41  kernel-5.4               available    [ =stable ]
 42  selinux-ng               available    [ =stable ]
 43  php8.0=latest            enabled      [ =stable ]
 44  tomcat9                  available    [ =stable ]
 45  unbound1.13              available    [ =stable ]
 46  mariadb10.5              available    [ =stable ]
 47  kernel-5.10              available    [ =stable ]
 48  redis6                   available    [ =stable ]
 49  ruby3.0                  available    [ =stable ]
 50  postgresql12             available    [ =stable ]
 51  postgresql13             available    [ =stable ]
 52  mock2                    available    [ =stable ]

# systemctl enable php-fpm
Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /usr/lib/systemd/system/php-fpm.service.
# systemctl list-unit-files | grep php
php-fpm.service                               enabled

# cp -p /etc/php-fpm.conf /etc/php-fpm.conf.org
# vi /etc/php-fpm.conf
# diff /etc/php-fpm.conf /etc/php-fpm.conf.org
20c20
< pid = /run/php-fpm/php-fpm.pid
---
> ;pid = /run/php-fpm/php-fpm.pid
26c26
< error_log = /data/log/php/fpm-error.log
---
> error_log = /var/log/php-fpm/error.log

# cp -p /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf.org
# vi /etc/php-fpm.d/www.conf
# diff /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf.org
24c24
< user = nginx
---
> user = apache
26c26
< group = nginx
---
> group = apache
38c38
< listen = 127.0.0.1:9000
---
> listen = /run/php-fpm/www.sock
55c55
< ;listen.acl_users = apache,nginx
---
> listen.acl_users = apache,nginx
114c114
< pm.start_servers = 2
---
> pm.start_servers = 5
119c119
< pm.min_spare_servers = 2
---
> pm.min_spare_servers = 5
255c255
< access.log = /data/log/php/fpm.$pool-access.log
---
> ;access.log = log/$pool.access.log
426,427c426,427
< php_value[session.save_path]    = /data/log/php/session
< php_value[soap.wsdl_cache_dir]  = /data/log/php/wsdlcache
---
> php_value[session.save_path]    = /var/lib/php/session
> php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache


# cp -p /etc/php.ini /etc/php.ini.org
# vi /etc/php.ini
# diff /etc/php.ini /etc/php.ini.org
374c374
< expose_php = Off
---
> expose_php = On
383c383
< max_execution_time = 3600
---
> max_execution_time = 30
404c404
< memory_limit = 256M
---
> memory_limit = 128M
584c584
< error_log = /data/log/php/php_errors.log
---
> ;error_log = php_errors.log
672c672
< post_max_size = 16M
---
> post_max_size = 8M
714c714
< include_path = ".:/usr/share/php:/usr/share/pear"
---
> ;include_path = ".:/php/includes"
825c825
< upload_max_filesize = 16M
---
> upload_max_filesize = 2M
902c902
< date.timezone = Asiz/Tokyo
---
> ;date.timezone =
1509c1509
< mbstring.language = Japanese
---
> ;mbstring.language = Japanese
1542c1542
< mbstring.encoding_translation = Off
---
> ;mbstring.encoding_translation = Off
1547c1547
< mbstring.detect_order = UTF-8,SJIS,EUC-JP,JIS,ASCII
---
> ;mbstring.detect_order = auto



# yum install php-pear
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                 | 3.7 kB  00:00:00
203 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-pear.noarch 1:1.10.12-5.amzn2 will be installed
--> Processing Dependency: php-xml for package: 1:php-pear-1.10.12-5.amzn2.noarch
--> Processing Dependency: php-posix for package: 1:php-pear-1.10.12-5.amzn2.noarch
--> Running transaction check
---> Package php-process.aarch64 0:8.0.6-1.amzn2 will be installed
---> Package php-xml.aarch64 0:8.0.6-1.amzn2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================
 Package             Arch            Version                      Repository                 Size
==================================================================================================
Installing:
 php-pear            noarch          1:1.10.12-5.amzn2            amzn2-core                358 k
Installing for dependencies:
 php-process         aarch64         8.0.6-1.amzn2                amzn2extra-php8.0          84 k
 php-xml             aarch64         8.0.6-1.amzn2                amzn2extra-php8.0         176 k

Transaction Summary
==================================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 618 k
Installed size: 3.8 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): php-process-8.0.6-1.amzn2.aarch64.rpm                               |  84 kB  00:00:00
(2/3): php-xml-8.0.6-1.amzn2.aarch64.rpm                                   | 176 kB  00:00:00
(3/3): php-pear-1.10.12-5.amzn2.noarch.rpm                                 | 358 kB  00:00:00
--------------------------------------------------------------------------------------------------
Total                                                             3.2 MB/s | 618 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php-process-8.0.6-1.amzn2.aarch64                                              1/3
  Installing : php-xml-8.0.6-1.amzn2.aarch64                                                  2/3
  Installing : 1:php-pear-1.10.12-5.amzn2.noarch                                              3/3
  Verifying  : 1:php-pear-1.10.12-5.amzn2.noarch                                              1/3
  Verifying  : php-xml-8.0.6-1.amzn2.aarch64                                                  2/3
  Verifying  : php-process-8.0.6-1.amzn2.aarch64                                              3/3

Installed:
  php-pear.noarch 1:1.10.12-5.amzn2

Dependency Installed:
  php-process.aarch64 0:8.0.6-1.amzn2               php-xml.aarch64 0:8.0.6-1.amzn2

Complete!
Install application binaries of mariadb 10.5 only for command
# amazon-linux-extras list  | grep maria
  _  lamp-mariadb10.2-php7.2  available    \
 46  mariadb10.5              available    [ =stable ]
# amazon-linux-extras install mariadb10.5
Installing mariadb
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-epel
              : amzn2extra-mariadb10.5 amzn2extra-nginx1
              : amzn2extra-php8.0 epel
34 metadata files removed
12 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                     | 3.7 kB     00:00
amzn2extra-docker                              | 3.0 kB     00:00
amzn2extra-epel                                | 3.0 kB     00:00
amzn2extra-mariadb10.5                         | 3.0 kB     00:00
amzn2extra-nginx1                              | 3.0 kB     00:00
amzn2extra-php8.0                              | 3.0 kB     00:00
epel/aarch64/metalink                          | 9.0 kB     00:00
epel                                           | 5.4 kB     00:00
(1/16): amzn2-core/2/aarch64/group_gz            | 2.5 kB   00:00
(2/16): amzn2-core/2/aarch64/updateinfo          | 390 kB   00:00
(3/16): amzn2extra-epel/2/aarch64/primary_db     | 1.8 kB   00:00
(4/16): amzn2extra-mariadb10.5/2/aarch64/updatei |   76 B   00:00
(5/16): amzn2extra-docker/2/aarch64/updateinfo   |   76 B   00:00
(6/16): amzn2extra-epel/2/aarch64/updateinfo     |   76 B   00:00
(7/16): amzn2extra-nginx1/2/aarch64/updateinfo   |   76 B   00:00
(8/16): amzn2extra-docker/2/aarch64/primary_db   |  57 kB   00:00
(9/16): amzn2extra-mariadb10.5/2/aarch64/primary |  76 kB   00:00
(10/16): amzn2extra-nginx1/2/aarch64/primary_db  |  35 kB   00:00
(11/16): amzn2extra-php8.0/2/aarch64/primary_db  |  78 kB   00:00
(12/16): amzn2extra-php8.0/2/aarch64/updateinfo  |   76 B   00:00
(13/16): epel/aarch64/group_gz                   |  88 kB   00:00
(14/16): epel/aarch64/updateinfo                 | 1.0 MB   00:00
(15/16): epel/aarch64/primary_db                 | 6.6 MB   00:00
(16/16): amzn2-core/2/aarch64/primary_db         |  37 MB   00:00
209 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mariadb.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: mariadb-server(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-libs(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-common(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-10.5.10-2.amzn2.0.1.aarch64
--> Running transaction check
---> Package mariadb-common.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: /etc/my.cnf for package: 3:mariadb-common-10.5.10-2.amzn2.0.1.aarch64
---> Package mariadb-libs.aarch64 1:5.5.68-1.amzn2 will be updated
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.amzn2.0.3.aarch64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.amzn2.0.3.aarch64
---> Package mariadb-libs.aarch64 3:10.5.10-2.amzn2.0.1 will be an update
---> Package mariadb-server.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: mariadb-sphinx-engine(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-server-utils(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-pam(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-oqgraph-engine(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-gssapi-server(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-errmsg(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-cracklib-password-check(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-connect-engine(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mariadb-backup(aarch-64) = 3:10.5.10-2.amzn2.0.1 for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: mytop for package: 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64
--> Running transaction check
---> Package mariadb-backup.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-config.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-connect-engine.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-cracklib-password-check.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-devel.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: openssl-devel for package: 3:mariadb-devel-10.5.10-2.amzn2.0.1.aarch64
---> Package mariadb-errmsg.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-gssapi-server.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-oqgraph-engine.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: libJudy.so.1()(64bit) for package: 3:mariadb-oqgraph-engine-10.5.10-2.amzn2.0.1.aarch64
---> Package mariadb-pam.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
---> Package mariadb-server-utils.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: perl(Data::Dumper) for package: 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: perl(DBI) for package: 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: perl(DBI) for package: 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: perl(DBD::mysql) for package: 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aarch64
---> Package mariadb-sphinx-engine.aarch64 3:10.5.10-2.amzn2.0.1 will be installed
--> Processing Dependency: sphinx for package: 3:mariadb-sphinx-engine-10.5.10-2.amzn2.0.1.aarch64
--> Processing Dependency: libsphinxclient for package: 3:mariadb-sphinx-engine-10.5.10-2.amzn2.0.1.aarch64
---> Package mytop.noarch 0:1.7-20.b737f60.amzn2 will be installed
--> Running transaction check
---> Package Judy.aarch64 0:1.0.5-8.amzn2.0.1 will be installed
---> Package libsphinxclient.aarch64 0:2.2.11-5.amzn2.0.1 will be installed
---> Package openssl-devel.aarch64 1:1.0.2k-19.amzn2.0.6 will be installed
--> Processing Dependency: zlib-devel(aarch-64) for package: 1:openssl-devel-1.0.2k-19.amzn2.0.6.aarch64
--> Processing Dependency: krb5-devel(aarch-64) for package: 1:openssl-devel-1.0.2k-19.amzn2.0.6.aarch64
---> Package perl-DBD-MySQL.aarch64 0:4.023-6.amzn2 will be installed
---> Package perl-DBI.aarch64 0:1.627-4.amzn2.0.2 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.amzn2.0.2.aarch64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.amzn2.0.2.aarch64
---> Package perl-Data-Dumper.aarch64 0:2.145-3.amzn2.0.2 will be installed
---> Package sphinx.aarch64 0:2.2.11-5.amzn2.0.1 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: sphinx-2.2.11-5.amzn2.0.1.aarch64
--> Running transaction check
---> Package krb5-devel.aarch64 0:1.15.1-37.amzn2.2.2 will be installed
--> Processing Dependency: libkadm5(aarch-64) = 1.15.1-37.amzn2.2.2 for package: krb5-devel-1.15.1-37.amzn2.2.2.aarch64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.amzn2.2.2.aarch64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37.amzn2.2.2.aarch64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37.amzn2.2.2.aarch64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-37.amzn2.2.2.aarch64
---> Package perl-PlRPC.noarch 0:0.2020-14.amzn2 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.amzn2.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.amzn2.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.amzn2.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.amzn2.noarch
---> Package postgresql-libs.aarch64 0:9.2.24-6.amzn2 will be installed
---> Package zlib-devel.aarch64 0:1.2.7-18.amzn2 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.aarch64 0:1.5.8-3.amzn2.0.2 will be installed
---> Package libcom_err-devel.aarch64 0:1.42.9-19.amzn2 will be installed
---> Package libkadm5.aarch64 0:1.15.1-37.amzn2.2.2 will be installed
---> Package libselinux-devel.aarch64 0:2.5-12.amzn2.0.2 will be installed
--> Processing Dependency: libsepol-devel(aarch-64) >= 2.5-6 for package: libselinux-devel-2.5-12.amzn2.0.2.aarch64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-12.amzn2.0.2.aarch64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-12.amzn2.0.2.aarch64
---> Package libverto-devel.aarch64 0:0.2.5-4.amzn2.0.2 will be installed
---> Package perl-IO-Compress.noarch 0:2.061-2.amzn2 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.amzn2.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.amzn2.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.amzn2 will be installed
--> Running transaction check
---> Package libsepol-devel.aarch64 0:2.5-8.1.amzn2.0.2 will be installed
---> Package pcre-devel.aarch64 0:8.32-17.amzn2.0.2 will be installed
---> Package perl-Compress-Raw-Bzip2.aarch64 0:2.061-3.amzn2.0.2 will be installed
---> Package perl-Compress-Raw-Zlib.aarch64 1:2.061-4.amzn2.0.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================
 Package               Arch    Version               Repository  Size
======================================================================
Installing:
 mariadb               aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                6.1 M
Installing for dependencies:
 Judy                  aarch64 1.0.5-8.amzn2.0.1     amzn2extra-mariadb10.5
                                                                124 k
 keyutils-libs-devel   aarch64 1.5.8-3.amzn2.0.2     amzn2-core  37 k
 krb5-devel            aarch64 1.15.1-37.amzn2.2.2   amzn2-core 271 k
 libcom_err-devel      aarch64 1.42.9-19.amzn2       amzn2-core  32 k
 libkadm5              aarch64 1.15.1-37.amzn2.2.2   amzn2-core 182 k
 libselinux-devel      aarch64 2.5-12.amzn2.0.2      amzn2-core 187 k
 libsepol-devel        aarch64 2.5-8.1.amzn2.0.2     amzn2-core  77 k
 libsphinxclient       aarch64 2.2.11-5.amzn2.0.1    amzn2extra-mariadb10.5
                                                                130 k
 libverto-devel        aarch64 0.2.5-4.amzn2.0.2     amzn2-core  12 k
 mariadb-backup        aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                6.7 M
 mariadb-common        aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 71 k
 mariadb-config        aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 45 k
 mariadb-connect-engine
                       aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                542 k
 mariadb-cracklib-password-check
                       aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 49 k
 mariadb-devel         aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                1.2 M
 mariadb-errmsg        aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                237 k
 mariadb-gssapi-server aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 51 k
 mariadb-oqgraph-engine
                       aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                109 k
 mariadb-pam           aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 54 k
 mariadb-server        aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 18 M
 mariadb-server-utils  aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                1.2 M
 mariadb-sphinx-engine aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                 96 k
 mytop                 noarch  1.7-20.b737f60.amzn2  amzn2extra-mariadb10.5
                                                                 35 k
 openssl-devel         aarch64 1:1.0.2k-19.amzn2.0.6 amzn2-core 1.5 M
 pcre-devel            aarch64 8.32-17.amzn2.0.2     amzn2-core 480 k
 perl-Compress-Raw-Bzip2
                       aarch64 2.061-3.amzn2.0.2     amzn2-core  33 k
 perl-Compress-Raw-Zlib
                       aarch64 1:2.061-4.amzn2.0.2   amzn2-core  57 k
 perl-DBD-MySQL        aarch64 4.023-6.amzn2         amzn2-core 139 k
 perl-DBI              aarch64 1.627-4.amzn2.0.2     amzn2-core 801 k
 perl-Data-Dumper      aarch64 2.145-3.amzn2.0.2     amzn2-core  47 k
 perl-IO-Compress      noarch  2.061-2.amzn2         amzn2-core 260 k
 perl-Net-Daemon       noarch  0.48-5.amzn2          amzn2-core  51 k
 perl-PlRPC            noarch  0.2020-14.amzn2       amzn2-core  36 k
 postgresql-libs       aarch64 9.2.24-6.amzn2        amzn2-core 233 k
 sphinx                aarch64 2.2.11-5.amzn2.0.1    amzn2extra-mariadb10.5
                                                                4.6 M
 zlib-devel            aarch64 1.2.7-18.amzn2        amzn2-core  50 k
Updating for dependencies:
 mariadb-libs          aarch64 3:10.5.10-2.amzn2.0.1 amzn2extra-mariadb10.5
                                                                155 k

Transaction Summary
======================================================================
Install  1 Package  (+36 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 44 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/38): keyutils-libs-devel-1.5.8-3.amzn2.0.2.aa |  37 kB   00:00
(2/38): libcom_err-devel-1.42.9-19.amzn2.aarch64 |  32 kB   00:00
(3/38): krb5-devel-1.15.1-37.amzn2.2.2.aarch64.r | 271 kB   00:00
(4/38): Judy-1.0.5-8.amzn2.0.1.aarch64.rpm       | 124 kB   00:00
(5/38): libkadm5-1.15.1-37.amzn2.2.2.aarch64.rpm | 182 kB   00:00
(6/38): libselinux-devel-2.5-12.amzn2.0.2.aarch6 | 187 kB   00:00
(7/38): libverto-devel-0.2.5-4.amzn2.0.2.aarch64 |  12 kB   00:00
(8/38): libsepol-devel-2.5-8.1.amzn2.0.2.aarch64 |  77 kB   00:00
(9/38): libsphinxclient-2.2.11-5.amzn2.0.1.aarch | 130 kB   00:00
(10/38): mariadb-backup-10.5.10-2.amzn2.0.1.aarc | 6.7 MB   00:00
(11/38): mariadb-10.5.10-2.amzn2.0.1.aarch64.rpm | 6.1 MB   00:00
(12/38): mariadb-common-10.5.10-2.amzn2.0.1.aarc |  71 kB   00:00
(13/38): mariadb-config-10.5.10-2.amzn2.0.1.aarc |  45 kB   00:00
(14/38): mariadb-cracklib-password-check-10.5.10 |  49 kB   00:00
(15/38): mariadb-connect-engine-10.5.10-2.amzn2. | 542 kB   00:00
(16/38): mariadb-devel-10.5.10-2.amzn2.0.1.aarch | 1.2 MB   00:00
(17/38): mariadb-errmsg-10.5.10-2.amzn2.0.1.aarc | 237 kB   00:00
(18/38): mariadb-gssapi-server-10.5.10-2.amzn2.0 |  51 kB   00:00
(19/38): mariadb-oqgraph-engine-10.5.10-2.amzn2. | 109 kB   00:00
(20/38): mariadb-libs-10.5.10-2.amzn2.0.1.aarch6 | 155 kB   00:00
(21/38): mariadb-pam-10.5.10-2.amzn2.0.1.aarch64 |  54 kB   00:00
(22/38): mariadb-server-utils-10.5.10-2.amzn2.0. | 1.2 MB   00:00
(23/38): mariadb-sphinx-engine-10.5.10-2.amzn2.0 |  96 kB   00:00
(24/38): mytop-1.7-20.b737f60.amzn2.noarch.rpm   |  35 kB   00:00
(25/38): openssl-devel-1.0.2k-19.amzn2.0.6.aarch | 1.5 MB   00:00
(26/38): pcre-devel-8.32-17.amzn2.0.2.aarch64.rp | 480 kB   00:00
(27/38): perl-Compress-Raw-Zlib-2.061-4.amzn2.0. |  57 kB   00:00
(28/38): perl-Compress-Raw-Bzip2-2.061-3.amzn2.0 |  33 kB   00:00
(29/38): perl-DBI-1.627-4.amzn2.0.2.aarch64.rpm  | 801 kB   00:00
(30/38): perl-DBD-MySQL-4.023-6.amzn2.aarch64.rp | 139 kB   00:00
(31/38): perl-Data-Dumper-2.145-3.amzn2.0.2.aarc |  47 kB   00:00
(32/38): perl-IO-Compress-2.061-2.amzn2.noarch.r | 260 kB   00:00
(33/38): perl-PlRPC-0.2020-14.amzn2.noarch.rpm   |  36 kB   00:00
(34/38): perl-Net-Daemon-0.48-5.amzn2.noarch.rpm |  51 kB   00:00
(35/38): zlib-devel-1.2.7-18.amzn2.aarch64.rpm   |  50 kB   00:00
(36/38): postgresql-libs-9.2.24-6.amzn2.aarch64. | 233 kB   00:00
(37/38): mariadb-server-10.5.10-2.amzn2.0.1.aarc |  18 MB   00:00
(38/38): sphinx-2.2.11-5.amzn2.0.1.aarch64.rpm   | 4.6 MB   00:00
----------------------------------------------------------------------
Total                                     27 MB/s |  44 MB  00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 3:mariadb-config-10.5.10-2.amzn2.0.1.aarch64      1/39
  Installing : 3:mariadb-common-10.5.10-2.amzn2.0.1.aarch64      2/39
  Updating   : 3:mariadb-libs-10.5.10-2.amzn2.0.1.aarch64        3/39
  Installing : perl-Data-Dumper-2.145-3.amzn2.0.2.aarch64        4/39
  Installing : 3:mariadb-errmsg-10.5.10-2.amzn2.0.1.aarch64      5/39
  Installing : Judy-1.0.5-8.amzn2.0.1.aarch64                    6/39
  Installing : libkadm5-1.15.1-37.amzn2.2.2.aarch64              7/39
  Installing : perl-Net-Daemon-0.48-5.amzn2.noarch               8/39
  Installing : postgresql-libs-9.2.24-6.amzn2.aarch64            9/39
  Installing : perl-Compress-Raw-Bzip2-2.061-3.amzn2.0.2.aarc   10/39
  Installing : libsepol-devel-2.5-8.1.amzn2.0.2.aarch64         11/39
  Installing : libsphinxclient-2.2.11-5.amzn2.0.1.aarch64       12/39
  Installing : 1:perl-Compress-Raw-Zlib-2.061-4.amzn2.0.2.aar   13/39
  Installing : perl-IO-Compress-2.061-2.amzn2.noarch            14/39
  Installing : perl-PlRPC-0.2020-14.amzn2.noarch                15/39
  Installing : perl-DBI-1.627-4.amzn2.0.2.aarch64               16/39
  Installing : libverto-devel-0.2.5-4.amzn2.0.2.aarch64         17/39
  Installing : keyutils-libs-devel-1.5.8-3.amzn2.0.2.aarch64    18/39
  Installing : zlib-devel-1.2.7-18.amzn2.aarch64                19/39
  Installing : libcom_err-devel-1.42.9-19.amzn2.aarch64         20/39
  Installing : pcre-devel-8.32-17.amzn2.0.2.aarch64             21/39
  Installing : libselinux-devel-2.5-12.amzn2.0.2.aarch64        22/39
  Installing : krb5-devel-1.15.1-37.amzn2.2.2.aarch64           23/39
  Installing : 1:openssl-devel-1.0.2k-19.amzn2.0.6.aarch64      24/39
  Installing : 3:mariadb-devel-10.5.10-2.amzn2.0.1.aarch64      25/39
  Installing : perl-DBD-MySQL-4.023-6.amzn2.aarch64             26/39
  Installing : mytop-1.7-20.b737f60.amzn2.noarch                27/39
  Installing : sphinx-2.2.11-5.amzn2.0.1.aarch64                28/39
  Installing : 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aar   29/39
  Installing : 3:mariadb-10.5.10-2.amzn2.0.1.aarch64            30/39
  Installing : 3:mariadb-connect-engine-10.5.10-2.amzn2.0.1.a   31/39
  Installing : 3:mariadb-cracklib-password-check-10.5.10-2.am   32/39
  Installing : 3:mariadb-backup-10.5.10-2.amzn2.0.1.aarch64      33/39
  Installing : 3:mariadb-gssapi-server-10.5.10-2.amzn2.0.1.aar   34/39
  Installing : 3:mariadb-sphinx-engine-10.5.10-2.amzn2.0.1.aar   35/39
  Installing : 3:mariadb-oqgraph-engine-10.5.10-2.amzn2.0.1.aa   36/39
  Installing : 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64                                  37/39
  Installing : 3:mariadb-pam-10.5.10-2.amzn2.0.1.aarch64                                     38/39
  Cleanup    : 1:mariadb-libs-5.5.68-1.amzn2.aarch64                                         39/39
  Verifying  : 3:mariadb-oqgraph-engine-10.5.10-2.amzn2.0.1.aarch64                           1/39
  Verifying  : pcre-devel-8.32-17.amzn2.0.2.aarch64                                           2/39
  Verifying  : libselinux-devel-2.5-12.amzn2.0.2.aarch64                                      3/39
  Verifying  : libcom_err-devel-1.42.9-19.amzn2.aarch64                                       4/39
  Verifying  : zlib-devel-1.2.7-18.amzn2.aarch64                                              5/39
  Verifying  : keyutils-libs-devel-1.5.8-3.amzn2.0.2.aarch64                                  6/39
  Verifying  : 3:mariadb-libs-10.5.10-2.amzn2.0.1.aarch64                                     7/39
  Verifying  : perl-PlRPC-0.2020-14.amzn2.noarch                                              8/39
  Verifying  : libverto-devel-0.2.5-4.amzn2.0.2.aarch64                                       9/39
  Verifying  : sphinx-2.2.11-5.amzn2.0.1.aarch64                                             10/39
  Verifying  : mytop-1.7-20.b737f60.amzn2.noarch                                             11/39
  Verifying  : 1:perl-Compress-Raw-Zlib-2.061-4.amzn2.0.2.aarch64                            12/39
  Verifying  : 3:mariadb-server-utils-10.5.10-2.amzn2.0.1.aarch64                            13/39
  Verifying  : libsphinxclient-2.2.11-5.amzn2.0.1.aarch64                                    14/39
  Verifying  : 3:mariadb-10.5.10-2.amzn2.0.1.aarch64                                         15/39
  Verifying  : 3:mariadb-connect-engine-10.5.10-2.amzn2.0.1.aarch64                          16/39
  Verifying  : libsepol-devel-2.5-8.1.amzn2.0.2.aarch64                                      17/39
  Verifying  : perl-Data-Dumper-2.145-3.amzn2.0.2.aarch64                                    18/39
  Verifying  : 1:openssl-devel-1.0.2k-19.amzn2.0.6.aarch64                                   19/39
  Verifying  : 3:mariadb-config-10.5.10-2.amzn2.0.1.aarch64                                  20/39
  Verifying  : 3:mariadb-common-10.5.10-2.amzn2.0.1.aarch64                                  21/39
  Verifying  : krb5-devel-1.15.1-37.amzn2.2.2.aarch64                                        22/39
  Verifying  : 3:mariadb-pam-10.5.10-2.amzn2.0.1.aarch64                                     23/39
  Verifying  : 3:mariadb-errmsg-10.5.10-2.amzn2.0.1.aarch64                                  24/39
  Verifying  : perl-Compress-Raw-Bzip2-2.061-3.amzn2.0.2.aarch64                             25/39
  Verifying  : perl-IO-Compress-2.061-2.amzn2.noarch                                         26/39
  Verifying  : perl-DBD-MySQL-4.023-6.amzn2.aarch64                                          27/39
  Verifying  : postgresql-libs-9.2.24-6.amzn2.aarch64                                        28/39
  Verifying  : 3:mariadb-cracklib-password-check-10.5.10-2.amzn2.0.1.aarch64                 29/39
  Verifying  : perl-DBI-1.627-4.amzn2.0.2.aarch64                                            30/39
  Verifying  : perl-Net-Daemon-0.48-5.amzn2.noarch                                           31/39
  Verifying  : 3:mariadb-backup-10.5.10-2.amzn2.0.1.aarch64                                  32/39
  Verifying  : 3:mariadb-gssapi-server-10.5.10-2.amzn2.0.1.aarch64                           33/39
  Verifying  : libkadm5-1.15.1-37.amzn2.2.2.aarch64                                          34/39
  Verifying  : 3:mariadb-sphinx-engine-10.5.10-2.amzn2.0.1.aarch64                           35/39
  Verifying  : Judy-1.0.5-8.amzn2.0.1.aarch64                                                36/39
  Verifying  : 3:mariadb-devel-10.5.10-2.amzn2.0.1.aarch64                                   37/39
  Verifying  : 3:mariadb-server-10.5.10-2.amzn2.0.1.aarch64                                  38/39
  Verifying  : 1:mariadb-libs-5.5.68-1.amzn2.aarch64                                         39/39

Installed:
  mariadb.aarch64 3:10.5.10-2.amzn2.0.1

Dependency Installed:
  Judy.aarch64 0:1.0.5-8.amzn2.0.1
  keyutils-libs-devel.aarch64 0:1.5.8-3.amzn2.0.2
  krb5-devel.aarch64 0:1.15.1-37.amzn2.2.2
  libcom_err-devel.aarch64 0:1.42.9-19.amzn2
  libkadm5.aarch64 0:1.15.1-37.amzn2.2.2
  libselinux-devel.aarch64 0:2.5-12.amzn2.0.2
  libsepol-devel.aarch64 0:2.5-8.1.amzn2.0.2
  libsphinxclient.aarch64 0:2.2.11-5.amzn2.0.1
  libverto-devel.aarch64 0:0.2.5-4.amzn2.0.2
  mariadb-backup.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-common.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-config.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-connect-engine.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-cracklib-password-check.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-devel.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-errmsg.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-gssapi-server.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-oqgraph-engine.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-pam.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-server.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-server-utils.aarch64 3:10.5.10-2.amzn2.0.1
  mariadb-sphinx-engine.aarch64 3:10.5.10-2.amzn2.0.1
  mytop.noarch 0:1.7-20.b737f60.amzn2
  openssl-devel.aarch64 1:1.0.2k-19.amzn2.0.6
  pcre-devel.aarch64 0:8.32-17.amzn2.0.2
  perl-Compress-Raw-Bzip2.aarch64 0:2.061-3.amzn2.0.2
  perl-Compress-Raw-Zlib.aarch64 1:2.061-4.amzn2.0.2
  perl-DBD-MySQL.aarch64 0:4.023-6.amzn2
  perl-DBI.aarch64 0:1.627-4.amzn2.0.2
  perl-Data-Dumper.aarch64 0:2.145-3.amzn2.0.2
  perl-IO-Compress.noarch 0:2.061-2.amzn2
  perl-Net-Daemon.noarch 0:0.48-5.amzn2
  perl-PlRPC.noarch 0:0.2020-14.amzn2
  postgresql-libs.aarch64 0:9.2.24-6.amzn2
  sphinx.aarch64 0:2.2.11-5.amzn2.0.1
  zlib-devel.aarch64 0:1.2.7-18.amzn2

Dependency Updated:
  mariadb-libs.aarch64 3:10.5.10-2.amzn2.0.1

Complete!
  0  ansible2                 available    [ =2.4.6  =2.8  =stable ]
  1  httpd_modules            available    [ =1.0  =stable ]
  2  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  4  postgresql9.6            available    [ =9.6.8  =stable ]
  5  postgresql10             available    [ =10  =stable ]
 ..snip

# systemctl list-unit-files | grep maria
mariadb.service                               disabled
mariadb@.service                              disabled

#no boot, ok. but I can use mysql commands
$ mysqlshow
+--------------------+
|     Databases      |
+--------------------+
| 138mitakai         |
| EBUTLAB            |
| EBUTLAB_RM         |
| KOJIMA.TOKYO       |
...
Environments …
# cd /data/log/ 
# mkdir _bak
# mv nginx php _bak/
# mkdir {nginx,php}
# chown root.nginx {nginx,php}
# chmod 775 {nginx,php}
# ll
total 0
drwxr-xr-x 4 root root  30 Jun 27 17:10 _bak
drwxrwxr-x 2 root nginx  6 Jun 27 17:10 nginx
drwxrwxr-x 2 root nginx  6 Jun 27 17:10 php

# cd /data/log/php
# mkdir {session,wsdlcache}
# chown root.nginx {session,wsdlcache}
# chmod 775 {session,wsdlcache}
# ll
total 0
drwxrwxr-x 2 root nginx 6 Jun 27 17:23 session
drwxrwxr-x 2 root nginx 6 Jun 27 17:23 wsdlcache


# systemctl enable nginx
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.

# cd /etc/nginx/conf.d/
[root@ip-172-31-39-224 conf.d]# ll
total 4
-rw-r--r-- 1 root root 136 May 14 07:43 php-fpm.conf
[root@ip-172-31-39-224 conf.d]# cp /dataS3/backup/../.org.aws.conf .
Logrotate …
$ rpm -aq | grep logro
logrotate-3.8.6-15.amzn2.aarch64
$ mkdir /etc/logrotate.d.org
$ cp -p /etc/logrotate.d/nginx /etc/logrotate.d.org/
$ ema /etc/logrotate.d/nginx
/data/log/nginx/*log {
    create 0664 nginx root
    daily
    rotate 24
    su nginx nginx
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
        /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
    endscript

    lastaction
	HOSTNAME=`hostname`
	filename=$1
	today=`date +"%Y%m%d"`
	echo "uploading ${filename}" > /dataS3/backup/LOG/nginx/recent.log
	for f in `ls -l ${filename}`; do
	    upload_file="${f}-${today}.gz"
	    mv ${upload_file} /data/S3/backup/LOG/nginx/ >> /var/log/logrotate.nginx 2>&1
        done
    endscript
}



$ cp -p /etc/logrotate.d/php-fpm /etc/logrotate.d.org/
$ ema /etc/logrotate.d/php-fpm
/data/log/php/*log {
    create 0600 root root
    daily
    rotate 24
    su root root
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
	/bin/kill -SIGUSR1 `cat /run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
    endscript

    lastaction
	HOSTNAME=`hostname`
	filename=$1
	today=`date +"%Y%m%d"`
	echo "uploading ${filename}" > /dataS3/backup/LOG/php/recent.log
	for f in `ls -l ${filename}`; do
	    upload_file="${f}-${today}.gz"
	    mv ${upload_file} /data/S3/backup/LOG/php/ >> /var/log/logrotate.php 2>&1
        done
    endscript
}

$ rm /etc/logrotate.d/*~
rm: remove regular file ‘/etc/logrotate.d/nginx~’? y
rm: remove regular file ‘/etc/logrotate.d/php-fpm~’? y
PHP8 …
$ rpm -aq | grep php
php-fpm-8.0.6-1.amzn2.aarch64
php-pear-1.10.12-5.amzn2.noarch
php-common-8.0.6-1.amzn2.aarch64
php-mysqlnd-8.0.6-1.amzn2.aarch64
php-cli-8.0.6-1.amzn2.aarch64
php-xml-8.0.6-1.amzn2.aarch64
php-pdo-8.0.6-1.amzn2.aarch64
php-process-8.0.6-1.amzn2.aarch64


$ yum install php-intl php-json php-gd php-mbstring php-opcache
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                        | 3.7 kB  00:00:00
amzn2extra-docker                                                 | 3.0 kB  00:00:00
amzn2extra-epel                                                   | 3.0 kB  00:00:00
amzn2extra-mariadb10.5                                            | 3.0 kB  00:00:00
amzn2extra-nginx1                                                 | 3.0 kB  00:00:00
amzn2extra-php8.0                                                 | 3.0 kB  00:00:00
epel/aarch64/metalink                                             | 9.0 kB  00:00:00
209 packages excluded due to repository priority protections
Package php-common-8.0.6-1.amzn2.aarch64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package php-gd.aarch64 0:8.0.6-1.amzn2 will be installed
---> Package php-intl.aarch64 0:8.0.6-1.amzn2 will be installed
---> Package php-mbstring.aarch64 0:8.0.6-1.amzn2 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: php-mbstring-8.0.6-1.amzn2.aarch64
---> Package php-opcache.aarch64 0:8.0.6-1.amzn2 will be installed
--> Running transaction check
---> Package oniguruma.aarch64 0:5.9.6-1.amzn2.0.4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
 Package            Arch          Version                  Repository               Size
=========================================================================================
Installing:
 php-gd             aarch64       8.0.6-1.amzn2            amzn2extra-php8.0       166 k
 php-intl           aarch64       8.0.6-1.amzn2            amzn2extra-php8.0       180 k
 php-mbstring       aarch64       8.0.6-1.amzn2            amzn2extra-php8.0       474 k
 php-opcache        aarch64       8.0.6-1.amzn2            amzn2extra-php8.0       258 k
Installing for dependencies:
 oniguruma          aarch64       5.9.6-1.amzn2.0.4        amzn2-core              128 k

Transaction Summary
=========================================================================================
Install  4 Packages (+1 Dependent package)

Total download size: 1.2 M
Installed size: 5.5 M
Is this ok [y/d/N]: y

Downloading packages:
(1/5): oniguruma-5.9.6-1.amzn2.0.4.aarch64.rpm                    | 128 kB  00:00:00
(2/5): php-intl-8.0.6-1.amzn2.aarch64.rpm                         | 180 kB  00:00:00
(3/5): php-gd-8.0.6-1.amzn2.aarch64.rpm                           | 166 kB  00:00:00
(4/5): php-mbstring-8.0.6-1.amzn2.aarch64.rpm                     | 474 kB  00:00:00
(5/5): php-opcache-8.0.6-1.amzn2.aarch64.rpm                      | 258 kB  00:00:00
-----------------------------------------------------------------------------------------
Total                                                       3.5 MB/s | 1.2 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : oniguruma-5.9.6-1.amzn2.0.4.aarch64                                   1/5
  Installing : php-mbstring-8.0.6-1.amzn2.aarch64                                    2/5
  Installing : php-gd-8.0.6-1.amzn2.aarch64                                          3/5
  Installing : php-opcache-8.0.6-1.amzn2.aarch64                                     4/5
  Installing : php-intl-8.0.6-1.amzn2.aarch64                                        5/5
  Verifying  : php-intl-8.0.6-1.amzn2.aarch64                                        1/5
  Verifying  : php-mbstring-8.0.6-1.amzn2.aarch64                                    2/5
  Verifying  : oniguruma-5.9.6-1.amzn2.0.4.aarch64                                   3/5
  Verifying  : php-opcache-8.0.6-1.amzn2.aarch64                                     4/5
  Verifying  : php-gd-8.0.6-1.amzn2.aarch64                                          5/5

Installed:
  php-gd.aarch64 0:8.0.6-1.amzn2              php-intl.aarch64 0:8.0.6-1.amzn2
  php-mbstring.aarch64 0:8.0.6-1.amzn2        php-opcache.aarch64 0:8.0.6-1.amzn2

Dependency Installed:
  oniguruma.aarch64 0:5.9.6-1.amzn2.0.4

Complete!


php-json is available in Amazon Linux Extra topics "php7.2" and "lamp-mariadb10.2-php7.2" and "php7.3" and "php7.4"

To use, run
# sudo amazon-linux-extras install :topic:

Learn more at
https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras