http://piano.smb.net/drupal/index.php
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
インストール後のメッセージでは、(/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>
を追加
# cat /usr/local/etc/apache22/httpd.conf <IfModule dir_module> DirectoryIndex index.html index.php </IfModule>
と言う具合に、index.php も加えないと動作しません。
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 '**********'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
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 へアクセスすると、日本語メニュー出現。
必要条件の問題 インストール処理を継続するには、以下のエラーを解決する必要があります: 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
する