Movable Type 6 β版のセットアップメモ
ホスト名
$ hostname
hogehgoe.hoge.jp
ネットワーク設定
$ ifconfig
>>>略
ether0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:192.168.10.80
ディストリビューションのバージョン
$ cat /etc/redhat-release
Scientific Linux release 6.3 (Carbon)
Apacheのバージョン
$ httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: May 14 2013 08:23:53
MySQLのインストール
# yum -y install mysql-server
>>>略
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-server x86_64 5.1.69-1.el6_4 sl-security 8.7 M
Installing for dependencies:
mysql x86_64 5.1.69-1.el6_4 sl-security 907 k
perl-DBD-MySQL x86_64 4.013-3.el6 sl 133 k
perl-DBI x86_64 1.609-4.el6 sl 704 kTransaction Summary
================================================================================
Install 4 Package(s)
# chkconfig httpd on
# chkconfig mysqld on
# /sbin/chkconfig --list
MySQL rootパスワード設定
# mysql -u root -p
mysql> set password for root@localhost=password('hogehoge');
Query OK, 0 rows affected (0.00 sec)
MySQL MT用user設定
mysql> grant all on mt.* to mtuser@localhost identified by 'hogehoge';
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like 'character_set%';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Variable_name | Value |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
character_set_client | latin1 |
character_set_connection | latin1 |
character_set_database | latin1 |
character_set_filesystem | binary |
character_set_results | latin1 |
character_set_server | latin1 |
character_set_system | utf8 |
character_sets_dir | /usr/share/mysql/charsets/ |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
8 rows in set (0.00 sec)
MT用データベースの作製
mysql> CREATE DATABASE mt;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Database |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
information_schema |
mt |
test |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3 rows in set (0.35 sec)
Perlのパス確認
$ whereis perl
perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz
ディレクトリ構成
アプリケーションディレクトリ | /var/www/cgi-bin/mt |
スタティックディレクトリ | /var/www/html/mt-static |
ウェブディレクトリ | /var/www/html |
※ドキュメントルートを/var/www/htmlに設定するのは、セキュリティ上推奨されない。
ドキュメントルートの所有者変更
# chown MT.MT -R cgi-bin/
# chown MT.MT -R html/
# ls -lh
合計 16K
drwxr-xr-x. 2 MT MT 4.0K 5月 14 22:24 2013 cgi-bin
drwxr-xr-x. 3 root root 4.0K 7月 22 15:02 2013 error
drwxr-xr-x. 2 MT MT 4.0K 5月 14 22:24 2013 html
drwxr-xr-x. 3 root root 4.0K 7月 22 15:02 2013 icons