Just a blog. Welcome! [ Get a user | Login | RSS ]

February 21WordPress Mu 尝试记。

Author: GoL | Commonts: 0 | Views: 1487

Previous | NextCategory: 学习笔记 | Tages: wordpress, mu, 安装, 问题

终于开始动手组装这个WordPress Mu多用户博客系统了。

真的不是一般的烦。而且安装的方法和wordpress的不一样。

把文件放在站点的blogs目录下

先配置好blogswp-config-sample.php

大概要配置下面两处代码:
第一处是配置数据库信息:

PHP代码
  1. define('DB_NAME''wordpress');    // The name of the database   
  2. define('DB_USER''username');     // Your MySQL username   
  3. define('DB_PASSWORD''password'); // ...and password   
  4. define('DB_HOST''localhost');    // 99% chance you won't need to change this value   

第二处是配置站点目录:

PHP代码
  1. // double check $base   
  2. if$base == 'BASE' )   
  3.  die'Problem in wp-config.php - $base is set to BASE when it should be the path   
  4.  
  5. like "/" or "/blogs/"! Please fix it!' );   

如果是在本地(localhost)安装,必须修改hosts。

hosts文件位置:

Windows系统:
C:\WINNT\system32\drivers\etc\hosts

C:\windows\system32\drivers\etc\hosts

Linux系统:
/etc/hosts

修改系统hosts文件的localhost行:
127.0.0.1      imgol.com  localhost

不用重启系统, 然后网址填写使用imgol.com

安装方式有两种: 子域名(subdomain)和子目录(subdirectory),分别是:
子域名:
yourname.imgol.com
子目录:
imgol.com/blogs/yourname


注: 这里的imgol.com仅用于本地机器测试.

可以周周转转调试好后。

发现安装成功了。但是管理帐号和申请新用户的密码发不出。

原来我本地没有邮件服务。

白忙一场了。也累了。暂停。

I have something to say...

[ Login | Get a user ]