Skip to content

Instantly share code, notes, and snippets.

@smd877
Created August 24, 2020 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smd877/d8aacfb6aa0e18bb50d6975767064c43 to your computer and use it in GitHub Desktop.
Save smd877/d8aacfb6aa0e18bb50d6975767064c43 to your computer and use it in GitHub Desktop.
AWSのEC2にEC-CUBEをインストールする
yum update -y
amazon-linux-extras install -y lamp-mariadb10.2-php7.2
yum install -y mariadb-server
yum install -y httpd php php-xml php-mbstring php-zip php-intl
cd /usr/local/src/
wget http://downloads.ec-cube.net/src/eccube-4.0.4.zip
unzip eccube-4.0.4.zip
mv eccube-4.0.4 /var/www/html/ec
chown -R apache:apache /var/www/html/
echo -e '<Directory "/var/www/html/ec">\n AllowOverride All\n</Directory>' > /etc/httpd/conf.d/ec.conf
systemctl start mariadb
mysql -u root -e "CREATE DATABASE ecdb DEFAULT CHARACTER SET utf8;CREATE USER 'ecuser'@'localhost' IDENTIFIED BY 'ecpass';GRANT ALL PRIVILEGES ON ecdb.* TO 'ecuser'@'localhost';FLUSH PRIVILEGES;"
systemctl start httpd
@smd877
Copy link
Author

smd877 commented Aug 24, 2020

  • 2020-08-24 記事作成
  • Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0cc75a8978fbbc969 使用
  • EC-CUBE 4.0.4 使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment