LoginSignup
2
1

More than 5 years have passed since last update.

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

Posted at

先に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="{メールアドレス}"
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1