Skip to content

Instantly share code, notes, and snippets.

@TomckySan
Last active December 30, 2016 19:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomckySan/eb4a63c811f4ed4352ee55e9d9aab08c to your computer and use it in GitHub Desktop.
Save TomckySan/eb4a63c811f4ed4352ee55e9d9aab08c to your computer and use it in GitHub Desktop.
ECCUBE 3.0系の環境構築用シェルスクリプト(CentOS 7 on Docker)
#!/bin/bash
# パッケージ更新
yum -y update
# ロケール変更
localedef -vc -i ja_JP -f UTF-8 ja_JP.UTF-8
localectl set-locale LANG=ja_JP.utf8
# タイムゾーン変更
timedatectl set-timezone Asia/Tokyo
# Apacheインストール
yum -y install httpd
# httpd.confの編集
sed -i '/<Directory "\/var\/www\/html">/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
# PHP7インストール準備
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# PHP7インストール
yum -y install --enablerepo=remi-php70 php php-mysql php-mbstring php-xml php-zip php-apc php-mcrypt
# Apache起動
systemctl start httpd.service
systemctl enable httpd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment