「WordPress」の版間の差分

提供: Lisa Wiki
移動: 案内検索
(データベースの作成)
(Apacheへの設定)
行31: 行31:
 
# Uncomment this to add an alias.
 
# Uncomment this to add an alias.
 
# This does not work properly with virtual hosts..
 
# This does not work properly with virtual hosts..
Alias /wp /mnt/HDD/wordpress
+
Alias /wp /media/Data/www/wordpress
  
<Directory /mnt/HDD/wordpress/>
+
<Directory /media/Data/www/wordpress/>
 
         Options +FollowSymLinks
 
         Options +FollowSymLinks
 
         AllowOverride All
 
         AllowOverride All

2015年5月29日 (金) 09:20時点における版

WordPressとは

オープンソースのブログソフトウェアである。PHPで開発されており、データベース管理システムとしてMySQLを利用している。単なるブログではなくCMSとしてもしばしば利用されている。

WordPressの設置

入手先 https://ja.wordpress.org/

セットアップ方法

ターミナルソフトでログインし

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で作成。

> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress';
> create database wordpress;
> 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>

ブラウザで設定の種を作成

各種設定