WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營(yíng)銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress: Installing Multiple Blogs:修訂間差異
(新頁(yè)面: == Multiple Blogs Through Multiple Installs == If you want multiple blogs using WordPress, you must actually install each separately (that is, as a separate WordPress installation). You ...) ? |
無(wú)編輯摘要 |
||
第1行: | 第1行: | ||
== Multiple Blogs Through Multiple Installs == | == Multiple Blogs Through Multiple Installs == | ||
== 通過(guò)多次安裝,安裝多個(gè)博客== | |||
If you want multiple blogs using WordPress, you must actually install each separately (that is, as a separate WordPress installation). You can do this whether you have the ability to create multiple databases or are limited to a single database. | If you want multiple blogs using WordPress, you must actually install each separately (that is, as a separate WordPress installation). You can do this whether you have the ability to create multiple databases or are limited to a single database. | ||
如果你想要使用多個(gè)WordPress博客,你必須能夠分別地安裝每個(gè)博客(就是,分開安裝每個(gè)博客)。你有能力創(chuàng)建多個(gè)數(shù)據(jù)庫(kù)或者限制于一個(gè)單一的數(shù)據(jù)庫(kù)的時(shí)候,都可以創(chuàng)建多個(gè)WordPress博客。 | |||
=== Multiple Databases === | === Multiple Databases === | ||
=== 多個(gè)數(shù)據(jù)庫(kù) === | |||
You'll need a separate [[WordPress:Glossary#MySQL|MySQL database]] for each blog you plan to install. If you have not yet created these, [[WordPress:Installing_WordPress#Step_2:_Create_the_WordPress_Username_and_Database|basic instructions are found here]]. ? | You'll need a separate [[WordPress:Glossary#MySQL|MySQL database]] for each blog you plan to install. If you have not yet created these, [[WordPress:Installing_WordPress#Step_2:_Create_the_WordPress_Username_and_Database|basic instructions are found here]]. ? | ||
你需要為計(jì)劃安裝的每個(gè)博客,創(chuàng)建單獨(dú)的[[WordPress:Glossary#MySQL|MySQL 數(shù)據(jù)庫(kù)]]。如果你還沒(méi)有創(chuàng)建這些數(shù)據(jù)庫(kù),[[WordPress:Installing_WordPress#Step_2:_Create_the_WordPress_Username_and_Database|這里有基本的指導(dǎo)]]。 | |||
The [[WordPress:Editing_wp-config.php|wp-config.php]] file will vary for each installation. The lines to change are: | The [[WordPress:Editing_wp-config.php|wp-config.php]] file will vary for each installation. The lines to change are: | ||
每次安裝的時(shí)候,[[WordPress:Editing_wp-config.php|wp-config.php]]文件都會(huì)發(fā)生變化。需要更改的行是: | |||
? define('DB_NAME', 'wordpress');? ? // The name of the database | ? define('DB_NAME', 'wordpress');? ? // The name of the database | ||
? define('DB_USER', 'username');? ? // Your MySQL username | ? define('DB_USER', 'username');? ? // Your MySQL username | ||
? define('DB_PASSWORD', 'password'); // ...and password | ? define('DB_PASSWORD', 'password'); // ...and password | ||
define('DB_NAME', 'wordpress');? ? // 數(shù)據(jù)庫(kù)名 | |||
define('DB_USER', 'username');? ? // 你的 MySQL 用戶名 | |||
define('DB_PASSWORD', 'password'); // ...和密碼 | |||
<code>DB_NAME</code> will be the name of the individual database created for that blog. If you are using different user logins for each database, edit <code>DB_USER</code> and <code>DB_PASSWORD</code> to reflect this, as well. ? | <code>DB_NAME</code> will be the name of the individual database created for that blog. If you are using different user logins for each database, edit <code>DB_USER</code> and <code>DB_PASSWORD</code> to reflect this, as well. ? | ||
<code>DB_NAME</code>是為每個(gè)博客創(chuàng)建的單獨(dú)的數(shù)據(jù)庫(kù)的名稱。如果不同的用戶登錄不同的數(shù)據(jù)庫(kù),請(qǐng)編輯<code>DB_USER</code> 和<code>DB_PASSWORD</code>反映這一點(diǎn)。 | |||
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See [[WordPress:Installing WordPress]] for more information. | Upload each wp-config.php file to its specific root/installation directory, and run the installation. See [[WordPress:Installing WordPress]] for more information. | ||
將每個(gè)wp-config.php文件,上傳到各自的根/安裝目錄,并且運(yùn)行安裝。更多的信息,請(qǐng)看看[[WordPress:Installing WordPress|安裝WordPress]]。 | |||
=== Single Database === | === Single Database === | ||
=== 單個(gè)的數(shù)據(jù)庫(kù) === | |||
As with the multiple databases solution described above, the [[WordPress:Editing_wp-config.php|wp-config.php]] file will vary for each installation. In this case, however, only a single line will be unique to each blog: | As with the multiple databases solution described above, the [[WordPress:Editing_wp-config.php|wp-config.php]] file will vary for each installation. In this case, however, only a single line will be unique to each blog: | ||
如上所述的多個(gè)博客有多個(gè)數(shù)據(jù)庫(kù),每次安裝,[[WordPress:Editing_wp-config.php|wp-config.php]]文件都不同。然而,在這個(gè)例子中,每個(gè)博客中只有一行是唯一的: | |||
? $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_' ? | ? $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_' ? | ||
$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_' | |||
By default, WordPress assigns the table prefix <code>wp_</code> to its [[WordPress:Glossary#MySQL|MySQL database]] tables, but this prefix can be anything you choose. By using more than one, you create unique identifiers for each blog in your database. For example, let's say you have three blogs to set up, with the names Main, Projects and Test. You want to substitute the prefix <code>wp_</code> for each blog's wp-config.php: ? | By default, WordPress assigns the table prefix <code>wp_</code> to its [[WordPress:Glossary#MySQL|MySQL database]] tables, but this prefix can be anything you choose. By using more than one, you create unique identifiers for each blog in your database. For example, let's say you have three blogs to set up, with the names Main, Projects and Test. You want to substitute the prefix <code>wp_</code> for each blog's wp-config.php: ? | ||
默認(rèn)情況下,WordPress將表格前綴<code>wp_</code>附加到[[WordPress:Glossary#MySQL|MySQL 數(shù)據(jù)庫(kù)]]表格中,但是這個(gè)前綴可以是你選擇的任何內(nèi)容。通過(guò)使用多個(gè)前綴,你可以為數(shù)據(jù)庫(kù)中的每個(gè)博客創(chuàng)建唯一的標(biāo)示符號(hào)。例如,假如你要?jiǎng)?chuàng)建三個(gè)博客,博客名分別是Main,Projects和Test。你給每個(gè)博客的wp-config.php添加了前綴<code>wp_</code>: | |||
Main blog: | Main blog: | ||
第32行: | 第57行: | ||
Test blog: | Test blog: | ||
$table_prefix = 'test_'; | |||
Main 博客: | |||
$table_prefix = 'main_'; | |||
Projects 博客: | |||
$table_prefix = 'projects_'; | |||
Test 博客: | |||
? $table_prefix = 'test_'; ? | ? $table_prefix = 'test_'; ? | ||
As noted, you may use a prefix of your own making. Those provided here are for example purposes only. | As noted, you may use a prefix of your own making. Those provided here are for example purposes only. | ||
如上所述,你可以自己創(chuàng)造前綴。這里使用的前綴,只是用于舉例。 | |||
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See [[WordPress:Installing WordPress]] for more information. | Upload each wp-config.php file to its specific root/installation directory, and run the installation. See [[WordPress:Installing WordPress]] for more information. | ||
將每個(gè)wp-config.php文件上傳到特別的根/安裝目錄中,并且運(yùn)行安裝。更多的信息,請(qǐng)看看[[WordPress:Installing WordPress|安裝WordPress]]。 | |||
=== Multiple Install Automation === | === Multiple Install Automation === | ||
=== 自動(dòng)安裝多個(gè)博客 === | |||
WordPress user [http://climbtothestars.org Stephanie Booth] provides instructions on automating the installation of multiple blogs for a weblog farm in her posting, [http://climbtothestars.org/archives/2004/09/02/scripts-for-a-wordpress-weblog-farm Scripts for a WordPress Weblog Farm].? In [http://climbtothestars.org/archives/2004/08/11/musings-on-a-multiblog-wordpress/ Musings on a Multiblog WordPress], Stephanie shares her thoughts on the process. | WordPress user [http://climbtothestars.org Stephanie Booth] provides instructions on automating the installation of multiple blogs for a weblog farm in her posting, [http://climbtothestars.org/archives/2004/09/02/scripts-for-a-wordpress-weblog-farm Scripts for a WordPress Weblog Farm].? In [http://climbtothestars.org/archives/2004/08/11/musings-on-a-multiblog-wordpress/ Musings on a Multiblog WordPress], Stephanie shares her thoughts on the process. | ||
WordPress 用戶 [http://climbtothestars.org Stephanie Booth]在她發(fā)表的帖子[http://climbtothestars.org/archives/2004/09/02/scripts-for-a-wordpress-weblog-farm WordPress 網(wǎng)絡(luò)日志 Farm腳本]中,提供了自動(dòng)安裝多個(gè)博客的說(shuō)明。在[http://climbtothestars.org/archives/2004/08/11/musings-on-a-multiblog-wordpress/關(guān)于多個(gè)WordPress博客的思考],Stephanie分享了她的想法。 | |||
* You should have a peek at http://climbtothestars.org/play/wordpress.sh.txt -- a work in progress. | * You should have a peek at http://climbtothestars.org/play/wordpress.sh.txt -- a work in progress. | ||
*你應(yīng)該看看http://climbtothestars.org/play/wordpress.sh.txt --正在進(jìn)展的工作。 | |||
== Alternative WordPress Projects == | == Alternative WordPress Projects == | ||
== 其它的 WordPress Projects == | |||
Alternative projects and plugins which provide some level of multi-blogging facility. | Alternative projects and plugins which provide some level of multi-blogging facility. | ||
其它的projects和插件,使得寫多個(gè)博客,變得更加便利。 | |||
=== [http://lyceum.ibiblio.org/ Lyceum] === | |||
=== [http://lyceum.ibiblio.org/ Lyceum] === | === [http://lyceum.ibiblio.org/ Lyceum] === | ||
Developed by ibiblio.org, [http://lyceum.ibiblio.org/ Lyceum] is a stand-alone multi-user multi-blogging application designed to handle 2 to 2,000,000 blogs. ? | Developed by ibiblio.org, [http://lyceum.ibiblio.org/ Lyceum] is a stand-alone multi-user multi-blogging application designed to handle 2 to 2,000,000 blogs. ? | ||
由ibiblio.org開發(fā),[http://lyceum.ibiblio.org/ Lyceum]是個(gè)單獨(dú)的,多用戶,多個(gè)博客軟件程序,能夠處理2到2,000,000博客。 | |||
Utilizing the WordPress blogging engine at its core, Lyceum enables stand-alone, multi-user multi-blog services for small and high-volume environments. At its core, Lyceum is a minimally-featured enhancement to WordPress. ? | Utilizing the WordPress blogging engine at its core, Lyceum enables stand-alone, multi-user multi-blog services for small and high-volume environments. At its core, Lyceum is a minimally-featured enhancement to WordPress. ? | ||
在核心,使用WordPress博客引擎,Lyceum能夠在小環(huán)境,高流量的情況下,使用單獨(dú)的,多用戶,多博客的服務(wù)。Lyceum核心是WordPress最低限度的提升。 | |||
Lyceum lets WordPress do what it does well; we simply added nice things like smart administrative controls, an easy-to-use installer, enterprise-oriented database architecture, support for load-balancing, all the while focusing on flexibility, security and usability. ? | Lyceum lets WordPress do what it does well; we simply added nice things like smart administrative controls, an easy-to-use installer, enterprise-oriented database architecture, support for load-balancing, all the while focusing on flexibility, security and usability. ? | ||
Lyceum使得WordPress執(zhí)行最好的操作;我們只要添加一些較好的內(nèi)容,如好的管理工具,便于使用的安裝器,符合需求的數(shù)據(jù)庫(kù)結(jié)構(gòu),負(fù)載平衡支持,同時(shí)突出靈活性,安全性和可用性。 | |||
[http://lyceum.ibiblio.org/ Lyceum] is GPL-licensed, under active development, and free to use.? Lyceum currently powers sites like [http://www.iblog.co.za/ iblog.co.za], [http://teachfor.us/ TeachFor.Us] (Teach For America teachers' blogs), [http://blog.bodybuilding.com BodyBlogs] and the [http://blogs.jhu.edu Hopkins Blogs]. | [http://lyceum.ibiblio.org/ Lyceum] is GPL-licensed, under active development, and free to use.? Lyceum currently powers sites like [http://www.iblog.co.za/ iblog.co.za], [http://teachfor.us/ TeachFor.Us] (Teach For America teachers' blogs), [http://blog.bodybuilding.com BodyBlogs] and the [http://blogs.jhu.edu Hopkins Blogs]. | ||
[http://lyceum.ibiblio.org/ Lyceum]受到通用公共許可證的許可,目前正在積極發(fā)展,而且可以免費(fèi)使用。Lyceum當(dāng)前推動(dòng)了[http://www.iblog.co.za/ iblog.co.za], [http://teachfor.us/ TeachFor.Us]站點(diǎn)(Teach表示美國(guó)來(lái)說(shuō)的博客),[http://blog.bodybuilding.com BodyBlogs] 和[http://blogs.jhu.edu Hopkins 博客]。 | |||
=== [[WordPress:WordPress MU]] === | === [[WordPress:WordPress MU]] === | ||
=== [[WordPress:WordPress MU|WordPress MU]] === | |||
[http://mu.wordpress.org/ WordPress MU] is an official branch of WordPress that is designed for managing and hosting thousands of blogs instead of just one. | [http://mu.wordpress.org/ WordPress MU] is an official branch of WordPress that is designed for managing and hosting thousands of blogs instead of just one. | ||
[http://mu.wordpress.org/ WordPress MU]是官方WordPress站點(diǎn)支部站點(diǎn),用來(lái)管理和托管成千上萬(wàn)個(gè)博客而不是單個(gè)的博客站點(diǎn)。 | |||
WordPress MU is ideal for applications like blog networks and newspapers looking to manage multiple blogs from a single installation, enterprise users looking for a large scale blogging solution for intranet deployments, schools and universities who want to offer blogs to all their students and teachers, or individuals looking to host multiple blogs for their families or friends. ? | WordPress MU is ideal for applications like blog networks and newspapers looking to manage multiple blogs from a single installation, enterprise users looking for a large scale blogging solution for intranet deployments, schools and universities who want to offer blogs to all their students and teachers, or individuals looking to host multiple blogs for their families or friends. ? | ||
WordPress MU是非常理想的博客網(wǎng)絡(luò)和報(bào)紙的應(yīng)用軟件,只要安裝一次,就可以管理多個(gè)博客,企業(yè)可以使用這個(gè)軟件為各部分安裝博客,學(xué)校和大學(xué)可以向?qū)W生和老師提升這樣的博客,個(gè)人如果想要為家人或者朋友托管博客,也可以使用這樣的軟件。 | |||
Like single-user WordPress, WordPress MU is available for free under the [http://codex.wordpress.org/GPL GPL open source license]. ? | Like single-user WordPress, WordPress MU is available for free under the [http://codex.wordpress.org/GPL GPL open source license]. ? | ||
就如單一用戶使用的WordPress那樣,WordPress也是免費(fèi)的,可以在[http://codex.wordpress.org/GPL GPL 開放源碼許可]獲取。 | |||
Example MU installations include: | Example MU installations include: | ||
MU安裝的例子包括: | |||
* [http://www.wordpress.com/ WordPress.com] (400k blogs and several million page views per day as of Fall 06) | * [http://www.wordpress.com/ WordPress.com] (400k blogs and several million page views per day as of Fall 06) | ||
* [http://blogs.law.harvard.edu/home/ Harvard University] (free blogs for Harvard faculty and students) | * [http://blogs.law.harvard.edu/home/ Harvard University] (free blogs for Harvard faculty and students) | ||
* [http://www.lemonde.fr/blogs/ Le Monde Interactive] (5,000 blogs for the Le Monde newspaper and its readers) ? | * [http://www.lemonde.fr/blogs/ Le Monde Interactive] (5,000 blogs for the Le Monde newspaper and its readers) ? | ||
* [http://edublogs.org/ EduBlogs] (free hosted blogs for schools and teachers). | * [http://edublogs.org/ EduBlogs] (free hosted blogs for schools and teachers). | ||
* [http://www.wordpress.com/ WordPress.com] (400k blogs and several million page views per day as of Fall 06) | |||
* [http://blogs.law.harvard.edu/home/ Harvard 大學(xué)] (哈佛大學(xué)全體教員和學(xué)生的免費(fèi)博客) | |||
* [http://www.lemonde.fr/blogs/ Le Monde Interactive] (5,000 blogs for the Le Monde newspaper and its readers) | |||
* [http://edublogs.org/ EduBlogs] (學(xué)校和老師的免費(fèi)托管博客)。 | |||
=== [http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual Multiblog] === | === [http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual Multiblog] === | ||
=== [http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual 多個(gè)博客] === | |||
Stephen Rider's system that uses a modified config file to call different blogs based on directory or domain. | Stephen Rider's system that uses a modified config file to call different blogs based on directory or domain. | ||
Stephen Rider的系統(tǒng),使用已更改的配置文件,根據(jù)目錄或者域,調(diào)用不同的博客。 | |||
[http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual Multiblog] allows for easy upgrades of WordPress, as the only changed file in the entire install is wp-config.php (everything else is within a new folder in wp-content).? It also is pretty "future proof", unless WordPress makes radical changes to wp-config.php. | [http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual Multiblog] allows for easy upgrades of WordPress, as the only changed file in the entire install is wp-config.php (everything else is within a new folder in wp-content).? It also is pretty "future proof", unless WordPress makes radical changes to wp-config.php. | ||
[http://striderweb.com/nerdaphernalia/features/virtual-multiblog/ Virtual Multiblog]能夠輕易地升級(jí)WordPress,因此整個(gè)WordPress中唯一更改的文件是wp-config.php(其它所有內(nèi)容都在wp-content中的一個(gè)新的文件夾中)。這也是"future proof",除非WordPress對(duì)wp-config.php做了大量的更改。 | |||
This system is based on Allan Mertner's original [http://www.mertner.com/allan/index.php?p=15 symbolic link hack]. | This system is based on Allan Mertner's original [http://www.mertner.com/allan/index.php?p=15 symbolic link hack]. | ||
這個(gè)系統(tǒng)是以Allan Mertner的最初的[http://www.mertner.com/allan/index.php?p=15 symbolic link hack]為基礎(chǔ)。 | |||
=== [http://lingo.com.mx/~ruben/index.php?s=multisite MultiSite] === | |||
=== [http://lingo.com.mx/~ruben/index.php?s=multisite MultiSite] === | === [http://lingo.com.mx/~ruben/index.php?s=multisite MultiSite] === | ||
Ruben's attempt at a WordPress Multiblog | Ruben's attempt at a WordPress Multiblog | ||
Ruben嘗試多個(gè)WordPress博客。 | |||
=== [http://wiki.wordpress.org/?pagename=MultiBlog Multi Blog] === | === [http://wiki.wordpress.org/?pagename=MultiBlog Multi Blog] === | ||
=== [http://wiki.wordpress.org/?pagename=MultiBlog 多個(gè)博客] === | |||
The project of a small group of WordPress users. | The project of a small group of WordPress users. | ||
一小群WordPress用戶的項(xiàng)目。 | |||
=== [http://www.pytan.com/blog/?p=3 Multi Blog Hack] === | === [http://www.pytan.com/blog/?p=3 Multi Blog Hack] === | ||
=== [http://www.pytan.com/blog/?p=3 多個(gè)博客 Hack] === | |||
Another multiple blog hack for WordPress.? One installation, each user has his own theme, blogname, description, links, etc. | Another multiple blog hack for WordPress.? One installation, each user has his own theme, blogname, description, links, etc. | ||
WordPress另一個(gè)多個(gè)博客hack。安裝一次,每個(gè)用戶都會(huì)有自己的主題,博客名,描述,鏈接, 等等。 | |||
=== [http://birdhouse.org/software/2008/04/wp-create/ WP-Create] and [http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade] === | === [http://birdhouse.org/software/2008/04/wp-create/ WP-Create] and [http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade] === | ||
=== [http://birdhouse.org/software/2008/04/wp-create/ WP-Create] 和 [http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade] === | |||
A pair of shell scripts for web hosting administrators who manage a lot of scattered WordPress installations in different directory locations, owned by different users. The goal is to have all WordPress installations checked out and managed via subversion. | A pair of shell scripts for web hosting administrators who manage a lot of scattered WordPress installations in different directory locations, owned by different users. The goal is to have all WordPress installations checked out and managed via subversion. | ||
網(wǎng)絡(luò)管理員的一對(duì)shell腳本,網(wǎng)絡(luò)管理員管理不同用戶在不同目錄上安裝的WordPress。目的就是通過(guò)子版本,核查并且管理所有的WordPress。 | |||
'''[http://birdhouse.org/software/2008/04/wp-create/ WP-Create]''' is a super-fast way to set up a database and db user, check out WP via svn, create the wp-config file, and set permissions on the installations. It also generates an array line for use with WP-Mass-Upgrade. | '''[http://birdhouse.org/software/2008/04/wp-create/ WP-Create]''' is a super-fast way to set up a database and db user, check out WP via svn, create the wp-config file, and set permissions on the installations. It also generates an array line for use with WP-Mass-Upgrade. | ||
'''[http://birdhouse.org/software/2008/04/wp-create/ WP-Create]'''是一種非??斓姆绞?,用來(lái)創(chuàng)建數(shù)據(jù)庫(kù)和db用戶,通過(guò)svn查看WP,為安裝的WordPress設(shè)置權(quán)限,同時(shí)也為WP-Mass-Upgrade創(chuàng)建array line。 | |||
'''[http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade]''' contains an array of all WP installations on a server - their paths, URLs, owners, and emails. When new WP versions are released, this script will upgrade all installations in the array quickly, and send email to all of the clients letting them know their sites have been upgraded. Designed to be used in conjunction with WP-Create. | '''[http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade]''' contains an array of all WP installations on a server - their paths, URLs, owners, and emails. When new WP versions are released, this script will upgrade all installations in the array quickly, and send email to all of the clients letting them know their sites have been upgraded. Designed to be used in conjunction with WP-Create. | ||
'''[http://birdhouse.org/software/2007/07/wp-mass-upgrade/ WP-Mass-Upgrade]'''在服務(wù)器上包含了一組所有安裝好的WP-路徑,URLs,用戶和電子郵件。當(dāng)發(fā)行了新的WP版本的時(shí)候,這個(gè)腳本會(huì)快速地升級(jí)array中的所有安裝,并且向所有的客戶發(fā)送電子郵件,通知他們,他們的站點(diǎn)已經(jīng)升級(jí)了。和WP-Create一起使用。 | |||
These scripts are optimized for WHM/cPanel systems, but with slight modifications should work for Plesk and other systems as well. | These scripts are optimized for WHM/cPanel systems, but with slight modifications should work for Plesk and other systems as well. | ||
腳本對(duì)WHM/cPanel系統(tǒng)而言是最優(yōu)化的,但是只需稍作更改,也能夠在Plesk和其它的系統(tǒng)中運(yùn)行。 | |||
=== [http://skippy.net/search?criteria=vhost vhost plugin] === | === [http://skippy.net/search?criteria=vhost vhost plugin] === | ||
=== [http://skippy.net/search?criteria=vhost vhost 插件] === | |||
This plugin maps a virtual host to a single WordPress category, supporting fully independent themes.? Additionally, users can be restricted by the blog admin to post in only one category (and thus only one vhost): | This plugin maps a virtual host to a single WordPress category, supporting fully independent themes.? Additionally, users can be restricted by the blog admin to post in only one category (and thus only one vhost): | ||
插件將一個(gè)虛擬主機(jī)映射到單一的WordPress類別中,支持完全獨(dú)立的主題。此外,博客管理員會(huì)限制用戶只能夠在一個(gè)類別上發(fā)表文章(因此只有一個(gè)vhost): | |||
=== [http://rephrase.net/days/05/05/wordpress-multiplied Multiply] === | |||
=== [http://rephrase.net/days/05/05/wordpress-multiplied Multiply] === | === [http://rephrase.net/days/05/05/wordpress-multiplied Multiply] === | ||
Multiply is a plugin for WordPress 1.5.x which allows multiple blogs -- or, in the pretentious terminology I have adopted, "presses" -- from within the one administration interface. | Multiply is a plugin for WordPress 1.5.x which allows multiple blogs -- or, in the pretentious terminology I have adopted, "presses" -- from within the one administration interface. | ||
Multiply是WordPress1.5版本的插件,允許運(yùn)行多個(gè)博客—或者使用我采用的術(shù)語(yǔ),"presses" –在一個(gè)管理界面內(nèi)。 |
2008年8月20日 (三) 10:09的版本
Multiple Blogs Through Multiple Installs
通過(guò)多次安裝,安裝多個(gè)博客
If you want multiple blogs using WordPress, you must actually install each separately (that is, as a separate WordPress installation). You can do this whether you have the ability to create multiple databases or are limited to a single database.
如果你想要使用多個(gè)WordPress博客,你必須能夠分別地安裝每個(gè)博客(就是,分開安裝每個(gè)博客)。你有能力創(chuàng)建多個(gè)數(shù)據(jù)庫(kù)或者限制于一個(gè)單一的數(shù)據(jù)庫(kù)的時(shí)候,都可以創(chuàng)建多個(gè)WordPress博客。
Multiple Databases
多個(gè)數(shù)據(jù)庫(kù)
You'll need a separate MySQL database for each blog you plan to install. If you have not yet created these, basic instructions are found here.
你需要為計(jì)劃安裝的每個(gè)博客,創(chuàng)建單獨(dú)的MySQL 數(shù)據(jù)庫(kù)。如果你還沒(méi)有創(chuàng)建這些數(shù)據(jù)庫(kù),這里有基本的指導(dǎo)。
The wp-config.php file will vary for each installation. The lines to change are:
每次安裝的時(shí)候,wp-config.php文件都會(huì)發(fā)生變化。需要更改的行是:
define('DB_NAME', 'wordpress'); // The name of the database define('DB_USER', 'username'); // Your MySQL username define('DB_PASSWORD', 'password'); // ...and password
define('DB_NAME', 'wordpress'); // 數(shù)據(jù)庫(kù)名
define('DB_USER', 'username'); // 你的 MySQL 用戶名 define('DB_PASSWORD', 'password'); // ...和密碼
DB_NAME
will be the name of the individual database created for that blog. If you are using different user logins for each database, edit DB_USER
and DB_PASSWORD
to reflect this, as well.
DB_NAME
是為每個(gè)博客創(chuàng)建的單獨(dú)的數(shù)據(jù)庫(kù)的名稱。如果不同的用戶登錄不同的數(shù)據(jù)庫(kù),請(qǐng)編輯DB_USER
和DB_PASSWORD
反映這一點(diǎn)。
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See WordPress:Installing WordPress for more information.
將每個(gè)wp-config.php文件,上傳到各自的根/安裝目錄,并且運(yùn)行安裝。更多的信息,請(qǐng)看看安裝WordPress。
Single Database
單個(gè)的數(shù)據(jù)庫(kù)
As with the multiple databases solution described above, the wp-config.php file will vary for each installation. In this case, however, only a single line will be unique to each blog:
如上所述的多個(gè)博客有多個(gè)數(shù)據(jù)庫(kù),每次安裝,wp-config.php文件都不同。然而,在這個(gè)例子中,每個(gè)博客中只有一行是唯一的:
$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
By default, WordPress assigns the table prefix wp_
to its MySQL database tables, but this prefix can be anything you choose. By using more than one, you create unique identifiers for each blog in your database. For example, let's say you have three blogs to set up, with the names Main, Projects and Test. You want to substitute the prefix wp_
for each blog's wp-config.php:
默認(rèn)情況下,WordPress將表格前綴wp_
附加到MySQL 數(shù)據(jù)庫(kù)表格中,但是這個(gè)前綴可以是你選擇的任何內(nèi)容。通過(guò)使用多個(gè)前綴,你可以為數(shù)據(jù)庫(kù)中的每個(gè)博客創(chuàng)建唯一的標(biāo)示符號(hào)。例如,假如你要?jiǎng)?chuàng)建三個(gè)博客,博客名分別是Main,Projects和Test。你給每個(gè)博客的wp-config.php添加了前綴wp_
:
Main blog:
$table_prefix = 'main_';
Projects blog:
$table_prefix = 'projects_';
Test blog:
$table_prefix = 'test_';
Main 博客:
$table_prefix = 'main_';
Projects 博客:
$table_prefix = 'projects_';
Test 博客:
$table_prefix = 'test_';
As noted, you may use a prefix of your own making. Those provided here are for example purposes only.
如上所述,你可以自己創(chuàng)造前綴。這里使用的前綴,只是用于舉例。
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See WordPress:Installing WordPress for more information.
將每個(gè)wp-config.php文件上傳到特別的根/安裝目錄中,并且運(yùn)行安裝。更多的信息,請(qǐng)看看安裝WordPress。
Multiple Install Automation
自動(dòng)安裝多個(gè)博客
WordPress user Stephanie Booth provides instructions on automating the installation of multiple blogs for a weblog farm in her posting, Scripts for a WordPress Weblog Farm. In Musings on a Multiblog WordPress, Stephanie shares her thoughts on the process.
WordPress 用戶 Stephanie Booth在她發(fā)表的帖子WordPress 網(wǎng)絡(luò)日志 Farm腳本中,提供了自動(dòng)安裝多個(gè)博客的說(shuō)明。在[1],Stephanie分享了她的想法。
- You should have a peek at http://climbtothestars.org/play/wordpress.sh.txt -- a work in progress.
- 你應(yīng)該看看http://climbtothestars.org/play/wordpress.sh.txt --正在進(jìn)展的工作。
Alternative WordPress Projects
其它的 WordPress Projects
Alternative projects and plugins which provide some level of multi-blogging facility.
其它的projects和插件,使得寫多個(gè)博客,變得更加便利。
Lyceum
Lyceum
Developed by ibiblio.org, Lyceum is a stand-alone multi-user multi-blogging application designed to handle 2 to 2,000,000 blogs.
由ibiblio.org開發(fā),Lyceum是個(gè)單獨(dú)的,多用戶,多個(gè)博客軟件程序,能夠處理2到2,000,000博客。
Utilizing the WordPress blogging engine at its core, Lyceum enables stand-alone, multi-user multi-blog services for small and high-volume environments. At its core, Lyceum is a minimally-featured enhancement to WordPress.
在核心,使用WordPress博客引擎,Lyceum能夠在小環(huán)境,高流量的情況下,使用單獨(dú)的,多用戶,多博客的服務(wù)。Lyceum核心是WordPress最低限度的提升。
Lyceum lets WordPress do what it does well; we simply added nice things like smart administrative controls, an easy-to-use installer, enterprise-oriented database architecture, support for load-balancing, all the while focusing on flexibility, security and usability.
Lyceum使得WordPress執(zhí)行最好的操作;我們只要添加一些較好的內(nèi)容,如好的管理工具,便于使用的安裝器,符合需求的數(shù)據(jù)庫(kù)結(jié)構(gòu),負(fù)載平衡支持,同時(shí)突出靈活性,安全性和可用性。
Lyceum is GPL-licensed, under active development, and free to use. Lyceum currently powers sites like iblog.co.za, TeachFor.Us (Teach For America teachers' blogs), BodyBlogs and the Hopkins Blogs.
Lyceum受到通用公共許可證的許可,目前正在積極發(fā)展,而且可以免費(fèi)使用。Lyceum當(dāng)前推動(dòng)了iblog.co.za, TeachFor.Us站點(diǎn)(Teach表示美國(guó)來(lái)說(shuō)的博客),BodyBlogs 和Hopkins 博客。
WordPress:WordPress MU
WordPress MU
WordPress MU is an official branch of WordPress that is designed for managing and hosting thousands of blogs instead of just one.
WordPress MU是官方WordPress站點(diǎn)支部站點(diǎn),用來(lái)管理和托管成千上萬(wàn)個(gè)博客而不是單個(gè)的博客站點(diǎn)。
WordPress MU is ideal for applications like blog networks and newspapers looking to manage multiple blogs from a single installation, enterprise users looking for a large scale blogging solution for intranet deployments, schools and universities who want to offer blogs to all their students and teachers, or individuals looking to host multiple blogs for their families or friends.
WordPress MU是非常理想的博客網(wǎng)絡(luò)和報(bào)紙的應(yīng)用軟件,只要安裝一次,就可以管理多個(gè)博客,企業(yè)可以使用這個(gè)軟件為各部分安裝博客,學(xué)校和大學(xué)可以向?qū)W生和老師提升這樣的博客,個(gè)人如果想要為家人或者朋友托管博客,也可以使用這樣的軟件。
Like single-user WordPress, WordPress MU is available for free under the GPL open source license.
就如單一用戶使用的WordPress那樣,WordPress也是免費(fèi)的,可以在GPL 開放源碼許可獲取。
Example MU installations include:
MU安裝的例子包括:
- WordPress.com (400k blogs and several million page views per day as of Fall 06)
- Harvard University (free blogs for Harvard faculty and students)
- Le Monde Interactive (5,000 blogs for the Le Monde newspaper and its readers)
- EduBlogs (free hosted blogs for schools and teachers).
- WordPress.com (400k blogs and several million page views per day as of Fall 06)
- Harvard 大學(xué) (哈佛大學(xué)全體教員和學(xué)生的免費(fèi)博客)
- Le Monde Interactive (5,000 blogs for the Le Monde newspaper and its readers)
- EduBlogs (學(xué)校和老師的免費(fèi)托管博客)。
Virtual Multiblog
Virtual 多個(gè)博客
Stephen Rider's system that uses a modified config file to call different blogs based on directory or domain.
Stephen Rider的系統(tǒng),使用已更改的配置文件,根據(jù)目錄或者域,調(diào)用不同的博客。
Virtual Multiblog allows for easy upgrades of WordPress, as the only changed file in the entire install is wp-config.php (everything else is within a new folder in wp-content). It also is pretty "future proof", unless WordPress makes radical changes to wp-config.php.
Virtual Multiblog能夠輕易地升級(jí)WordPress,因此整個(gè)WordPress中唯一更改的文件是wp-config.php(其它所有內(nèi)容都在wp-content中的一個(gè)新的文件夾中)。這也是"future proof",除非WordPress對(duì)wp-config.php做了大量的更改。
This system is based on Allan Mertner's original symbolic link hack.
這個(gè)系統(tǒng)是以Allan Mertner的最初的symbolic link hack為基礎(chǔ)。
MultiSite
MultiSite
Ruben's attempt at a WordPress Multiblog Ruben嘗試多個(gè)WordPress博客。
Multi Blog
多個(gè)博客
The project of a small group of WordPress users.
一小群WordPress用戶的項(xiàng)目。
Multi Blog Hack
多個(gè)博客 Hack
Another multiple blog hack for WordPress. One installation, each user has his own theme, blogname, description, links, etc.
WordPress另一個(gè)多個(gè)博客hack。安裝一次,每個(gè)用戶都會(huì)有自己的主題,博客名,描述,鏈接, 等等。
WP-Create and WP-Mass-Upgrade
WP-Create 和 WP-Mass-Upgrade
A pair of shell scripts for web hosting administrators who manage a lot of scattered WordPress installations in different directory locations, owned by different users. The goal is to have all WordPress installations checked out and managed via subversion.
網(wǎng)絡(luò)管理員的一對(duì)shell腳本,網(wǎng)絡(luò)管理員管理不同用戶在不同目錄上安裝的WordPress。目的就是通過(guò)子版本,核查并且管理所有的WordPress。
WP-Create is a super-fast way to set up a database and db user, check out WP via svn, create the wp-config file, and set permissions on the installations. It also generates an array line for use with WP-Mass-Upgrade.
WP-Create是一種非??斓姆绞?,用來(lái)創(chuàng)建數(shù)據(jù)庫(kù)和db用戶,通過(guò)svn查看WP,為安裝的WordPress設(shè)置權(quán)限,同時(shí)也為WP-Mass-Upgrade創(chuàng)建array line。
WP-Mass-Upgrade contains an array of all WP installations on a server - their paths, URLs, owners, and emails. When new WP versions are released, this script will upgrade all installations in the array quickly, and send email to all of the clients letting them know their sites have been upgraded. Designed to be used in conjunction with WP-Create.
WP-Mass-Upgrade在服務(wù)器上包含了一組所有安裝好的WP-路徑,URLs,用戶和電子郵件。當(dāng)發(fā)行了新的WP版本的時(shí)候,這個(gè)腳本會(huì)快速地升級(jí)array中的所有安裝,并且向所有的客戶發(fā)送電子郵件,通知他們,他們的站點(diǎn)已經(jīng)升級(jí)了。和WP-Create一起使用。
These scripts are optimized for WHM/cPanel systems, but with slight modifications should work for Plesk and other systems as well.
腳本對(duì)WHM/cPanel系統(tǒng)而言是最優(yōu)化的,但是只需稍作更改,也能夠在Plesk和其它的系統(tǒng)中運(yùn)行。
vhost plugin
vhost 插件
This plugin maps a virtual host to a single WordPress category, supporting fully independent themes. Additionally, users can be restricted by the blog admin to post in only one category (and thus only one vhost):
插件將一個(gè)虛擬主機(jī)映射到單一的WordPress類別中,支持完全獨(dú)立的主題。此外,博客管理員會(huì)限制用戶只能夠在一個(gè)類別上發(fā)表文章(因此只有一個(gè)vhost):
Multiply
Multiply
Multiply is a plugin for WordPress 1.5.x which allows multiple blogs -- or, in the pretentious terminology I have adopted, "presses" -- from within the one administration interface.
Multiply是WordPress1.5版本的插件,允許運(yùn)行多個(gè)博客—或者使用我采用的術(shù)語(yǔ),"presses" –在一個(gè)管理界面內(nèi)。