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

[Wordpress] WP-CLIでwordpressのインストール〜セットアップまで

More than 3 years have passed since last update.

インストールはこちらを参考に
http://wp-cli.org/docs/installing/

1. ディレクトリを作成

mkdir wp

2. wordpressをインストール

cd wp
wp core download --locale=ja

3. wp-config.phpを作成

コマンドじゃなくて、wp-config-sample.php をコピーして作成でもOK

wp core config --dbname=hoge --dbuser=hogeuser --dbpass=hogehoge --dbhost=localhost --dbprefix=hoge_

4. configからDB作成

wp db create

5. アカウント・サイト設定

初めてブラウザでアクセスしたときにでてくるフォームで設定するアレをワンライナーで。

wp core install --title=test --admin_user=admin --admin_password=password --admin_email=test@example.com --url=http://localhost:3000/

あとはブラウザでlocalhost:3000にアクセスすればwordpressサイトが表示されるはず。

タンタンッターン!ってできて気持ちいい。

jshimazu
流しのエンジニア DMM.com → 面白法人カヤック → Pivolab(フリーランス) 守備範囲はWebならだいたいOK、フロントエンドが得意です。 PHP / Ruby / Python / Javascript / HTML / CSS / Ruby on Rails / React / Vue.js / AWS / GCP
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした