February 21WordPress Mu 尝试记。
Author: GoL | Commonts: 0 | Views: 1487
终于开始动手组装这个WordPress Mu多用户博客系统了。
真的不是一般的烦。而且安装的方法和wordpress的不一样。
把文件放在站点的blogs目录下
先配置好blogs的wp-config-sample.php
大概要配置下面两处代码:
第一处是配置数据库信息:
PHP代码
- define('DB_NAME', 'wordpress'); // The name of the database
- define('DB_USER', 'username'); // Your MySQL username
- define('DB_PASSWORD', 'password'); // ...and password
- define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
第二处是配置站点目录:
PHP代码
- // double check $base
- if( $base == 'BASE' )
- die( 'Problem in wp-config.php - $base is set to BASE when it should be the path
- like "/" or "/blogs/"! Please fix it!' );
如果是在本地(localhost)安装,必须修改hosts。
hosts文件位置:
Windows系统:
C:\WINNT\system32\drivers\etc\hosts
或
C:\windows\system32\drivers\etc\hostsLinux系统:
/etc/hosts修改系统hosts文件的localhost行:
127.0.0.1 imgol.com localhost不用重启系统, 然后网址填写使用imgol.com
安装方式有两种: 子域名(subdomain)和子目录(subdirectory),分别是:
子域名:
yourname.imgol.com
子目录:
imgol.com/blogs/yourname
注: 这里的imgol.com仅用于本地机器测试.
可以周周转转调试好后。
发现安装成功了。但是管理帐号和申请新用户的密码发不出。
原来我本地没有邮件服务。
白忙一场了。也累了。暂停。