2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

とりあえずCentos6.5にWPをインストールする

Posted at

About

とりあえずWPをさわろうと思ったので、やってみた。

Environment

Centos6.5(vagrantで起動)

前提パッケージを入れる

$ sudo yum -y httpd mysql-server php php-mysql wget
$ sudo service mysqld start

DBの設定をする

mysql> update mysql.user set password=password('password') where user = 'root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3  Changed: 3  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit;
mysql> create database wp;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on wp.* to wp@localhost identified by 'password';
Query OK, 0 rows affected (0.00 sec)

Apacheの設定をする

$ cd /var/www
$ sudo wget https://ja.wordpress.org/wordpress-4.0-ja.tar.gz
$ tar zxf wordpress-4.0-ja.tar.gz
$ sudo chown -R apache.apache wordpress
/etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/wordpress"
$ sudo service httpd configtest
$ sudo service httpd start

WPをインストールする

  • ブラウザでアクセス
    http:///wp-admin/setup-config.php
データベース名        wp
ユーザ名             root
パスワード           password
データベースのホスト名 localhost
接頭辞               wp_

出来た!とりあえず導入しただけなので、細かな設定は他のサイトをご確認下さいm(_ _)m

link

2
2
1

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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?