现在的位置: 首页 > 综合 > 正文

Drupal 学习笔记 (1)

2011年09月23日 ⁄ 综合 ⁄ 共 641字 ⁄ 字号 评论关闭

安装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.

抱歉!评论已关闭.