Skip to content

Instantly share code, notes, and snippets.

@usutani
Last active May 6, 2017 10:39
Show Gist options
  • Save usutani/7067006 to your computer and use it in GitHub Desktop.
Save usutani/7067006 to your computer and use it in GitHub Desktop.
Amazon Linux AMI 2013.09 (ami-3561fe34)
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