MediaWikiインストールメモ

ApatchMySQLMediaWiki
ようやくここまでたどり着きました。
といいたいところですが、先にMySQLの設定をしなくてはなりません。
いつものように
# cp -p /etc/my.conf my.conf.bak
でコピーをとる。


# vi my.conf
default-character-set = utf8 

[mysql]
default-character-set = utf8
を追加する。


MySQLの起動。
# /etc/rc.d/init.d/mysqld start
MySQL データベースを初期化中: Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h rhaetulus.o.aist.go.jp password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[ OK ]
MySQL を起動中:                      [ OK ]


これでOK.
でもって、いつもどおりに自動起動設定する。


# chkconfig mysqld on 
# chkconfig --list mysqld mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off 

とりあえずログイン。
rootの確認とパスワードのセット終了。
次にMediaWikiのダウンロードと展開。
# cd /usr/local/src
# wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.0.tar.gz

download.wikimedia.org をDNSに問いあわせています... 208.80.152.183, 2620:0:860:2:230:48ff:fe5a:eb1e
download.wikimedia.org|208.80.152.183|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 10828007 (10M) [application/octet-stream]
Saving to: `mediawiki-1.15.0.tar.gz'

100%[======================================================================>] 10,828,007 635K/s in 20s

19:43:57 (540 KB/s) - `mediawiki-1.15.0.tar.gz' を保存しました [10828007/10828007]

解凍する。
# tar zxvf mediawiki-1.15.0.tar.gz
ずらずらっと・・・。