#contents
http://piano.smb.net/drupal/index.php
*Drupal6 [#n0b1913f]
#ref(drupal6.gif)
 portinstall www/drupal6

 You now need to create the DB where Drupal is going to live
 
 PostgreSQL::
   createdb -U pgsql -W drupal
   createuser -U pgsql -P -e drupal
   createlang -U pgsql -W plpgsql drupal
 
 MySQL::
   mysqladmin -u dba_user -p create drupal
   mysql -u dba_user -p
   GRANT ALL PRIVILEGES ON drupal.* TO drupal@localhost IDENTIFIED BY 'passwd';
 
 You also need to add appropriate configuration directives to your apache
 configuration file (/usr/local/etc/apache(2)/httpd.conf).
 
 A typical configuration might read:
 
    Alias /drupal "/usr/local/www/drupal6"
    <Directory "/usr/local/www/drupal6">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
 
 Please see http://drupal.org/cron for important information on setting up
 periodic maintenance tasks in Drupal.
 
 For important information about upgrading from previous versions of Drupal, please
 please see: /usr/local/www/drupal6/doc/UPGRADE.txt
**Apache の設定確認? [#ifc32e21]
インストール後のメッセージでは、(/usr/local/etc/apache(2)/httpd.conf) に書き込めとあるが、
http://d.hatena.ne.jp/tueda_wolf/20080601/p2
を参考?に、
 /usr/local/etc/apache22/Includes/drupal.conf
として、
   Alias /drupal "/usr/local/www/drupal6"
   <Directory "/usr/local/www/drupal6">
       Options Indexes FollowSymlinks MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
を追加

***Drupal では、さらに [#f07838f5]
 # cat /usr/local/etc/apache22/httpd.conf
 <IfModule dir_module>
    DirectoryIndex index.html index.php
 </IfModule>
と言う具合に、index.php も加えないと動作しません。
**MySQLデータベースを作る [#a2c3c4c2]
 piano:root {57} % mysql -u root -p
 Enter password:
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 4547
 Server version: 5.1.28-rc-log FreeBSD port: mysql-server-5.1.28_1 
 
 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
 
 mysql> create database drupal;
 Query OK, 1 row affected (0.00 sec)
 
 mysql> use drupal
 Database changed
 mysql> grant all privileges on drupal
    ->
    -> .*
    -> TO drupal@localhost IDENTIFIED BY 'kuji92';
    -> TO drupal@localhost IDENTIFIED BY '**********';
 Query OK, 0 rows affected (0.00 sec)
 
 mysql> flush privileges;
 Query OK, 0 rows affected (0.00 sec)
 
 mysql> exit
 Bye
**Drupal 設定 [#wa923a72]
http://piano.smb.net/drupal/install.php へアクセス。英語版なので指示に従って
http://drupal.org/project/translations
へアクセスし、ja-6.x-1.2.tar.gz をとってくる。解凍して
/usr/local/www/drupal6 のファイルに上書き。
再度、http://piano.smb.net/drupal/install.php へアクセスすると、日本語メニュー出現。
#ref(drupal_ja.gif)

 必要条件の問題
 インストール処理を継続するには、以下のエラーを解決する必要があります:
 The Drupal installer requires that you create a settings file as part of the  installation process. 
 Copy the ./sites/default/default.settings.php file  to ./sites/default/settings.php. 
 Change file permissions so that it is writable by the web server. If you are  unsure how to grant file permissions, please consult the on-line handbook. 
 More details about installing Drupal are available in INSTALL.txt.
 エラーメッセージを確認した上で、再試行してください。
というエラー。で
 piano:root {51} % cd /usr/local/www/drupal6/sites/default/
 piano:root {52} % ll
 total 22
 -rw-r--r--  1 www  www  8917 Nov  8 15:01 default.settings.php
 -rw-r--r--  1 www  www  8917 Nov  8 15:01 default.settings.php-dist
 drwxrwxr-x  2 www  www   512 Nov  8 15:53 files
 piano:root {53} % cp -P default.settings.php settings.php
 piano:root {54} % ll
 total 32
 -rw-r--r--  1 www   www  8917 Nov  8 15:01 default.settings.php
 -rw-r--r--  1 www   www  8917 Nov  8 15:01 default.settings.php-dist
 drwxrwxr-x  2 www   www   512 Nov  8 15:53 files
 -rw-r--r--  1 root  www  8917 Nov  8 16:00 settings.php
 
 piano:root {55} % chown www:www settings.php
する

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS