ann
冰是没有未来的,因为它的永恒
posts - 107,comments - 34,trackbacks - 0
1. 下载最新的wordpress-mu
wget http://mu.wordpress.org/latest.tar.gz

2. 解压
tar -xzvf latest.tar.gz
移动到:/data/wpmu

3. 创建数据库
mysql -u root -p
提示输入密码
create database wordpress_mu_db;
创建数据库用户
GRANT ALL ON wordpress_mu_db.* TO user@localhost identified by "password";



4. 配置nginx
   server {
    listen 80;
    server_name www.myblog.com;
    access_log  /var/log/nginx/myblog.com-access.log;
 
    location  / {
                root /data/wpmu;
                index index.php;
                rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
                if (!-e $request_filename) {
                       rewrite ^.+/?(/wp-.*) $1 last;
                       rewrite ^.+/?(/.*\.php)$ $1 last;
                       rewrite ^(.+)$ /index.php?q=$1 last;
                }
     }


    location  ~  \.php$   {
                rewrite ^/.*(/wp-admin/.*\.php)$ $1;
                rewrite ^/(\w*)/wp-login.php$ /wp-login.php;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME /data/wpmu$fastcgi_script_name;
                include  fastcgi_params;
        }
}

5. 安装 访问http://www.myblog.com/index.php
    根据提示修改相应的权限


posted on 2009-10-30 11:55 冰是没有未来的,因为它的永恒 阅读(189) 评论(0)  编辑  收藏 所属分类: 开源blog

当下,把心放下 放下如果是可能的,那一定是在当下,
不在过去,也不在未来。
当下放下。唯有活在当下,你的问题才能放下。