Help us understand the problem. What is going on with this article?

WordPressインストール・初期設定チート

More than 3 years have passed since last update.

先に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="{メールアドレス}"
bobu_web
おもにフロントエンド系、その流れでiOS、Androidも最近やってます
https://ubweb.works
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away