先にDBは作る必要あり。
1.WP CLIのインストール
2.WordPressコアのダウンロード(wpディレクトリ)
3.index.phpの移動
4.コンフィグ設定、WordPressのインストール
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
mkdir wp
wp core download --path="./wp" --locale="ja"
mv ./wp/index.php ./index.php
sed -e 's/wp-blog-header/wp\/wp-blog-header/g' ./index.php > ./index-new.php
mv index-new.php index.php
cd ./wp
wp core config --dbname=wp --dbpass=wordpress --dbuser=wp
wp core install --url={サイトURL} --title="sample site" --admin_user="user" --admin_password="password" --admin_email="{メールアドレス}"