[WrodPress]WordPress(ver 2.7.1)をUbuntuに入れてみた
- July 4th, 2009
- Posted in Linux
- Write comment
概要:
新ユーザ「labs」を作成
labsのpublic_html下にWordPressをインストール
ということで、まずユーザ「labs」を作成。
$ adduser labs
(プロンプトに従ってユーザ作成)
次にApacheの設定を行う。
$ sudo vim /etc/apache2/site-available/labs
(以下のように編集)
<VirtualHost *>
ServerName labs.hoge.com
>—ServerAdmin labs@hoge.com
>—
>—DocumentRoot /home/labs/public_html
>—<Directory /home/labs/public_html>
>—>—Options FollowSymLinks MultiViews ExecCGI
>—>—AllowOverride All
>—>—Order allow,deny
>—>—allow from all
>—</Directory>>—ErrorLog /var/log/apache2/labs_error.log
>—# Possible values include: debug, info, notice, warn, error, crit,
>—# alert, emerg.
>—LogLevel error>—CustomLog /var/log/apache2/labs_access.log combined
>—ServerSignature On</VirtualHost>
その後、この設定を有効にする。
$ sudo a2ensite labs
$ sudo /etc/init.d/apache2 reload
この後は、ユーザ「labs」にて作業
以下から、最新版のWordPressをダウンロード。
http://wordpress.org/
解凍を行う。
tar xvfz latest.tar.gz
cp -fr wordpress/* ~/public_html
とりあえず、アクセスしてみる。
設定ファイルが必要らしい。
ということで、設定ファイルの作成を行う。
$ cd ~/public_html
$ cp wp-config-sample.php wp-config.php
$ vim wp-config.php
(以下のような感じで)define(‘DB_NAME’, ‘labs’);
define(‘DB_USER’, ‘labs’);
define(‘DB_PASSWORD’, ‘password’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);
DBが必要らしいのでDBの作成とユーザの作成。
$ mysql -u root -p
(password)
mysql> create database labs default character set utf8 collate utf8_general_ci;
mysql> grant all privileges on labs.* to labs@localhost identified by ‘password’ with grant option;
再度、アクセスしてみる。
[Blog Title]
[Your E-mail]
を適当な値を設定。
[Install WordPress]を押下。
どうやら、インストール出来たようだ。
[Log In]を押下。
[Log In]を押下。
どうやら完璧にインストール出来たようだ。
Popularity: 3% [?]
No comments yet.