Created
August 24, 2020 02:49
-
-
Save smd877/d8aacfb6aa0e18bb50d6975767064c43 to your computer and use it in GitHub Desktop.
AWSのEC2にEC-CUBEをインストールする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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