個人用: wordpress 構築スクリプト

新規に AWS の EC2 で新規インスタンスを立ち上げる度にwordpress構築するのがめんどくさかったのでスクリプト(個人用)


yum install -y httpd24 php56 mysql56-server php56-mcrypt php56-intl php56-mbstring php56-mysqlnd php56-opcache php56-devel cd /var/www/html/ wget https://wordpress.org/latest.tar.gz /var/www/html/ tar -zxvf /var/www/html/latest.tar.gz service mysqld start mysql -u root << EOT CREATE DATABASE wordpress charset utf8; GRANT ALL PRIVILEGES ON wordpress.* TO "test"@"localhost" IDENTIFIED BY "test"; FLUSH PRIVILEGES; EOT chown -R apache: /var/www/html/wordpress chmod 777 /var/www/html/wordpress/wp-admin chmod 777 /var/www/html/wordpress/wp-content chmod 777 /var/www/html/wordpress/wp-includes service httpd start

hogehoge.sh とかで貼り付けて実行