1. 下载最新的drupal
wget http://drupal.org/files/projects/drupal-x.x.tar.gz
2. 解压
tar -zxvf drupal-x.x.tar.gz
移动到:/data/blog/drupal
3. 创建数据库
mysql -u root -p
提示输入密码
create database drupal_db;
创建数据库用户
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON drupal_db.* TO 'username'@'localhost' IDENTIFIED BY 'password';
4. 创建文件
cp sites/default/default.settings.php sites/default/settings.php
chmod o+w sites/default/settings.php
chmod o+w sites/default/
5. 配置nginx
server {
listen 80;
server_name www.myblog.com;
access_log /var/log/nginx/myblog.com-access.log;
location /drupal {
root /data/blog/;
index index.php;
}
location ~* /drupal/.+\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/blog/$fastcgi_script_name;
include fastcgi_params;
}
}
5. 安装 访问http://www.myblog.com
根据操作
会提醒创建相应的文件
posted on 2009-10-30 12:02
冰是没有未来的,因为它的永恒 阅读(143)
评论(0) 编辑 收藏 所属分类:
开源blog