Last active
May 6, 2017 10:39
-
-
Save usutani/7067006 to your computer and use it in GitHub Desktop.
Amazon Linux AMI 2013.09 (ami-3561fe34)
This file contains 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
sudo yum -y install httpd mysql-server php php-mysql php-mbstring | |
sudo /sbin/chkconfig mysqld on | |
sudo /sbin/chkconfig httpd on | |
sudo /etc/init.d/mysqld start | |
sudo /etc/init.d/httpd start | |
wget http://ja.wordpress.org/latest-ja.tar.gz ~/ | |
tar zxvf ~/latest-ja.tar.gz | |
sudo cp -r ~/wordpress/* /var/www/html/ | |
sudo chown apache:apache -R /var/www/html | |
mysql -uroot | |
CREATE DATABASE wordpress; | |
GRANT ALL PRIVILEGES ON wordpress .* TO | |
"wpuser"@"localhost" | |
IDENTIFIED BY "wppassword" ; | |
FLUSH PRIVILEGES; | |
quit; | |
# For MySql client & WordPress Setup | |
sudo yum -y install httpd mysql php php-mysql php-mbstring | |
sudo /sbin/chkconfig httpd on | |
sudo /etc/init.d/httpd start | |
wget http://ja.wordpress.org/latest-ja.tar.gz ~/ | |
tar zxvf ~/latest-ja.tar.gz | |
sudo cp -r ~/wordpress/* /var/www/html/ | |
sudo chown apache:apache -R /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment