操作説明書‎ > ‎

Drupalのインストール(6.17, 2010.06.22)


$ sudo aptitude drupal6
$ a2enmod rewrite
$ sudo /etc/init.d/apache2 restart
$ sudo sed -i 's/# RewriteBase \/drupal/ RewriteBase \/drupal6/' /etc/drupal/6/htaccess


#日本語版の導入。
$ wget http://jaist.dl.sourceforge.net/project/drupal-jp/Drupal%20Japanese%20Distribution/6.17-ja-rev.017/drupal-6.17-japanese_017.tgz
$ tar xzvf drupal-6.17-japanese_017.tgz
$ cd drupal-6.17/
$ sudo cp .htaccess /etc/drupal/6/htaccess
$ sudo rm -r /usr/share/drupal6/includes
$ sudo cp -r includes/ /usr/share/drupal6/
$ sudo cp install.php /usr/share/drupal6/
$ sudo rm -r /usr/share/drupal6/misc
$ sudo cp -r misc/ /usr/share/drupal6/
$ sudo rm -r /usr/share/drupal6/modules/
$ sudo cp -r modules/ /usr/share/drupal6/
$ sudo rm -r /etc/drupal/6/profiles/
$ sudo cp -r profiles/ /etc/drupal/6/
$ sudo rm -r /usr/share/drupal6/scripts/
$ sudo cp -r scripts/ /usr/share/drupal6/
$ sudo rm -r /etc/drupal/6/sites/
$ sudo cp -r sites/ /etc/drupal/6/
$ sudo rm -r /usr/share/drupal6/themes/
$ sudo cp -r themes/ /usr/share/drupal6/
$ sudo cp update.php /usr/share/drupal6/


$ sudo chmod 666 /etc/drupal/6/sites/default/settings.php
$ sudo chmod 777 /etc/drupal/6/sites/default/files



以下にアクセスしてインストール。
http://bis19.nenv.k.u-tokyo.ac.jp/drupal6/install.php
※データベース名はdrupal6、ユーザ名はroot。

$ sudo chmod 644 /etc/drupal/6/sites/default/settings.php

Comments