环境:空间-HostMonster,独立 IP
           域名已先加好,访问有效。

安装:WordPress MU 2.62

预先警告:不要按网上安装 WordPress 的程序安装 WordPress MU !MU更简单!
              1. 不需要手动修改
wp-config-sample.php 文件 !
                 2. 不需要另外安装中文包。

步骤:

一、 规划好WordPress空间,如果用顶级域名访问,先在HM中添加此域名并生效,生成好相应目录。

二、 建数据库,添加一个数据库用户,设置密码,记下这些内容。
    注意HM会自动在数据库和用户名前加上一个前缀,是你主域名去掉com前的逗号,例如用户名为you,主域名为abc.com,则实际生成用户名:abccom_you。

三、 下载Wordpress主程序压缩文件和语言包压缩文件,解压到本地。
    注意!安装 WordPress 的教程会此处会要你修改 wp-config-sample.php ,安装 MU 并不需要这样做!

四、 将解压目录下的所有文件和目录上传到空间目录,如使用abc.com域名访问,则是 /public_html/abc/ 目录。

五、 在浏览器中键入你的 URL ,MU 会自动运行安装向导!
    注意:网上的  WordPress 的安装教程会告诉你输入类似这样 http://abc.com/wp-admin/install.php 的网址,那你就得和我一样重头来过!

六、按向导要求输入 数据库名、密码、主机名(99% 的情况下用默认的 ’localhost’ 不用改),选择你要用的网站代码,我是用推荐的 uTF-8。
    注意!此处会要求你留一个有效邮箱地址,MU 会将你的初始密码发到邮箱去的!

七、提交,停一下,就看到了:

Installation Finished!

Congratulations!
Your WordPress µ site has been configured.

You can log in using the username “admin” and password *********

可以登录了!

八、去你的邮箱收开通信,内容如下:

Your new WordPress MU site has been created at
http://5d0d.net/

Login details:
Username: admin
Password: ************
Login: http://5d0d.net/wp-login.php

往后就可以按邮件中的地址、用户名和密码登录,进入管理界面了!

我的教训:

本身在 HM安装 MU 是挺简单的,可是我重装了三次才成功。

第一次失败 连接不到数据库,让确认数据库存在且用户存在并密码正确,回到 HM 检查,哪项都没错!最后发现是我建了数据库和用户后,竟然还需要将用户添加到此数据库,我没有看到页面底部那个添加按钮,汗~~~

第二次失败  被网上社区里的教程误导,修改了 wp-config-sample.php 文件,结果提示 wp-config-sample.php 文件 base=”DBSE” 不对,应是 ”/” 或者什么什么,又改后上传,告诉我 MU 发现 wp-config 已存在,此时才告诉我不需要上传的提示,程序会自动生成它!晕!

    可是重装可不是那么便宜,要求删除数据库中已生成的表、wp-config.php 文件 和 .htaccess 文件。重装那么啰嗦,不敢妄动,在网上搜到一个繁体帖子才明白怎么装。

还在探索的问题:

    1. 发现汉化不完全,不知是不是我的不对?

    2. 不太明白邮局怎么不用自己做任何事就有了?就是给注册用户发封信要几小时才过去,而且有的对方还是乱码。

    3. 泛域名解析还有问题,不太会弄。注册用户不能用 http://username.5d0d.net 的域名方式访问,只能用 http://5d0d.net/username 的目录方式访问申请到的博客。

    学会了再来献丑。或者行家教教吧。

附:先看看 MU 的安装提示,我早些看到就少走弯路了!

Installing WordPress µ

Welcome to WordPress µ. I will help you install this software by asking you a few questions and asking that you change the permissions on a few directories so I can create configuration files and make a directory to store all your uploaded files.

If you have installed the single-blog version of WordPress before, please note that the WordPress µ installer is different and trying to create the configuration file wp-config.php youself may result in a broken site. It’s much easier to use this installer to get the job done.

What do I need?

  • Access to your server to change directory permissions. This can be done through ssh or ftp for example.
  • A valid email where your password and administrative emails will be sent.
  • An empty MySQL database.Tables are prefixed with wp_ which may conflict with an existing WordPress install.
  • Wildcard dns records if you’re going to use the virtual host functionality. Check the README for further details.

Please make sure mod_rewrite is installed as it will be activated at the end of this install.

If the mod_rewrite module is disabled ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.

Blog Addresses

Please choose whether you would like blogs for the WordPress µ install to use sub-domains or sub-directories. You can not change this later. We recommend sub-domains.

Sub-domains (like blog1.example.com)
Sub-directories (like example.com/blog1

Database

Below you should enter your database connection details. If you’re not sure about these, contact your host.

Database Name

 

User Name

 

Password

 

Database Host

 

Server Address

Server Address

What is the Internet address of your site? You should enter the shortest address possible. For example, use example.com instead of www.example.com but if you are going to use an address like blogs.example.com then enter that unaltered in the box below.

Site Details

Site Title

What would you like to call your site?

Email

Your email address.

成功提示:

Installation Finished!

Congratulations!
Your WordPress µ site has been configured.

You can log in using the username “admin” and password *********

Directory Permissions

Please remember to reset the permissions on the following directories:

  • /home1/gxkjrcom/public_html/5d0d
  • /home1/gxkjrcom/public_html/5d0d/wp-content/

You can probably use the following command to fix the permissions but check with your host if it doubt:
chmod 755  /home1/gxkjrcom/public_html/5d0d /home1/gxkjrcom/public_html/5d0d/wp-content/ 

Further reading

  • If you run into problems, please search the WordPress µ Forums where you will most likely find a solution. Please don’t post there before searching. It’s not polite.
  • There is also the WordPress µ Trac. That’s our bug tracker.

Thanks for installing WordPress µ!

Donncha
wpmu version: 2.6.2