您的位置:首页 > 其它

Drupal 学习笔记 (1)

2011-02-28 15:57 246 查看
安装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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: