| 1 |
WordPress Multi User |
|---|
| 2 |
-------------------- |
|---|
| 3 |
|
|---|
| 4 |
WordPress MU is a multi user version of WordPress. |
|---|
| 5 |
|
|---|
| 6 |
If you're not comfortable editing PHP code, taking care of a complex |
|---|
| 7 |
webserver and database system and being pro-active about following |
|---|
| 8 |
developments of this project then run, don't walk, to |
|---|
| 9 |
http://wordpress.com/ and sign yourself and your friends up to free blogs. |
|---|
| 10 |
It's easier in the long run and you'll save yourself a lot of pain |
|---|
| 11 |
and angst. |
|---|
| 12 |
|
|---|
| 13 |
Install |
|---|
| 14 |
======= |
|---|
| 15 |
1. Download and unzip the WordPress MU package, if you haven't already. |
|---|
| 16 |
The unzipped files will be created in a directory named "wordpressmu" |
|---|
| 17 |
followed by a version or "wpmu" followed by a date. For the sake of |
|---|
| 18 |
convenience, rename this folder "wordpressmu" before continuing. |
|---|
| 19 |
2. Create a database for WordPress MU on your web server, as well as a |
|---|
| 20 |
MySQL user who has all privileges for accessing and modifying it. |
|---|
| 21 |
3. Place the WordPress MU files in the desired location on your web server: |
|---|
| 22 |
* If you want to integrate WordPress MU into the root of your |
|---|
| 23 |
domain (e.g. http://example.com/), move or upload all contents of |
|---|
| 24 |
the unzipped WordPress MU directory (but excluding the directory |
|---|
| 25 |
itself) into the root directory of your web server. |
|---|
| 26 |
* If you want to have your WordPress MU installation in its own |
|---|
| 27 |
subdirectory on your web site (e.g. http://example.com/blogs/), |
|---|
| 28 |
rename the directory wordpressmu to the name you'd like the |
|---|
| 29 |
subdirectory to have and move or upload it to your web server. |
|---|
| 30 |
For example if you want the WordPress MU installation in a |
|---|
| 31 |
subdirectory called "blog", you should rename the directory called |
|---|
| 32 |
"wordpressmu" to "blogs" and upload it to the root directory of your |
|---|
| 33 |
web server. |
|---|
| 34 |
4. Run the WordPress MU installation script by accessing index.php |
|---|
| 35 |
in your favorite web browser. |
|---|
| 36 |
* If you installed WordPress MU in the root directory, you should |
|---|
| 37 |
visit: http://example.com/index.php |
|---|
| 38 |
* If you installed WordPress MU in its own subdirectory called |
|---|
| 39 |
blogs, for example, you should visit: http://example.com/blogs/index.php |
|---|
| 40 |
(Adapted from http://codex.wordpress.org/Installing_WordPress) |
|---|
| 41 |
|
|---|
| 42 |
If you're upgrading, skip to the end of this document. |
|---|
| 43 |
|
|---|
| 44 |
Apache |
|---|
| 45 |
====== |
|---|
| 46 |
Apache must be configured so that mod_rewrite works. Here are |
|---|
| 47 |
instructions for Apache 2. Apache 1.3 is very similar. |
|---|
| 48 |
|
|---|
| 49 |
1. Make sure a line like the following appears in your httpd.conf |
|---|
| 50 |
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so |
|---|
| 51 |
|
|---|
| 52 |
2. In the <Directory> directive of your virtual host, look for this |
|---|
| 53 |
line |
|---|
| 54 |
"AllowOverride None" |
|---|
| 55 |
and change it to |
|---|
| 56 |
"AllowOverride FileInfo Options" |
|---|
| 57 |
|
|---|
| 58 |
3. In the <VirtualHost> section of the config file for your host there |
|---|
| 59 |
will be a line defining the hostname. You need to add the following |
|---|
| 60 |
if you want virtual hosts to work properly: |
|---|
| 61 |
"ServerAlias *.domain.tld" |
|---|
| 62 |
Replace domain.tld with whatever your one is, and remove the quotes. |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
DNS |
|---|
| 66 |
=== |
|---|
| 67 |
If you want to host blogs of the form http://blog.domain.tld/ where |
|---|
| 68 |
domain.tld is the domain name of your machine then you must add a |
|---|
| 69 |
wildcard record to your DNS records. |
|---|
| 70 |
This usually means adding a "*" hostname record pointing at your |
|---|
| 71 |
webserver in your DNS configuration tool. |
|---|
| 72 |
Matt has a more detailed explanation: |
|---|
| 73 |
http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/ |
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
PHP |
|---|
| 77 |
=== |
|---|
| 78 |
For security reasons, it's very important that PHP be configured as follows: |
|---|
| 79 |
|
|---|
| 80 |
1. Don't display error messages to the browser. This is almost always |
|---|
| 81 |
turned off but sometimes when you're testing you turn this on and forget |
|---|
| 82 |
to reset it. |
|---|
| 83 |
|
|---|
| 84 |
2. GLOBAL variables must be turned off. This is one of the first things |
|---|
| 85 |
any security aware admin will do. These days the default is for it to |
|---|
| 86 |
be off! |
|---|
| 87 |
|
|---|
| 88 |
3. If you want to restrict blog signups, set the restrict domain email |
|---|
| 89 |
setting in the admin. |
|---|
| 90 |
|
|---|
| 91 |
The easiest way of configuring it is via the .htaccess file that is |
|---|
| 92 |
created during the install. If you haven't installed WPMU yet then edit |
|---|
| 93 |
the file htaccess.dist in this directory and add these two lines at the |
|---|
| 94 |
top: |
|---|
| 95 |
|
|---|
| 96 |
php_flag register_globals 0 |
|---|
| 97 |
php_flag display_errors 0 |
|---|
| 98 |
|
|---|
| 99 |
This is NOT included in that file by default because it doesn't work on |
|---|
| 100 |
all machines. If it doesn't work on your machine, you'll get a cryptic |
|---|
| 101 |
"500 internal error" after you install WPMU. To remove the offending lines |
|---|
| 102 |
just edit the file ".htaccess" in your install directory and you'll see |
|---|
| 103 |
them at the top. Delete and save the file again. |
|---|
| 104 |
Read here for how to enable this: http://ie.php.net/configuration.changes |
|---|
| 105 |
|
|---|
| 106 |
If you don't want to edit your .htaccess file then you need to change your |
|---|
| 107 |
php.ini. It's beyond the scope of this README to know exactly where it is |
|---|
| 108 |
on your machine, but if you're on a shared hosted server you probably |
|---|
| 109 |
don't have access to it as it requires root or administrator privileges |
|---|
| 110 |
to change. |
|---|
| 111 |
|
|---|
| 112 |
If you do have root access, try "locate php.ini" or check in: |
|---|
| 113 |
|
|---|
| 114 |
/etc/php4/apache2/php.ini |
|---|
| 115 |
/usr/local/lib/php.ini |
|---|
| 116 |
|
|---|
| 117 |
Once you have opened your php.ini, look for the sections related to |
|---|
| 118 |
register_globals and display_errors. Make sure both are Off like so: |
|---|
| 119 |
|
|---|
| 120 |
display_errors = Off |
|---|
| 121 |
register_globals = Off |
|---|
| 122 |
|
|---|
| 123 |
You'll have to restart Apache after you modify your php.ini for the |
|---|
| 124 |
settings to be updated. |
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
UPGRADING |
|---|
| 128 |
========= |
|---|
| 129 |
Please see this page for instructions on upgrading your install: |
|---|
| 130 |
http://trac.mu.wordpress.org/wiki/UpgradingWpmu |
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
Support Forum and Bug Reports |
|---|
| 134 |
============================= |
|---|
| 135 |
Please read http://trac.mu.wordpress.org/wiki/DebuggingWpmu before |
|---|
| 136 |
asking any questions. Without all the information required there |
|---|
| 137 |
we'll just ask for it anyway or worse, your request will be ignored. |
|---|
| 138 |
|
|---|
| 139 |
http://mu.wordpress.org/forums/ |
|---|
| 140 |
|
|---|
| 141 |
Trac is our bug tracking system. Again, please read the above link |
|---|
| 142 |
before submitting a bug report. |
|---|
| 143 |
http://trac.mu.wordpress.org/report/1 |
|---|
| 144 |
|
|---|
| 145 |
You can login to both sites using your wordpress.org username and |
|---|
| 146 |
password. |
|---|
| 147 |
|
|---|
| 148 |
http://mu.wordpress.org/ |
|---|