install wordpress
- download wordpress
- extract wordpress to your web server
- open corresponding url of the web server via browser
- setup mysql database
- setup administrator user
- OK. you can use wordpress now.
wordpress addtional setup
- enable google analytics plugin
- enable baidu tongji plugin
- enable wp-syntax plugin
wordpress multi-user setup
- backup wp-config.php
- add define('WP_ALLOW_MULTISITE', true); to wp-config.php
- open admin page -> tools -> network
- backup .htaccess
- follow the guide and finish the setup
Chinese detail:
- backup wp-config.php
- add allow multiple site to wp-config.php
// add here
define('WP_ALLOW_MULTISITE', true);
/* 好了!请不要再继续编辑。请保存本文件。使用愉快! */
- open admin page -> tools -> network
工具->配置网络
- backup .htaccess
- follow the guide and finish the setup
you will see
创建一个 WordPress 站点网络
启用网络
请完成下列步骤以创建站点网络。
注意:我们强烈建议您备份您当前的 wp-config.php 文件和 .htaccess 文件。
将 blogs.dir 目录新建于 /cms/wp-content/blogs.dir。该目录用于存放其他站点上传的多媒体文件,因此网页服务器需要拥有写权限。
向您的 wp-config.php 文件(在 /cms/)中添加下列内容。请添加在 /* That’s all, stop editing! Happy blogging. */ 或 /* 好了!请不要再继续编辑。请保存本文件。使用愉快! */ 的上方:
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); $base = '/cms/'; define('DOMAIN_CURRENT_SITE', 'your.site.com'); define('PATH_CURRENT_SITE', '/cms/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
在 / 中的 .htaccess 添加下列内容,覆盖掉其他 WordPress 规则。
RewriteEngine On
RewriteBase /cms/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
the config to be replace is following, comment it out.
#RewriteEngine On
#RewriteBase /cms/
#RewriteRule ^index\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /cms/index.php [L]
完成这些步骤后,您的网络就已被配置妥当并启用了。您将需要重新登录。 登录