在dreamhost上成功安装wordpress mu(wpmu)
赫连心思
2023-12-01
wpmu安装好了,想不到在dh上一次就成功了。
一、首先把wpmu的压缩包(wordpress-mu-1.2.5a.tar.gz)用ftp上传到dh上
然后在dh的webftp上解压
然后就是绑定域名finexxx.cn,
添加mysql.finexxx.cn,并新建数据库
访问finexxx.cn或者www.finexxx.cn都可以,而且不会说跳转到哪里(奇怪,之前绑定的几个域名都会跳转到加www的url上)
提示
Installation Finished!
Congratulations! Your WordPress µ site has been configured.
You can log in using the username "admin" and password "XXXXXX"
这时已经可以登录了
然后给dh发邮件申请开通wildcard DNS
一个小时内dh support就回复说已经开通了
现在在管理面板中添加一个新的博客,地址是XXX.finexxx.cn
就可以直接访问了。试了一下,用户还可以自己注册,而且邮件发送密码的功能也有,一切都很正常
dh的设置真是很好啊
自己没有做任何设置就自动可以泛域名解析啊,真是方便啊
二、但是这么安装好后的wp是英文版的,于是我下载了中文包http://wordpress.org.cn/forums/thread-1006-1-1.html ,即这里:http://yskin.net/wpmu-chinese/
安装中文包时有两点注意:
1.zh_CN.mo要上传到服务器中(我之前傻了,在本机上,忘了上传)
2.新建的目录是languages,注意有个s
三、这样子以后不管admin还是新建的博客,设置博客名时都是乱码,于是找到了这里的方法:
http://wordpress.org.cn/forums/archiver/tid-3466.html
删除 wp-config.php 中有uft-8编码的那行
就可以了,不再乱码
(注意,因为我安装wpmu时是在空间上解压缩,所以应该先把空间里的wp-config.php下载下来再编辑
而不是编辑本地的然后上传 )
四、至此,wpmu已经全部安装完毕
以下不重要
不过在本机架设时,会出现
“Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!。”
的错误,然后按这里的方法http://www.robbin.cc/vb/archive/index.php/t-306.html
“剛解決了,我是預先設定wp-config.php,就會出現那串error,我把wp-config.php刪掉後,refresh就可以了。我是從http://mu.wordpress.org/forums/topic.php?id=1384找到答案的。
不過是chooch的回應讓我解決的 :
Figured out a fix for this this problem, it perplexed me for the better part of today. Luckily it's a real easy fix - make sure that there is NO wp-config.php file in the root of your installation, if there is delete it and refresh the screen.. This is the only thing that worked for me.
If you are getting this error I suggest you delete all the install files from your server, untar (or unzip) a fresh set of files and upload them. Do Not enter any Db information into any files (wp-config-sample.php for example) and make sure there are no tables in the Db itself.
感謝感謝。“
删了wp-config,好像就可以了
http://mu.wordpress.org/forums/topic.php?id=4234&page 这里也有解决的方法(未看)