瑞雪年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::

安装Drupal.


-> Install LAMP
tasksel install lamp-server


-> Create database
mysql -u root -p
create user 'kb'@'localhost' identified by 'password';
create database kbdb;
grant all privileges on kbdb.* to 'kb'@'localhost';


-> Prepare for clean URL
a2enmod rewrite
 /etc/init.d/apache2 restart
vim /etc/apache2/sites-enabled/000-default
-> change "AllowOverride None" to "AllowOverride All"


-> Install drupal
cd ~
mkdir www
cd www
sudo su
wget http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz
tar -xvf drupal-6.20.tar.gz
cp drupal-6.20 /var/www/kb -R
cd /var/www/kb/sites/default
cp default.settings.php settings.php
chmod 777 settings.php
mkdir files
chmod 777 files
-> go to http://localhost/kb, and run the wizzard to install.

posted on 2011-02-28 15:57  瑞雪年  阅读(273)  评论(0编辑  收藏  举报