この記事は3分30秒で読めます。

皆さん、こんにちは! EC-CUBERの木下です。

本日は、前回ご紹介した「Amazon Linux2にEC-CUBE4.0.4をインストールする手順1」の続きをご紹介したいと思います。
▼関連記事:Amazon Linux2にEC-CUBE4.0.4をインストールする手順~1~
https://ec-cuber.jp/news-column/column09/
前回のおさらいをしたい方は、こちらの記事も合わせてご覧ください^^

本日は、下記3STEPをこなしていきましょう!

手順

PHP+ミドルウェアのインストール

  1. rootユーザーのままコマンドを実行
PHP7.2のインストール(EC-CUBEに必須のライブラリもある程度追加される)
[root@ip-X-X-X-X ~]# amazon-linux-extras install -y php7.2
Installing php-pdo, php-fpm, php-mysqlnd, php-cli, php-json
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-php7.2
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-php7.2                                                                          | 3.0 kB  00:00:00
(1/7): amzn2-core/2/x86_64/group_gz                                                        | 2.5 kB  00:00:00
(2/7): amzn2-core/2/x86_64/updateinfo                                                      | 245 kB  00:00:00
(3/7): amzn2extra-php7.2/2/x86_64/primary_db                                               | 544 kB  00:00:00
(4/7): amzn2extra-docker/2/x86_64/updateinfo                                               |   69 B  00:00:00
(5/7): amzn2extra-php7.2/2/x86_64/updateinfo                                               |   69 B  00:00:00
(6/7): amzn2extra-docker/2/x86_64/primary_db                                               |  68 kB  00:00:00
(7/7): amzn2-core/2/x86_64/primary_db                                                      |  43 MB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: php-common(x86-64) = 7.2.31-1.amzn2 for package: php-cli-7.2.31-1.amzn2.x86_64
---> Package php-fpm.x86_64 0:7.2.31-1.amzn2 will be installed
---> Package php-json.x86_64 0:7.2.31-1.amzn2 will be installed
---> Package php-mysqlnd.x86_64 0:7.2.31-1.amzn2 will be installed
---> Package php-pdo.x86_64 0:7.2.31-1.amzn2 will be installed
--> Running transaction check
---> Package php-common.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: libzip.so.5()(64bit) for package: php-common-7.2.31-1.amzn2.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:1.3.2-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                  Arch                Version                        Repository                      Size
==================================================================================================================
Installing:
 php-cli                  x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2              4.4 M
 php-fpm                  x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2              1.5 M
 php-json                 x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2               71 k
 php-mysqlnd              x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2              238 k
 php-pdo                  x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2              132 k
Installing for dependencies:
 libzip                   x86_64              1.3.2-1.amzn2.0.1              amzn2-core                      62 k
 php-common               x86_64              7.2.31-1.amzn2                 amzn2extra-php7.2              1.1 M

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

Total download size: 7.5 M
Installed size: 31 M
Downloading packages:
(1/7): libzip-1.3.2-1.amzn2.0.1.x86_64.rpm                                                 |  62 kB  00:00:00
(2/7): php-cli-7.2.31-1.amzn2.x86_64.rpm                                                   | 4.4 MB  00:00:00
(3/7): php-common-7.2.31-1.amzn2.x86_64.rpm                                                | 1.1 MB  00:00:00
(4/7): php-json-7.2.31-1.amzn2.x86_64.rpm                                                  |  71 kB  00:00:00
(5/7): php-fpm-7.2.31-1.amzn2.x86_64.rpm                                                   | 1.5 MB  00:00:00
(6/7): php-mysqlnd-7.2.31-1.amzn2.x86_64.rpm                                               | 238 kB  00:00:00
(7/7): php-pdo-7.2.31-1.amzn2.x86_64.rpm                                                   | 132 kB  00:00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                              13 MB/s | 7.5 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libzip-1.3.2-1.amzn2.0.1.x86_64                                                                1/7
  Installing : php-json-7.2.31-1.amzn2.x86_64                                                                 2/7
  Installing : php-common-7.2.31-1.amzn2.x86_64                                                               3/7
  Installing : php-pdo-7.2.31-1.amzn2.x86_64                                                                  4/7
  Installing : php-mysqlnd-7.2.31-1.amzn2.x86_64                                                              5/7
  Installing : php-cli-7.2.31-1.amzn2.x86_64                                                                  6/7
  Installing : php-fpm-7.2.31-1.amzn2.x86_64                                                                  7/7
  Verifying  : php-common-7.2.31-1.amzn2.x86_64                                                               1/7
  Verifying  : php-json-7.2.31-1.amzn2.x86_64                                                                 2/7
  Verifying  : php-mysqlnd-7.2.31-1.amzn2.x86_64                                                              3/7
  Verifying  : php-pdo-7.2.31-1.amzn2.x86_64                                                                  4/7
  Verifying  : php-cli-7.2.31-1.amzn2.x86_64                                                                  5/7
  Verifying  : libzip-1.3.2-1.amzn2.0.1.x86_64                                                                6/7
  Verifying  : php-fpm-7.2.31-1.amzn2.x86_64                                                                  7/7

Installed:
  php-cli.x86_64 0:7.2.31-1.amzn2         php-fpm.x86_64 0:7.2.31-1.amzn2     php-json.x86_64 0:7.2.31-1.amzn2
  php-mysqlnd.x86_64 0:7.2.31-1.amzn2     php-pdo.x86_64 0:7.2.31-1.amzn2

Dependency Installed:
  libzip.x86_64 0:1.3.2-1.amzn2.0.1                       php-common.x86_64 0:7.2.31-1.amzn2

Complete!
  0  ansible2                 available    \
        [ =2.4.2  =2.4.6  =2.8  =stable ]
  2  httpd_modules            available    [ =1.0  =stable ]
  3  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  5  postgresql9.6            available    \
        [ =9.6.6  =9.6.8  =stable ]
  6  postgresql10             available    [ =10  =stable ]
  8  redis4.0                 available    \
        [ =4.0.5  =4.0.10  =stable ]
  9  R3.4                     available    [ =3.4.3  =stable ]
 10  rust1                    available    \
        [ =1.22.1  =1.26.0  =1.26.1  =1.27.2  =1.31.0  =1.38.0
          =stable ]
 11  vim                      available    [ =8.0  =stable ]
 13  ruby2.4                  available    \
        [ =2.4.2  =2.4.4  =2.4.7  =stable ]
 15  php7.2=latest            enabled      \
        [ =7.2.0  =7.2.4  =7.2.5  =7.2.8  =7.2.11  =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 ]
 17  lamp-mariadb10.2-php7.2  available    \
        [ =10.2.10_7.2.0  =10.2.10_7.2.4  =10.2.10_7.2.5
          =10.2.10_7.2.8  =10.2.10_7.2.11  =10.2.10_7.2.13
          =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 ]
 18  libreoffice              available    \
        [ =5.0.6.2_15  =5.3.6.1  =stable ]
 19  gimp                     available    [ =2.8.22 ]
 20  docker=latest            enabled      \
        [ =17.12.1  =18.03.1  =18.06.1  =18.09.9  =stable ]
 21  mate-desktop1.x          available    \
        [ =1.19.0  =1.20.0  =stable ]
 22  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 23  tomcat8.5                available    \
        [ =8.5.31  =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50
          =stable ]
 24  epel                     available    [ =7.11  =stable ]
 25  testing                  available    [ =1.0  =stable ]
 26  ecs                      available    [ =stable ]
 27  corretto8                available    \
        [ =1.8.0_192  =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232
          =1.8.0_242  =stable ]
 28  firecracker              available    [ =0.11  =stable ]
 29  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 30  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 ]
 32  lustre2.10               available    \
        [ =2.10.5  =2.10.8  =stable ]
 33  java-openjdk11           available    [ =11  =stable ]
 34  lynis                    available    [ =stable ]
 35  kernel-ng                available    [ =stable ]
 36  BCC                      available    [ =0.x  =stable ]
 37  mono                     available    [ =5.x  =stable ]
 38  nginx1                   available    [ =stable ]
 39  ruby2.6                  available    [ =2.6  =stable ]
 40  mock                     available    [ =stable ]
 41  postgresql11             available    [ =11  =stable ]
  _  php7.4                   available    [ =stable ]
 43  livepatch                available    [ =stable ]
 44  python3.8                available    [ =stable ]
 45  haproxy2                 available    [ =stable ]
[root@ip-X-X-X-X ~]#

足りないライブラリをインストール
[root@ip-X-X-X-X ~]# yum install -y php-mbstring php-xml php-intl
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package php-intl.x86_64 0:7.2.31-1.amzn2 will be installed
---> Package php-mbstring.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: php-mbstring-7.2.31-1.amzn2.x86_64
---> Package php-xml.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Running transaction check
---> Package libxslt.x86_64 0:1.1.28-5.amzn2.0.2 will be installed
---> Package oniguruma.x86_64 0:5.9.6-1.amzn2.0.3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                  Arch               Version                          Repository                     Size
==================================================================================================================
Installing:
 php-intl                 x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             224 k
 php-mbstring             x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             501 k
 php-xml                  x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             212 k
Installing for dependencies:
 libxslt                  x86_64             1.1.28-5.amzn2.0.2               amzn2-core                    243 k
 oniguruma                x86_64             5.9.6-1.amzn2.0.3                amzn2-core                    127 k

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

Total download size: 1.3 M
Installed size: 4.7 M
Downloading packages:
(1/5): oniguruma-5.9.6-1.amzn2.0.3.x86_64.rpm                                              | 127 kB  00:00:00
(2/5): libxslt-1.1.28-5.amzn2.0.2.x86_64.rpm                                               | 243 kB  00:00:00
(3/5): php-intl-7.2.31-1.amzn2.x86_64.rpm                                                  | 224 kB  00:00:00
(4/5): php-mbstring-7.2.31-1.amzn2.x86_64.rpm                                              | 501 kB  00:00:00
(5/5): php-xml-7.2.31-1.amzn2.x86_64.rpm                                                   | 212 kB  00:00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                             3.7 MB/s | 1.3 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libxslt-1.1.28-5.amzn2.0.2.x86_64                                                              1/5
  Installing : oniguruma-5.9.6-1.amzn2.0.3.x86_64                                                             2/5
  Installing : php-mbstring-7.2.31-1.amzn2.x86_64                                                             3/5
  Installing : php-xml-7.2.31-1.amzn2.x86_64                                                                  4/5
  Installing : php-intl-7.2.31-1.amzn2.x86_64                                                                 5/5
  Verifying  : php-intl-7.2.31-1.amzn2.x86_64                                                                 1/5
  Verifying  : oniguruma-5.9.6-1.amzn2.0.3.x86_64                                                             2/5
  Verifying  : libxslt-1.1.28-5.amzn2.0.2.x86_64                                                              3/5
  Verifying  : php-mbstring-7.2.31-1.amzn2.x86_64                                                             4/5
  Verifying  : php-xml-7.2.31-1.amzn2.x86_64                                                                  5/5

Installed:
  php-intl.x86_64 0:7.2.31-1.amzn2    php-mbstring.x86_64 0:7.2.31-1.amzn2    php-xml.x86_64 0:7.2.31-1.amzn2

Dependency Installed:
  libxslt.x86_64 0:1.1.28-5.amzn2.0.2                     oniguruma.x86_64 0:5.9.6-1.amzn2.0.3

Complete!
[root@ip-X-X-X-X ~]#
[root@ip-X-X-X-X ~]# yum install -y php-mbstring php-xml php-intl
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package php-intl.x86_64 0:7.2.31-1.amzn2 will be installed
---> Package php-mbstring.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: php-mbstring-7.2.31-1.amzn2.x86_64
---> Package php-xml.x86_64 0:7.2.31-1.amzn2 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-7.2.31-1.amzn2.x86_64
--> Running transaction check
---> Package libxslt.x86_64 0:1.1.28-5.amzn2.0.2 will be installed
---> Package oniguruma.x86_64 0:5.9.6-1.amzn2.0.3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                  Arch               Version                          Repository                     Size
==================================================================================================================
Installing:
 php-intl                 x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             224 k
 php-mbstring             x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             501 k
 php-xml                  x86_64             7.2.31-1.amzn2                   amzn2extra-php7.2             212 k
Installing for dependencies:
 libxslt                  x86_64             1.1.28-5.amzn2.0.2               amzn2-core                    243 k
 oniguruma                x86_64             5.9.6-1.amzn2.0.3                amzn2-core                    127 k

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

Total download size: 1.3 M
Installed size: 4.7 M
Downloading packages:
(1/5): oniguruma-5.9.6-1.amzn2.0.3.x86_64.rpm                                              | 127 kB  00:00:00
(2/5): libxslt-1.1.28-5.amzn2.0.2.x86_64.rpm                                               | 243 kB  00:00:00
(3/5): php-intl-7.2.31-1.amzn2.x86_64.rpm                                                  | 224 kB  00:00:00
(4/5): php-mbstring-7.2.31-1.amzn2.x86_64.rpm                                              | 501 kB  00:00:00
(5/5): php-xml-7.2.31-1.amzn2.x86_64.rpm                                                   | 212 kB  00:00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                             3.7 MB/s | 1.3 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libxslt-1.1.28-5.amzn2.0.2.x86_64                                                              1/5
  Installing : oniguruma-5.9.6-1.amzn2.0.3.x86_64                                                             2/5
  Installing : php-mbstring-7.2.31-1.amzn2.x86_64                                                             3/5
  Installing : php-xml-7.2.31-1.amzn2.x86_64                                                                  4/5
  Installing : php-intl-7.2.31-1.amzn2.x86_64                                                                 5/5
  Verifying  : php-intl-7.2.31-1.amzn2.x86_64                                                                 1/5
  Verifying  : oniguruma-5.9.6-1.amzn2.0.3.x86_64                                                             2/5
  Verifying  : libxslt-1.1.28-5.amzn2.0.2.x86_64                                                              3/5
  Verifying  : php-mbstring-7.2.31-1.amzn2.x86_64                                                             4/5
  Verifying  : php-xml-7.2.31-1.amzn2.x86_64                                                                  5/5

Installed:
  php-intl.x86_64 0:7.2.31-1.amzn2    php-mbstring.x86_64 0:7.2.31-1.amzn2    php-xml.x86_64 0:7.2.31-1.amzn2

Dependency Installed:
  libxslt.x86_64 0:1.1.28-5.amzn2.0.2                     oniguruma.x86_64 0:5.9.6-1.amzn2.0.3

Complete!
[root@ip-X-X-X-X ~]#

 ダミーデータ作成コマンドでメモリが足りなくなる場合があるため、メモリを上げておく
PHP設定ファイルを開く
[root@ip-X-X-X-X ~]# vi /etc/php.ini
メモリ制限を以下のとおり書き換える(※標準の128だとメモリ不足となるため)
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
; memory_limit = 128M   ;←コメントアウト
memory_limit = 256M   ;←追加

PHP設定ファイルを閉じる
 PHP設定ファイルの更新を反映させるため、apacheを再起動
[root@ip-X-X-X-X ~]# systemctl restart httpd.service
[root@ip-X-X-X-X ~]#
[root@ip-X-X-X-X ~]# systemctl restart httpd.service
[root@ip-X-X-X-X ~]#

Gitを入れる

  1. rootユーザーのままコマンドを実行
[root@ip-X-X-X-X ~]# yum install -y git
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:2.23.3-1.amzn2.0.1 will be installed
--> Processing Dependency: perl-Git = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: git-core-doc = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: git-core = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: emacs-filesystem >= 25.3 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Git::I18N) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Git) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: libsecret-1.so.0()(64bit) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Running transaction check
---> Package emacs-filesystem.noarch 1:25.3-3.amzn2.0.1 will be installed
---> Package git-core.x86_64 0:2.23.3-1.amzn2.0.1 will be installed
---> Package git-core-doc.noarch 0:2.23.3-1.amzn2.0.1 will be installed
---> Package libsecret.x86_64 0:0.18.5-2.amzn2.0.2 will be installed
---> Package perl-Git.noarch 0:2.23.3-1.amzn2.0.1 will be installed
--> Processing Dependency: perl(Error) for package: perl-Git-2.23.3-1.amzn2.0.1.noarch
---> Package perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2 will be installed
--> Running transaction check
---> Package perl-Error.noarch 1:0.17020-2.amzn2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                       Arch                Version                          Repository               Size
==================================================================================================================
Installing:
 git                           x86_64              2.23.3-1.amzn2.0.1               amzn2-core              135 k
Installing for dependencies:
 emacs-filesystem              noarch              1:25.3-3.amzn2.0.1               amzn2-core               64 k
 git-core                      x86_64              2.23.3-1.amzn2.0.1               amzn2-core              5.0 M
 git-core-doc                  noarch              2.23.3-1.amzn2.0.1               amzn2-core              2.4 M
 libsecret                     x86_64              0.18.5-2.amzn2.0.2               amzn2-core              153 k
 perl-Error                    noarch              1:0.17020-2.amzn2                amzn2-core               32 k
 perl-Git                      noarch              2.23.3-1.amzn2.0.1               amzn2-core               47 k
 perl-TermReadKey              x86_64              2.30-20.amzn2.0.2                amzn2-core               31 k

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

Total download size: 7.9 M
Installed size: 41 M
Downloading packages:
(1/8): emacs-filesystem-25.3-3.amzn2.0.1.noarch.rpm                                        |  64 kB  00:00:00
(2/8): git-2.23.3-1.amzn2.0.1.x86_64.rpm                                                   | 135 kB  00:00:00
(3/8): git-core-doc-2.23.3-1.amzn2.0.1.noarch.rpm                                          | 2.4 MB  00:00:00
(4/8): git-core-2.23.3-1.amzn2.0.1.x86_64.rpm                                              | 5.0 MB  00:00:00
(5/8): libsecret-0.18.5-2.amzn2.0.2.x86_64.rpm                                             | 153 kB  00:00:00
(6/8): perl-Error-0.17020-2.amzn2.noarch.rpm                                               |  32 kB  00:00:00
(7/8): perl-Git-2.23.3-1.amzn2.0.1.noarch.rpm                                              |  47 kB  00:00:00
(8/8): perl-TermReadKey-2.30-20.amzn2.0.2.x86_64.rpm                                       |  31 kB  00:00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                              26 MB/s | 7.9 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : git-core-2.23.3-1.amzn2.0.1.x86_64                                                             1/8
  Installing : git-core-doc-2.23.3-1.amzn2.0.1.noarch                                                         2/8
  Installing : 1:perl-Error-0.17020-2.amzn2.noarch                                                            3/8
  Installing : perl-TermReadKey-2.30-20.amzn2.0.2.x86_64                                                      4/8
  Installing : libsecret-0.18.5-2.amzn2.0.2.x86_64                                                            5/8
  Installing : 1:emacs-filesystem-25.3-3.amzn2.0.1.noarch                                                     6/8
  Installing : perl-Git-2.23.3-1.amzn2.0.1.noarch                                                             7/8
  Installing : git-2.23.3-1.amzn2.0.1.x86_64                                                                  8/8
  Verifying  : 1:emacs-filesystem-25.3-3.amzn2.0.1.noarch                                                     1/8
  Verifying  : git-2.23.3-1.amzn2.0.1.x86_64                                                                  2/8
  Verifying  : libsecret-0.18.5-2.amzn2.0.2.x86_64                                                            3/8
  Verifying  : perl-TermReadKey-2.30-20.amzn2.0.2.x86_64                                                      4/8
  Verifying  : git-core-2.23.3-1.amzn2.0.1.x86_64                                                             5/8
  Verifying  : 1:perl-Error-0.17020-2.amzn2.noarch                                                            6/8
  Verifying  : perl-Git-2.23.3-1.amzn2.0.1.noarch                                                             7/8
  Verifying  : git-core-doc-2.23.3-1.amzn2.0.1.noarch                                                         8/8

Installed:
  git.x86_64 0:2.23.3-1.amzn2.0.1

Dependency Installed:
  emacs-filesystem.noarch 1:25.3-3.amzn2.0.1                 git-core.x86_64 0:2.23.3-1.amzn2.0.1
  git-core-doc.noarch 0:2.23.3-1.amzn2.0.1                   libsecret.x86_64 0:0.18.5-2.amzn2.0.2
  perl-Error.noarch 1:0.17020-2.amzn2                        perl-Git.noarch 0:2.23.3-1.amzn2.0.1
  perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2

Complete!
[root@ip-X-X-X-X ~]#

ディレクトリ・ファイル操作権限

  1. rootユーザーのままコマンドを実行
ec2-userをapacheグループに追加
[root@ip-X-X-X-X ~]# usermod -a -G apache ec2-user
[root@ip-X-X-X-X ~]#

 /var/www 以下のグループ所有権をapacheグループに変更
[root@ip-X-X-X-X ~]# chown -R ec2-user:apache /var/www
[root@ip-X-X-X-X ~]#
[root@ip-X-X-X-X ~]# chmod 2775 /var/www
[root@ip-X-X-X-X ~]# find /var/www -type d -exec sudo chmod 2775 {} \;
[root@ip-X-X-X-X ~]#

 /var/www 以下のディレクトリに今後のグループ書き込み許可を追加する
[root@ip-X-X-X-X ~]# find /var/www -type f -exec sudo chmod 0664 {} \;
[root@ip-X-X-X-X ~]#

 /var/www 以下のファイルに今後のグループ書き込み許可を追加する
[root@ip-X-X-X-X ~]# find /var/www -type f -exec sudo chmod 0664 {} \;
[root@ip-X-X-X-X ~]#

皆さま、お疲れ様でした。手順4~6まではこれで完了です。

あともうひと踏ん張り!最後は、
7. composerインストール
8. EC-CUBEインストール
9. ダミーデータ作成
を頑張っていきましょう↓
https://ec-cuber.jp/news-column/column09-3/


EC-CUBERでは、今回のようなTechブログの他にも、皆様のECビジネス成功をお助けする情報を随時更新していきます。
特に、弊社はEC-CUBEのプロフェッショナルですので、EC-CUBEのことなら、何でもご相談・お任せください!
▼問合せフォームから相談してみる。
https://ec-cuber.jp/contact-us/
▼電話で相談してみる。
03-6386-3652 

以上、木下でした!