wordpress mu安装

wordpress mu的安装跟wordpress安装可以说是一样的。

没有什么特别的地方。想实现user.domain.tld的话,一定需要DNS那边有一个泛域名解释,也就是*.domain.tld。

服务器方面设置,在wordpress mu的Virtualhost那里加入ServerAlias *.domain.tld。

WordPress mu安装之后可能有部分themes跟plugins无法正常使用。无法正常的使用的 themes跟plugins主要是SQL语句那里指定的表有问题。只要把FROM后面部分相应修改就行了。

中文 WordPress 工具箱那里有几个函数无法正常使用的。我只是做一个示范修改。

function get_recent_comments部分的

$request = “SELECT ID, comment_ID, comment_content, comment_author FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID AND (post_status = ‘publish’ OR post_status = ‘static’)”;

因为Wordpress mu没有定义到 $tableposts, $tablecomments会导致插件无法正常使用。我们只要把$tableposts, $tablecomments分别改为$wpdb->posts,$wpdb->comments就可以正常使用了。

关于Wordpress mu的安装就写这么多,以后发现什么问题再写了。呵呵。。

2 条评论 »

  1. Heyi said,

    六月 8, 2008 at 11:46 上午

    请教下,Wordpress Mu Home的这个首页的标题怎么修改?似乎后台不让编辑了,有什么修改方法?修改模板还是到mysql数据库里查找替换?我的WPMU:http://blog.erika.com.cn/

  2. catch said,

    六月 11, 2008 at 9:59 上午

    你不是修改了那个标题了吗?

RSS feed for comments on this post · TrackBack URL

发表评论

You must be logged in to post a comment.