LoginSignup
3
1

More than 5 years have passed since last update.

EC-CUBE4 AmazonLinux2 構築

Last updated at Posted at 2018-12-09

概要

EC-CUBE4のシステム要件を満たすサーバーをAWSに構築します。

手順

# 既存パッケージの更新
yum update

# 最低限必要なソフトウェアのインストール
yum install \
    yum-utils \
    wget

# リポジトリの設定
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm

yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72

# 必要なソフトウェアのインストール
yum install \
    curl \
    git \
    gcc \
    gcc-c++ \
    glibc-langpack-ja \
    httpd \
    vim \
    which

# PHP
yum install \
   php72 \
   php72-php \
   php72-php-common \
   php72-php-ctype \
   php72-php-curl \
   php72-php-devel \
   php72-php-fileinfo \
   php72-php-gd \
   php72-php-hash \
   php72-php-intl \
   php72-php-json \
   php72-php-libxml \
   php72-php-mbstring \
   php72-php-mcrypt \
   php72-php-mysqlnd \
   php72-php-openssl \
   php72-php-opcache \
   php72-php-pdo \
   php72-php-pecl-apcu \
   php72-php-posix \
   php72-php-phar \
   php72-php-session \
   php72-php-simplexml \
   php72-php-soap \
   php72-php-xml \
   php72-php-xmlwriter \
   php72-php-xsl \
   php72-php-zip \
   php72-php-zlib \
   php72-php-pecl-memcached

ln -s /usr/bin/php72 /usr/bin/php

# Locale
export LANG=ja_JP.utf8
export LC_ALL=ja_JP.utf8
unlink /etc/localtime
ln -s /usr/share/zoneinfo/Japan /etc/localtime
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1