「WordPress」の版間の差分
提供: Lisa Wiki
(→ブラウザで設定の種を作成) |
(→データベースの作成) |
||
行20: | 行20: | ||
MySQLをインストールした時のパスワードを入力します。<br/> | MySQLをインストールした時のパスワードを入力します。<br/> | ||
SQLコマンドでwordpressと言う名称のデータベースをユーザーID:wordpress パスワード:wordpressで作成。 | SQLコマンドでwordpressと言う名称のデータベースをユーザーID:wordpress パスワード:wordpressで作成。 | ||
− | <nowiki>> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress';</nowiki> | + | <nowiki>mysql> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress';</nowiki> |
− | > create database wordpress; | + | mysql> create database wordpress; |
− | > exit | + | mysql> exit |
===Apacheへの設定=== | ===Apacheへの設定=== |
2015年5月29日 (金) 11:22時点における版
目次
WordPressとは
オープンソースのブログソフトウェアである。PHPで開発されており、データベース管理システムとしてMySQLを利用している。単なるブログではなくCMSとしてもしばしば利用されている。
WordPressの設置
セットアップ方法
ターミナルソフトでログインし
sudo su apt-get install bzip2 mkdir /media/Data/www cd /media/Data/www wget https://ja.wordpress.org/latest-ja.tar.gz tar xvf latest-ja.tar.gz rm latest-ja.tar.gz
WordPressの設定
データベースの作成
データベースを作成
mysql -u root -p
MySQLをインストールした時のパスワードを入力します。
SQLコマンドでwordpressと言う名称のデータベースをユーザーID:wordpress パスワード:wordpressで作成。
mysql> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress'; mysql> create database wordpress; mysql> exit
Apacheへの設定
設置場所をApacheに設定する。
nano /etc/apache2/conf-enabled/wordpress.conf
次の内容で編集します。
# Uncomment this to add an alias. # This does not work properly with virtual hosts.. Alias /wp /media/Data/www/wordpress <Directory /media/Data/www/wordpress/> Options +FollowSymLinks AllowOverride All <IfVersion >= 2.3> Require all granted </IfVersion> <IfVersion < 2.3> order allow,deny allow from all </IfVersion> </Directory>
Apache の再起動
apache2ctl restart
ブラウザで質問に答えて設定完了
ブラウザで http://osmc/wp/ にアクセスすると、「WordPress へようこそ」のメッセージと共にセットアップに必要なメッセージが表示されます。
「さあ、始めましょう!」をクリックして、データベースの名、MySQLのユーザー名、MySQLのパスワードを入力します。
今回はすべて、wordpress、wordpress、wordpress、です。
データベースのホスト名は「localhost」そのままでOK。
テーブル接頭辞は「wp_」そのままでOK。
「送信」をクリックします。
「インストール実行」をクリックします。
サイトのタイトル、ユーザー名、パスワード2回入力、メールアドレスを入力し「WordPressをインストール」をクリックします。
「成功しました !」とメッセージが出れば成功です。
ログインして使ってみましょう。