MovaleTypeにも飽きてきたので、ここは一つ別のブログツールを使ってみようと思い立ち、Drupalをインストールすることにしました。
以下にその手順を。(この時点では作業途中なので、MovableTypeに記事をエントリしました。)
ソフトウェア
Drupal 5.7 → ダウンロードはコチラから構築
- .htaccessのコピー
ダウンロードしたファイルをWebサーバの任意のディレクトリに解凍して、.htaccessをWebサーバのドキュメントルートにコピーします。mv drupal-x.x/* drupal-x.x/.htaccess /Library/WebServer/Documents
- Drupalのデータベースを作成 - MySQL -
Drupalで使用するデータベースと専用のアカウントを作成します。今回はMySQLを使用しました。以下はその実行例です。% mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.37 MySQL Community Server (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database databasename character set utf8; Query OK, 1 row affected (0.27 sec) mysql> grant select, insert, update, delete, create, drop, index, alter, create temporary tables, lock tables on databasename.* to username@hostname; Query OK, 0 rows affected (0.31 sec)
- settings.phpの編集
ソースを解凍したディレクトリ/sites/default/settings.phpを編集します。編集するといっても作成したデータベースへの接続記述の1行だけです。$db_url = 'mysql://xxxxxxxx:xxxxxxxx@localhost/xxxxxxxxxxxxxxxx';
- インストールスクリプト実行
settings.phpを編集したら、ソースを解凍したディレクトリ/install.phpにアクセスします。以下のようなページが表示されたらOKです。
Drupal installation complete
Congratulations, Drupal has been successfully installed.
Please review the messages above before continuing on to your new site.
環境設定
- 管理者アカウントの作成
ソースを解凍したディレクトリ/index.phpにアクセスします。"step one"をクリックして"create the first account"にアクセスして、アカウントとパスワードを作成します。 - サイトの日本語化
- ロケールモジュールの有効
管理ページのAdminister > Site building > Modulesにアクセスし、"Locale"と表示されたチェックボックスをオンにして、"Save configuration"ボタンをクリックします。 - コア翻訳ファイルのインポート
Administer > Site configuration > Localizationにアクセスし、"import"をクリックします。 "Langage file:"にアップロードするコア翻訳ファイル、"ja.po"をリストアップし、"Import into:"リストからJapanese (日本語) を選択して、Mode: のラジオボタンで Strings in the... を選択後、"Import"ボタンをクリックします。 インポート後は、言語リストにJapaneseが追加されているので、チェックボックスをオンにし、"Defaut"ラジオボタンを選択して、"Save configuration"ボタンをクリックします。
- ロケールモジュールの有効