WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計算
- 微博營銷
- 虛擬主機管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機
WordPress:Installing Multiple Blogs
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 can do this whether you have the ability to create multiple databases or are limited to a single database.
如果你想要使用多個WordPress博客,你必須能夠分別地安裝每個博客(就是,分開安裝每個博客)。你有能力創(chuàng)建多個數(shù)據(jù)庫或者限制于一個單一的數(shù)據(jù)庫的時候,都可以創(chuàng)建多個WordPress博客。
Multiple Databases
多個數(shù)據(jù)庫
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.
你需要為計劃安裝的每個博客,創(chuàng)建單獨的MySQL 數(shù)據(jù)庫。如果你還沒有創(chuàng)建這些數(shù)據(jù)庫,這里有基本的指導(dǎo)。
The wp-config.php file will vary for each installation. The lines to change are:
每次安裝的時候,wp-config.php文件都會發(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ù)庫名
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
是為每個博客創(chuàng)建的單獨的數(shù)據(jù)庫的名稱。如果不同的用戶登錄不同的數(shù)據(jù)庫,請編輯DB_USER
和DB_PASSWORD
反映這一點。
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See WordPress:Installing WordPress for more information.
將每個wp-config.php文件,上傳到各自的根/安裝目錄,并且運行安裝。更多的信息,請看看安裝WordPress。
Single Database
單個的數(shù)據(jù)庫
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:
如上所述的多個博客有多個數(shù)據(jù)庫,每次安裝,wp-config.php文件都不同。然而,在這個例子中,每個博客中只有一行是唯一的:
$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ù)庫表格中,但是這個前綴可以是你選擇的任何內(nèi)容。通過使用多個前綴,你可以為數(shù)據(jù)庫中的每個博客創(chuàng)建唯一的標(biāo)示符號。例如,假如你要創(chuàng)建三個博客,博客名分別是Main,Projects和Test。你給每個博客的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.
將每個wp-config.php文件上傳到特別的根/安裝目錄中,并且運行安裝。更多的信息,請看看安裝WordPress。
Multiple Install Automation
自動安裝多個博客
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腳本中,提供了自動安裝多個博客的說明。在[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和插件,使得寫多個博客,變得更加便利。
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是個單獨的,多用戶,多個博客軟件程序,能夠處理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)境,高流量的情況下,使用單獨的,多用戶,多博客的服務(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ù)庫結(jié)構(gòu),負(fù)載平衡支持,同時突出靈活性,安全性和可用性。
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ā)展,而且可以免費使用。Lyceum當(dāng)前推動了iblog.co.za, TeachFor.Us站點(Teach表示美國來說的博客),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站點支部站點,用來管理和托管成千上萬個博客而不是單個的博客站點。
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ò)和報紙的應(yīng)用軟件,只要安裝一次,就可以管理多個博客,企業(yè)可以使用這個軟件為各部分安裝博客,學(xué)校和大學(xué)可以向?qū)W生和老師提升這樣的博客,個人如果想要為家人或者朋友托管博客,也可以使用這樣的軟件。
Like single-user WordPress, WordPress MU is available for free under the GPL open source license.
就如單一用戶使用的WordPress那樣,WordPress也是免費的,可以在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é)生的免費博客)
- Le Monde Interactive (5,000 blogs for the Le Monde newspaper and its readers)
- EduBlogs (學(xué)校和老師的免費托管博客)。
Virtual Multiblog
Virtual 多個博客
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能夠輕易地升級WordPress,因此整個WordPress中唯一更改的文件是wp-config.php(其它所有內(nèi)容都在wp-content中的一個新的文件夾中)。這也是"future proof",除非WordPress對wp-config.php做了大量的更改。
This system is based on Allan Mertner's original symbolic link hack.
這個系統(tǒng)是以Allan Mertner的最初的symbolic link hack為基礎(chǔ)。
MultiSite
MultiSite
Ruben's attempt at a WordPress Multiblog Ruben嘗試多個WordPress博客。
Multi Blog
多個博客
The project of a small group of WordPress users.
一小群WordPress用戶的項目。
Multi Blog Hack
多個博客 Hack
Another multiple blog hack for WordPress. One installation, each user has his own theme, blogname, description, links, etc.
WordPress另一個多個博客hack。安裝一次,每個用戶都會有自己的主題,博客名,描述,鏈接, 等等。
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ò)管理員的一對shell腳本,網(wǎng)絡(luò)管理員管理不同用戶在不同目錄上安裝的WordPress。目的就是通過子版本,核查并且管理所有的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是一種非??斓姆绞剑脕韯?chuàng)建數(shù)據(jù)庫和db用戶,通過svn查看WP,為安裝的WordPress設(shè)置權(quán)限,同時也為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版本的時候,這個腳本會快速地升級array中的所有安裝,并且向所有的客戶發(fā)送電子郵件,通知他們,他們的站點已經(jīng)升級了。和WP-Create一起使用。
These scripts are optimized for WHM/cPanel systems, but with slight modifications should work for Plesk and other systems as well.
腳本對WHM/cPanel系統(tǒng)而言是最優(yōu)化的,但是只需稍作更改,也能夠在Plesk和其它的系統(tǒng)中運行。
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):
插件將一個虛擬主機映射到單一的WordPress類別中,支持完全獨立的主題。此外,博客管理員會限制用戶只能夠在一個類別上發(fā)表文章(因此只有一個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版本的插件,允許運行多個博客—或者使用我采用的術(shù)語,"presses" –在一個管理界面內(nèi)。