Akelos チュートリアル 2

データベース環境の設定を行う。

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 5.0.51a Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database booklink default character set utf8 collate utf8_general_ci;
Query OK, 1 row affected (0.01 sec)

mysql> create database booklink_dev default character set utf8 collate utf8_general_ci;
Query OK, 1 row affected (0.00 sec)

mysql> create database booklink_tests default character set utf8 collate utf8_general_ci;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye

http://localhost/booklink/ にブラウザでアクセスする。

これ以降の設定で、ディレクトリの権限を事前に設定しておく必要がある。

% chmod 0777 ~/booklink/config/
% chmod 0777 ~/akelos/lib/

ここでデータベースへ接続する設定ファイルが生成される。
ディレクトリへの書き込み権限が付与されていない場合、上記の権限の変更を行っていないとエラーが表示される。

下記の言語設定以外で必要な言語があれば、ここで設定を行うことができる。

下図の画面が表示されれば、ブラウザ上での設定は完了。

設定が完了したら、ディレクトリの権限をもとに戻しておく。

% chmod 0755 ~/booklink/config/ ~/akelos/lib/