WordPress: Installing WPMU:修訂間差異
(新頁面: == WordPress MU, or WordPress Multi User == WordPress MU, or WordPressμ, is the multi-user version of the WordPress blogging application, that allows you to ru...) ? |
無編輯摘要 |
||
第1行: | 第1行: | ||
== WordPress MU, or WordPress Multi User == | == WordPress MU, or WordPress Multi User == | ||
== WordPress MU, 或者WordPress多個用戶== | |||
[[WordPress:WordPressMU|WordPress MU]], or WordPressμ, is the multi-user version of the WordPress blogging application, that allows you to run hundreds of thousands of blogs with a single install of WordPress, and is most famously used for WordPress.com. | [[WordPress:WordPressMU|WordPress MU]], or WordPressμ, is the multi-user version of the WordPress blogging application, that allows you to run hundreds of thousands of blogs with a single install of WordPress, and is most famously used for WordPress.com. | ||
[[WordPress:WordPressMU|WordPress MU]],或者WordPressμ,是著名的WordPress博客軟件的多用戶版本,安裝一個WordPress,就可以運行成千上萬個博客,最常見是在WordPress.com上的使用。 | |||
== Installing WordPress MU == | == Installing WordPress MU == | ||
== 安裝 WordPress MU == | |||
Adapted from [[WordPress:Installing_WordPress]]: | Adapted from [[WordPress:Installing_WordPress]]: | ||
根據(jù)[[WordPress:Installing_WordPress| Installing_WordPress]]改編: | |||
1. [http://mu.wordpress.org/download/ Download] and unzip the WordPress MU package, if you haven't already. The unzipped files will be created in a directory named "wordpressmu" followed by a version or "wpmu" followed by a date. | |||
1. [http://mu.wordpress.org/download/ | 1.如果你還沒有準備好,[http://mu.wordpress.org/download/ 下載]并且解壓WordPress MU軟件包。解壓后的文件會在名為"wordpressmu"目錄中創(chuàng)建,目錄后有個版本名稱或者"wpmu"后面有個日期。 | ||
For the sake of convenience, rename this folder "wordpressmu" before continuing. | For the sake of convenience, rename this folder "wordpressmu" before continuing. | ||
為了更便利,將這個文件夾重新命名為"wordpressmu"再繼續(xù)。 | |||
2. Create a database for WordPress MU on your web server, as well as a !MySQL user who has all privileges for accessing and modifying it. | 2. Create a database for WordPress MU on your web server, as well as a !MySQL user who has all privileges for accessing and modifying it. | ||
2.在你的網(wǎng)絡(luò)服務(wù)器上為WordPress MU創(chuàng)建個數(shù)據(jù)庫,!MySQL用戶有權(quán)限訪問和更改這個數(shù)據(jù)庫。 | |||
3. Place the WordPress MU files in the desired location on your web server: | 3. Place the WordPress MU files in the desired location on your web server: | ||
3.將WordPress MU文件放到你的網(wǎng)絡(luò)服務(wù)器上適當?shù)奈恢蒙希?/ins> | |||
* If you want to integrate WordPress MU into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress MU directory (but excluding the directory itself) into the root directory of your web server. | * If you want to integrate WordPress MU into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress MU directory (but excluding the directory itself) into the root directory of your web server. | ||
*如果你希望將WordPress MU與你的根域名相結(jié)合(例如http://example.com/)將解壓的WordPress MU目錄的所有內(nèi)容(但是目錄本身除外)轉(zhuǎn)移或者上傳到你的網(wǎng)絡(luò)服務(wù)器的根目錄。 | |||
* If you want to have your WordPress MU installation in its own subdirectory on your web site (e.g. http://example.com/blogs/), rename the directory wordpressmu to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress MU installation in a subdirectory called "blog", you should rename the directory called "wordpressmu" to "blogs" and upload it to the root directory of your web server. ? | * If you want to have your WordPress MU installation in its own subdirectory on your web site (e.g. http://example.com/blogs/), rename the directory wordpressmu to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress MU installation in a subdirectory called "blog", you should rename the directory called "wordpressmu" to "blogs" and upload it to the root directory of your web server. ? | ||
*如果你將WordPress MU安裝在你的網(wǎng)站上WordPress MU自身的子目錄中(例如http://example.com/blogs/),將目錄wordpressmu重新命名為你喜歡的子目錄名并且將這個目錄轉(zhuǎn)移或者上傳到你的網(wǎng)絡(luò)服務(wù)器上。例如,如果你希望WordPress MU安裝在稱為"博客"的子目錄上,你應(yīng)該將稱為"wordpressmu"的目錄重新命名為"blogs"并且將目錄上傳到你的網(wǎng)絡(luò)服務(wù)器的根目錄上。 | |||
4. Run the WordPress MU installation script by accessing index.php in your favorite web browser. | 4. Run the WordPress MU installation script by accessing index.php in your favorite web browser. | ||
4.在你最喜愛的網(wǎng)絡(luò)瀏覽器中訪問index.php,運行安裝WordPress MU腳本。 | |||
* If you installed WordPress MU in the root directory, you should visit: http://example.com/index.php | * If you installed WordPress MU in the root directory, you should visit: http://example.com/index.php | ||
*如果你在根目錄中安裝了WordPress MU,你應(yīng)該訪問:http://example.com/index.php | |||
* If you installed WordPress MU in its own subdirectory called blogs, for example, you should visit: http://example.com/blogs/index.php ? | * If you installed WordPress MU in its own subdirectory called blogs, for example, you should visit: http://example.com/blogs/index.php ? | ||
*如果你在WordPress MU自身稱為博客的子目錄中安裝WordPress MU,你應(yīng)該訪問:http://example.com/blogs/index.php | |||
*If you're upgrading, skip to the end of this document. | *If you're upgrading, skip to the end of this document. | ||
*如果你正在升級,跳到這個文檔的最后部分。 | |||
*If you fill in the form and get a blank page, with no errors logged, the first thing to check is that you have php-mysql installed. ? | *If you fill in the form and get a blank page, with no errors logged, the first thing to check is that you have php-mysql installed. ? | ||
*如果你填寫了表格,得到了空白的頁面,沒有錯誤,首先要檢查的是你已經(jīng)安裝了php-mysql。 | |||
?? On Fedora and Centos: <tt>yum install php-mysql</tt>. | ?? On Fedora and Centos: <tt>yum install php-mysql</tt>. | ||
?? On RedHat: <tt>up2date php-mysql</tt>. ? | ?? On RedHat: <tt>up2date php-mysql</tt>. ? | ||
在Fedora和Centos: <tt>yum install php-mysql</tt>. | |||
? 在RedHat: <tt>up2date php-mysql</tt>. | |||
== HTTP Server : Apache == | == HTTP Server : Apache == | ||
== HTTP 服務(wù)器 : Apache == | |||
Apache must be configured so that mod_rewrite works. Here are instructions for Apache 2. Apache 1.3 is very similar. | Apache must be configured so that mod_rewrite works. Here are instructions for Apache 2. Apache 1.3 is very similar. | ||
Apache必須配置,mod_rewrite才能夠運行。下面是Apache 2的指示說明。Apache 1.3非常相似。 | |||
?? 1. Make sure a line like the following appears in your httpd.conf LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so | ?? 1. Make sure a line like the following appears in your httpd.conf LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so | ||
? 1.確定像下面的這一行出現(xiàn)在你的httpd.conf LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so | |||
?? 2. In the <Directory> directive of your virtual host, look for this line "AllowOverride None" and change it to "AllowOverride FileInfo Options" | ?? 2. In the <Directory> directive of your virtual host, look for this line "AllowOverride None" and change it to "AllowOverride FileInfo Options" | ||
? 2.在你的虛擬主機的<目錄>命令中,查找"AllowOverride None"并且將其更改為"AllowOverride FileInfo 選項" | |||
?? 3. In the <VirtualHost?> section of the config file for your host there will be a line defining the hostname. You need to add the following if you want virtual hosts to work properly: "ServerAlias *.domain.tld". Replace domain.tld with whatever your one is, and remove the quotes. ? | ?? 3. In the <VirtualHost?> section of the config file for your host there will be a line defining the hostname. You need to add the following if you want virtual hosts to work properly: "ServerAlias *.domain.tld". Replace domain.tld with whatever your one is, and remove the quotes. ? | ||
? 3.在你的主機配置文件的<VirtualHost?>部分,有一行定義了主機名。如果你希望虛擬主機正常運行,你需要添加下面的內(nèi)容:"ServerAlias *.domain.tld"。將domain.tld替換,并且移除引號。 | |||
=== Rewriting Rules for others HTTP Server === | === Rewriting Rules for others HTTP Server === | ||
=== 其它的HTTP服務(wù)器的重寫規(guī)則=== | |||
'''Lighttpd''' | |||
'''Lighttpd''' | '''Lighttpd''' | ||
Rewriting method: (best) | Rewriting method: (best) | ||
重寫方法:(最好的) | |||
?? url.rewrite-once = ( | ?? url.rewrite-once = ( | ||
? ? "^/(.*)?/?files/$" => "index.php", | |||
? ? "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", | |||
? ? "^/(wp-.*)$" => "$1", | |||
? ? "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", | |||
? ? "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2", | |||
? ? "(\?.*)$" => "index.php$1", | |||
? ? "." => "index.php" | |||
? ) | |||
url.rewrite-once = ( | |||
?? ? "^/(.*)?/?files/$" => "index.php", | ?? ? "^/(.*)?/?files/$" => "index.php", | ||
?? ? "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", | ?? ? "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", | ||
第55行: | 第117行: | ||
Without rewriting method: | Without rewriting method: | ||
沒有重寫方法: | |||
? server.error-handler-404 = "/index.php" | |||
?? server.error-handler-404 = "/index.php" | ?? server.error-handler-404 = "/index.php" | ||
Source: | Source: | ||
資源: | |||
* [http://mu.wordpress.org/forums/topic.php?id=3901 Topic on WPmu Forums] | * [http://mu.wordpress.org/forums/topic.php?id=3901 Topic on WPmu Forums] | ||
* [http://r00tshell.com/archives/2007/05/16/wordpress-lighttpd-permalinks-without-rewrite/ Brute method] | * [http://r00tshell.com/archives/2007/05/16/wordpress-lighttpd-permalinks-without-rewrite/ Brute method] | ||
* [http://blog.nix.is/lighttpd-rewrite-rules-for-wordpress Rules for WordPress & WordPress Mu] | * [http://blog.nix.is/lighttpd-rewrite-rules-for-wordpress Rules for WordPress & WordPress Mu] | ||
* [http://sudhaker.com/2008/04/wordpress-permalinks-lighttpd/ Magnet Mod] | |||
* [http://mu.wordpress.org/forums/topic.php?id=3901 WPmu 論壇上的話題] | |||
* [http://r00tshell.com/archives/2007/05/16/wordpress-lighttpd-permalinks-without-rewrite/ Brute method] | |||
* [http://blog.nix.is/lighttpd-rewrite-rules-for-wordpress WordPress & WordPress Mu規(guī)則] | |||
* [http://sudhaker.com/2008/04/wordpress-permalinks-lighttpd/ Magnet Mod] | * [http://sudhaker.com/2008/04/wordpress-permalinks-lighttpd/ Magnet Mod] | ||
第71行: | 第145行: | ||
?? ? rewrite ^(.+)$ /index.php?q=$1 last; | ?? ? rewrite ^(.+)$ /index.php?q=$1 last; | ||
?? } | ?? } | ||
'''Nginx''' | |||
? rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1 | |||
? if (!-e $request_filename) { | |||
? ? rewrite ^.+/?(/wp-.*) $1 last; | |||
? ? rewrite ^.+/?(/.*\.php)$ $1 last; | |||
? ? rewrite ^(.+)$ /index.php?q=$1 last; | |||
? } | |||
Source: | Source: | ||
資源: | |||
*[http://siava.su/2008/04/28/wordpress-mu-rewrite-rules-for-nginx/ Rules for Nginx] | *[http://siava.su/2008/04/28/wordpress-mu-rewrite-rules-for-nginx/ Rules for Nginx] | ||
*[http://mu.wordpress.org/forums/topic.php?id=3410 Discussion on WPmu Forums] | *[http://mu.wordpress.org/forums/topic.php?id=3410 Discussion on WPmu Forums] | ||
*[http://siava.su/2008/04/28/wordpress-mu-rewrite-rules-for-nginx/ 、 Nginx規(guī)則] | |||
*[http://mu.wordpress.org/forums/topic.php?id=3410 WPmu論壇上的討論] | |||
== DNS == | == DNS == | ||
== 域名服務(wù)器 == | |||
If you want to host blogs of the form http://blog.domain.tld/ where domain.tld is the domain name of your machine then you must add a wildcard record to your DNS records. This usually means adding a "*" hostname record pointing at your webserver in your DNS configuration tool. Matt has a more detailed explanation: http://ma.tt/2003/10/wildcard-dns-and-sub-domains/ | If you want to host blogs of the form http://blog.domain.tld/ where domain.tld is the domain name of your machine then you must add a wildcard record to your DNS records. This usually means adding a "*" hostname record pointing at your webserver in your DNS configuration tool. Matt has a more detailed explanation: http://ma.tt/2003/10/wildcard-dns-and-sub-domains/ | ||
如果你想要托管http://blog.domain.tld/形式的博客,domain.tld是你的電腦的域名,那么你需要向你的域名服務(wù)器添加通配符。這通常指的是添加"*" 主機名record指向你的DNS配置工具中的網(wǎng)絡(luò)服務(wù)器。Matt擁有更詳細的解釋:http://ma.tt/2003/10/wildcard-dns-and-sub-domains/ | |||
== PHP == | |||
== PHP == | == PHP == | ||
For security reasons, it's very important that PHP be configured as follows: | For security reasons, it's very important that PHP be configured as follows: | ||
出于安全方面的考慮,PHP配置成以下的形式很重要: | |||
# Don't display error messages to the browser. This is almost always turned off but sometimes when you're testing you turn this on and forget to reset it. ? | # Don't display error messages to the browser. This is almost always turned off but sometimes when you're testing you turn this on and forget to reset it. ? | ||
#不要向瀏覽器顯示錯誤信息。這個選項基本是關(guān)閉的,但是當你測試的時候,你會打開,而且可能忘記關(guān)閉。 | |||
# GLOBAL variables must be turned off. This is one of the first things any security aware admin will do. These days the default is for it to be off! ? | # GLOBAL variables must be turned off. This is one of the first things any security aware admin will do. These days the default is for it to be off! ? | ||
#必須關(guān)閉全局變數(shù)。這是管理員需要處理的第一個安全方面的問題。如今,默認為關(guān)閉! | |||
# If you want to restrict blog signups, set the restrict domain email setting in the admin. | # If you want to restrict blog signups, set the restrict domain email setting in the admin. | ||
#如果你想要限制博客注冊人數(shù),在管理中設(shè)置限制域名電子郵件設(shè)置。 | |||
The easiest way of configuring it is via the .htaccess file that is created during the install. If you haven't installed WPMU yet then edit the file htaccess.dist in this directory and add these two lines at the top: | The easiest way of configuring it is via the .htaccess file that is created during the install. If you haven't installed WPMU yet then edit the file htaccess.dist in this directory and add these two lines at the top: | ||
最簡單的配置方法是通過.htaccess文件,這個文件是安裝的時候,創(chuàng)建的。如果你還沒有安裝WPMU,那么編輯這個目錄中的文件htaccess.dist,并且將這兩行添加到頂上方: | |||
?? php_flag register_globals 0 ? | ?? php_flag register_globals 0 ? | ||
? php_flag display_errors 0 | |||
php_flag register_globals 0 | |||
?? php_flag display_errors 0 | ?? php_flag display_errors 0 | ||
This is NOT included in that file by default because it doesn't work on all machines. If it doesn't work on your machine, you'll get a cryptic "500 internal error" after you install WPMU. To remove the offending lines just edit the file ".htaccess" in your install directory and you'll see them at the top. Delete and save the file again. Read here for how to enable this: http://ie.php.net/configuration.changes | This is NOT included in that file by default because it doesn't work on all machines. If it doesn't work on your machine, you'll get a cryptic "500 internal error" after you install WPMU. To remove the offending lines just edit the file ".htaccess" in your install directory and you'll see them at the top. Delete and save the file again. Read here for how to enable this: http://ie.php.net/configuration.changes | ||
默認情況下,這兩行不包含在文件中,但是這兩行并不是在所有電腦中都能夠運行。如果不能夠在你的電腦上運行,安裝WPMU后,你會得到含義模糊的"500 內(nèi)部錯誤"。移除這兩行,在你的安裝目錄中編輯文件".htaccess",你能夠在頂上方看到。再次地刪除并且保存文件。在這里閱讀怎樣操作:http://ie.php.net/configuration.changes | |||
If you don't want to edit your .htaccess file then you need to change your php.ini. It's beyond the scope of this README to know exactly where it is on your machine, but if you're on a shared hosted server you probably don't have access to it as it requires root or administrator privileges to change. | If you don't want to edit your .htaccess file then you need to change your php.ini. It's beyond the scope of this README to know exactly where it is on your machine, but if you're on a shared hosted server you probably don't have access to it as it requires root or administrator privileges to change. | ||
如果你不想要編輯.htaccess文件,你就需要更改你的php.ini。這個README不了解php.ini位于你的電腦上的什么位置,但是如果你在共享的主機服務(wù)器上,你可能不需要訪問php.ini,因此訪問php.ini需要根目錄訪問或者管理員權(quán)限來更改。 | |||
If you do have root access, try "locate php.ini" or check in: | If you do have root access, try "locate php.ini" or check in: | ||
如果你真的有根目錄訪問選項,試著"locate php.ini"或者進入是: | |||
?? /etc/php4/apache2/php.ini ? | ?? /etc/php4/apache2/php.ini ? | ||
? /usr/local/lib/php.ini | |||
/etc/php4/apache2/php.ini | |||
?? /usr/local/lib/php.ini | ?? /usr/local/lib/php.ini | ||
Once you have opened your php.ini, look for the sections related to register_globals and display_errors. Make sure both are Off like so: | Once you have opened your php.ini, look for the sections related to register_globals and display_errors. Make sure both are Off like so: | ||
你一旦打開了你的php.ini,查找register_globals 和display_errors的相關(guān)部分。確定兩個部分都如下: | |||
? display_errors = Off | |||
? register_globals = Off | |||
?? display_errors = Off ? | ?? display_errors = Off ? | ||
第108行: | 第236行: | ||
You'll have to restart Apache after you modify your php.ini for the settings to be updated. | You'll have to restart Apache after you modify your php.ini for the settings to be updated. | ||
更改php.ini,使得設(shè)置更新之后,你必須重啟Apache。 | |||
== Upgrading == | == Upgrading == | ||
== 升級 == | |||
Please see this page for instructions on upgrading your install: http://trac.mu.wordpress.org/wiki/UpgradingWpmu | Please see this page for instructions on upgrading your install: http://trac.mu.wordpress.org/wiki/UpgradingWpmu | ||
請看看這個頁面上,關(guān)于升級你的安裝內(nèi)容的指示:http://trac.mu.wordpress.org/wiki/UpgradingWpmu | |||
== Support Forum and Bug Reports == | == Support Forum and Bug Reports == | ||
= 支持論壇和程序缺陷報告== | |||
Please read http://trac.mu.wordpress.org/wiki/DebuggingWpmu before asking any questions. Without all the information required there we'll just ask for it anyway or worse, your request will be ignored. | Please read http://trac.mu.wordpress.org/wiki/DebuggingWpmu before asking any questions. Without all the information required there we'll just ask for it anyway or worse, your request will be ignored. | ||
詢問任何問題之前,請閱讀http://trac.mu.wordpress.org/wiki/DebuggingWpmu。如果你不了解上面的信息,你可能重復問了同個問題,更糟的是,你的問題可能被忽視。 | |||
http://mu.wordpress.org/forums/ | |||
http://mu.wordpress.org/forums/ | http://mu.wordpress.org/forums/ | ||
Trac is our bug tracking system. Again, please read the above link before submitting a bug report: http://trac.mu.wordpress.org/report/1 | Trac is our bug tracking system. Again, please read the above link before submitting a bug report: http://trac.mu.wordpress.org/report/1 | ||
Trac是我們的程序缺陷追蹤系統(tǒng)。請閱讀上述的鏈接,再遞交程序缺陷報告:http://trac.mu.wordpress.org/report/1 | |||
You can login to both sites using your wordpress.org username and password. | You can login to both sites using your wordpress.org username and password. | ||
你可以使用你的wordpress.org用戶名和密碼登錄到兩個站點上。 | |||
== Related == | == Related == | ||
== 相關(guān)的 == | |||
http://mu.wordpress.org/download/ | |||
http://mu.wordpress.org/download/ | http://mu.wordpress.org/download/ |
2008年9月22日 (一) 11:23的版本
WordPress MU, or WordPress Multi User
WordPress MU, 或者WordPress多個用戶
WordPress MU, or WordPressμ, is the multi-user version of the WordPress blogging application, that allows you to run hundreds of thousands of blogs with a single install of WordPress, and is most famously used for WordPress.com.
WordPress MU,或者WordPressμ,是著名的WordPress博客軟件的多用戶版本,安裝一個WordPress,就可以運行成千上萬個博客,最常見是在WordPress.com上的使用。
Installing WordPress MU
安裝 WordPress MU
Adapted from WordPress:Installing_WordPress: 根據(jù) Installing_WordPress改編: 1. Download and unzip the WordPress MU package, if you haven't already. The unzipped files will be created in a directory named "wordpressmu" followed by a version or "wpmu" followed by a date.
1.如果你還沒有準備好,下載并且解壓WordPress MU軟件包。解壓后的文件會在名為"wordpressmu"目錄中創(chuàng)建,目錄后有個版本名稱或者"wpmu"后面有個日期。
For the sake of convenience, rename this folder "wordpressmu" before continuing.
為了更便利,將這個文件夾重新命名為"wordpressmu"再繼續(xù)。
2. Create a database for WordPress MU on your web server, as well as a !MySQL user who has all privileges for accessing and modifying it.
2.在你的網(wǎng)絡(luò)服務(wù)器上為WordPress MU創(chuàng)建個數(shù)據(jù)庫,!MySQL用戶有權(quán)限訪問和更改這個數(shù)據(jù)庫。
3. Place the WordPress MU files in the desired location on your web server:
3.將WordPress MU文件放到你的網(wǎng)絡(luò)服務(wù)器上適當?shù)奈恢蒙希?
- If you want to integrate WordPress MU into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress MU directory (but excluding the directory itself) into the root directory of your web server.
- 如果你希望將WordPress MU與你的根域名相結(jié)合(例如http://example.com/)將解壓的WordPress MU目錄的所有內(nèi)容(但是目錄本身除外)轉(zhuǎn)移或者上傳到你的網(wǎng)絡(luò)服務(wù)器的根目錄。
- If you want to have your WordPress MU installation in its own subdirectory on your web site (e.g. http://example.com/blogs/), rename the directory wordpressmu to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress MU installation in a subdirectory called "blog", you should rename the directory called "wordpressmu" to "blogs" and upload it to the root directory of your web server.
- 如果你將WordPress MU安裝在你的網(wǎng)站上WordPress MU自身的子目錄中(例如http://example.com/blogs/),將目錄wordpressmu重新命名為你喜歡的子目錄名并且將這個目錄轉(zhuǎn)移或者上傳到你的網(wǎng)絡(luò)服務(wù)器上。例如,如果你希望WordPress MU安裝在稱為"博客"的子目錄上,你應(yīng)該將稱為"wordpressmu"的目錄重新命名為"blogs"并且將目錄上傳到你的網(wǎng)絡(luò)服務(wù)器的根目錄上。
4. Run the WordPress MU installation script by accessing index.php in your favorite web browser.
4.在你最喜愛的網(wǎng)絡(luò)瀏覽器中訪問index.php,運行安裝WordPress MU腳本。
- If you installed WordPress MU in the root directory, you should visit: http://example.com/index.php
- 如果你在根目錄中安裝了WordPress MU,你應(yīng)該訪問:http://example.com/index.php
- If you installed WordPress MU in its own subdirectory called blogs, for example, you should visit: http://example.com/blogs/index.php
- 如果你在WordPress MU自身稱為博客的子目錄中安裝WordPress MU,你應(yīng)該訪問:http://example.com/blogs/index.php
- If you're upgrading, skip to the end of this document.
- 如果你正在升級,跳到這個文檔的最后部分。
- If you fill in the form and get a blank page, with no errors logged, the first thing to check is that you have php-mysql installed.
- 如果你填寫了表格,得到了空白的頁面,沒有錯誤,首先要檢查的是你已經(jīng)安裝了php-mysql。
On Fedora and Centos: yum install php-mysql. On RedHat: up2date php-mysql.
在Fedora和Centos: yum install php-mysql.
在RedHat: up2date php-mysql.
HTTP Server : Apache
HTTP 服務(wù)器 : Apache
Apache must be configured so that mod_rewrite works. Here are instructions for Apache 2. Apache 1.3 is very similar.
Apache必須配置,mod_rewrite才能夠運行。下面是Apache 2的指示說明。Apache 1.3非常相似。
1. Make sure a line like the following appears in your httpd.conf LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
1.確定像下面的這一行出現(xiàn)在你的httpd.conf LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
2. In the <Directory> directive of your virtual host, look for this line "AllowOverride None" and change it to "AllowOverride FileInfo Options"
2.在你的虛擬主機的<目錄>命令中,查找"AllowOverride None"并且將其更改為"AllowOverride FileInfo 選項"
3. In the <VirtualHost?> section of the config file for your host there will be a line defining the hostname. You need to add the following if you want virtual hosts to work properly: "ServerAlias *.domain.tld". Replace domain.tld with whatever your one is, and remove the quotes. 3.在你的主機配置文件的<VirtualHost?>部分,有一行定義了主機名。如果你希望虛擬主機正常運行,你需要添加下面的內(nèi)容:"ServerAlias *.domain.tld"。將domain.tld替換,并且移除引號。
Rewriting Rules for others HTTP Server
其它的HTTP服務(wù)器的重寫規(guī)則
Lighttpd
Lighttpd
Rewriting method: (best)
重寫方法:(最好的)
url.rewrite-once = ( "^/(.*)?/?files/$" => "index.php", "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1", "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2", "(\?.*)$" => "index.php$1", "." => "index.php" )
url.rewrite-once = (
"^/(.*)?/?files/$" => "index.php", "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1", "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2", "(\?.*)$" => "index.php$1", "." => "index.php" )
Without rewriting method: 沒有重寫方法:
server.error-handler-404 = "/index.php"
server.error-handler-404 = "/index.php"
Source: 資源:
Nginx
rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1 if (!-e $request_filename) { rewrite ^.+/?(/wp-.*) $1 last; rewrite ^.+/?(/.*\.php)$ $1 last; rewrite ^(.+)$ /index.php?q=$1 last; }
Nginx
rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1 if (!-e $request_filename) { rewrite ^.+/?(/wp-.*) $1 last; rewrite ^.+/?(/.*\.php)$ $1 last; rewrite ^(.+)$ /index.php?q=$1 last; }
Source:
資源:
DNS
域名服務(wù)器
If you want to host blogs of the form http://blog.domain.tld/ where domain.tld is the domain name of your machine then you must add a wildcard record to your DNS records. This usually means adding a "*" hostname record pointing at your webserver in your DNS configuration tool. Matt has a more detailed explanation: http://ma.tt/2003/10/wildcard-dns-and-sub-domains/
如果你想要托管http://blog.domain.tld/形式的博客,domain.tld是你的電腦的域名,那么你需要向你的域名服務(wù)器添加通配符。這通常指的是添加"*" 主機名record指向你的DNS配置工具中的網(wǎng)絡(luò)服務(wù)器。Matt擁有更詳細的解釋:http://ma.tt/2003/10/wildcard-dns-and-sub-domains/
PHP
PHP
For security reasons, it's very important that PHP be configured as follows:
出于安全方面的考慮,PHP配置成以下的形式很重要:
- Don't display error messages to the browser. This is almost always turned off but sometimes when you're testing you turn this on and forget to reset it.
- 不要向瀏覽器顯示錯誤信息。這個選項基本是關(guān)閉的,但是當你測試的時候,你會打開,而且可能忘記關(guān)閉。
- GLOBAL variables must be turned off. This is one of the first things any security aware admin will do. These days the default is for it to be off!
- 必須關(guān)閉全局變數(shù)。這是管理員需要處理的第一個安全方面的問題。如今,默認為關(guān)閉!
- If you want to restrict blog signups, set the restrict domain email setting in the admin.
- 如果你想要限制博客注冊人數(shù),在管理中設(shè)置限制域名電子郵件設(shè)置。
The easiest way of configuring it is via the .htaccess file that is created during the install. If you haven't installed WPMU yet then edit the file htaccess.dist in this directory and add these two lines at the top:
最簡單的配置方法是通過.htaccess文件,這個文件是安裝的時候,創(chuàng)建的。如果你還沒有安裝WPMU,那么編輯這個目錄中的文件htaccess.dist,并且將這兩行添加到頂上方:
php_flag register_globals 0 php_flag display_errors 0
php_flag register_globals 0
php_flag display_errors 0
This is NOT included in that file by default because it doesn't work on all machines. If it doesn't work on your machine, you'll get a cryptic "500 internal error" after you install WPMU. To remove the offending lines just edit the file ".htaccess" in your install directory and you'll see them at the top. Delete and save the file again. Read here for how to enable this: http://ie.php.net/configuration.changes
默認情況下,這兩行不包含在文件中,但是這兩行并不是在所有電腦中都能夠運行。如果不能夠在你的電腦上運行,安裝WPMU后,你會得到含義模糊的"500 內(nèi)部錯誤"。移除這兩行,在你的安裝目錄中編輯文件".htaccess",你能夠在頂上方看到。再次地刪除并且保存文件。在這里閱讀怎樣操作:http://ie.php.net/configuration.changes
If you don't want to edit your .htaccess file then you need to change your php.ini. It's beyond the scope of this README to know exactly where it is on your machine, but if you're on a shared hosted server you probably don't have access to it as it requires root or administrator privileges to change.
如果你不想要編輯.htaccess文件,你就需要更改你的php.ini。這個README不了解php.ini位于你的電腦上的什么位置,但是如果你在共享的主機服務(wù)器上,你可能不需要訪問php.ini,因此訪問php.ini需要根目錄訪問或者管理員權(quán)限來更改。
If you do have root access, try "locate php.ini" or check in:
如果你真的有根目錄訪問選項,試著"locate php.ini"或者進入是:
/etc/php4/apache2/php.ini /usr/local/lib/php.ini
/etc/php4/apache2/php.ini
/usr/local/lib/php.ini
Once you have opened your php.ini, look for the sections related to register_globals and display_errors. Make sure both are Off like so:
你一旦打開了你的php.ini,查找register_globals 和display_errors的相關(guān)部分。確定兩個部分都如下:
display_errors = Off register_globals = Off
display_errors = Off register_globals = Off
You'll have to restart Apache after you modify your php.ini for the settings to be updated.
更改php.ini,使得設(shè)置更新之后,你必須重啟Apache。
Upgrading
升級
Please see this page for instructions on upgrading your install: http://trac.mu.wordpress.org/wiki/UpgradingWpmu
請看看這個頁面上,關(guān)于升級你的安裝內(nèi)容的指示:http://trac.mu.wordpress.org/wiki/UpgradingWpmu
Support Forum and Bug Reports
支持論壇和程序缺陷報告=
Please read http://trac.mu.wordpress.org/wiki/DebuggingWpmu before asking any questions. Without all the information required there we'll just ask for it anyway or worse, your request will be ignored.
詢問任何問題之前,請閱讀http://trac.mu.wordpress.org/wiki/DebuggingWpmu。如果你不了解上面的信息,你可能重復問了同個問題,更糟的是,你的問題可能被忽視。
http://mu.wordpress.org/forums/
http://mu.wordpress.org/forums/
Trac is our bug tracking system. Again, please read the above link before submitting a bug report: http://trac.mu.wordpress.org/report/1
Trac是我們的程序缺陷追蹤系統(tǒng)。請閱讀上述的鏈接,再遞交程序缺陷報告:http://trac.mu.wordpress.org/report/1
You can login to both sites using your wordpress.org username and password.
你可以使用你的wordpress.org用戶名和密碼登錄到兩個站點上。
Related
相關(guān)的
http://mu.wordpress.org/download/ http://mu.wordpress.org/download/