Movable Type 4.01がリリースされた。XSS関係の修正とパフォーマンスの向上が図られているらしいので、バージョンアップをする。
①バックアップをとる
- システムメニュ→ツールを選択
- バックアップメニューをクリック
- バックアップを作成ボタンをクリック
②MySQLのデータもバックアップする
[root@www ~]# mysqldump -a --user=root -p mt > mt_20070923.sql
Enter password:
Enter password:
③ホームページ自体も一応バックアップしておく
[root@www ~]# tar zcvf mt_20070923.tgz /var/www/html
④mobable type 4のディレクトリをリネームして残しておく
[root@www ~]# cd /var/www/cgi-bin
[root@www cgi-bin]# mv mt mt4
[root@www cgi-bin]# mv mt mt4
⑤新しいバージョンを解凍する
[root@www cgi-bin]# unzip MT-4_01-ja.zip
⑥ディレクトリ名をmtに変える
[root@www cgi-bin]# mv MT-4.01-ja/ mt
⑦所有者とグループを変える
[root@www cgi-bin]# chown -R apache:apache mt
⑧SELinuxのコンテキストを変える
[root@www cgi-bin]# chcon -R system_u:object_r:httpd_sys_script_exec_t mt
⑨設定をコピーする
[root@www cgi-bin]# cp mt4/mt-config.cgi mt
これでちゃんと動くかどうか確認を含めてこの記事を書いてみた。動いてはいるけど、ちっとも早くなった気がしないなぁ。
