年年我发电子商务



返回   年年我发电子商务 > 网站建设 > Blog(博客)/Wiki(维客)/RSS/Cms
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

Blog(博客)/Wiki(维客)/RSS/Cms Blog(博客)/、Wiki(维客)、RSS、Cms等WEB 2.0相关技术讨论专区。

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 218.2.66.101
旧 2010-01-25, 08:31 PM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 686
精华: 11
现金: 523 元
资产: 2971 元
声望: 10 topvip 正向着好的方向发展
默认 Install WordPress on IIS

Introduction
WordPress is a blog publishing application and content management system. According to wordpress.org, WordPress is “a state-of-the-art semantic personal publishing platform with a focus on aesthetics, Web standards, and usability.” The following sections describe how to install and configure WordPress for use with FastCGI on Internet Information Services 7 (IIS 7). This document assumes that you have completed the setup and configuration of the FastCGI extension and PHP libraries.

The easiest way to install WordPress is by downloading it from the Windows® Web App Gallery. If you need the Microsoft® Web Platform, you can install the components with the Microsoft® Web Platform Installer (Web PI), which is also available at the Windows Web App Gallery.

The following article provides guidance for installing WordPress manually. The instructions have been tested and found to work in the following configurations:

•Windows Server® 2008 operating system
•IIS 7
•PHP 5.2.9
•MySQL 5.1.34
•WordPress 2.8.5
Prerequisites
From the base default configuration file provided by PHP, modify the following lines in your Php.ini configuration:

•Define extension_dir as c:\php\ext (for example, the location of your php extensions directory).
•Uncomment extension=php_mysql.dll in the extensions list to enable MySQL support.
Download and Unpack the Application
First, download the latest stable release of WordPress. For this article, WordPress version 2.8.5 was used. Uncompress the WordPress files and copy the files to C:\Inetpub\wwwroot\wordpress or another directory of your choosing. There is no need to modify permissions on the WordPress Web directory, because the default permissions suffice.

Set Up the Database
Before starting the installation procedure for WordPress, you must create a database on your server. Also create a user and grant this user “db ownership” permission to the database. This article uses the following database information:

•Database name: wordpress
•Database user: wordpress
•Account password: wordpress
Modify the Configuration File
Modify the WordPress configuration file to connect to the database.

1. From Windows® Explorer, navigate to the installation directory (C:\inetpub\wwwroot\wordpress), and rename the file wp-config-sample.php to wp-config.php.

2. Edit wp-config.php; change the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST values as follows:

<?php

// ** MySQL settings ** //

define('DB_NAME', 'wordpress'); // The name of the database

define('DB_USER', 'wordpress'); // Your MySQL username

define('DB_PASSWORD', 'wordpress'); // ...and password

define('DB_HOST', '192.168.0.4'); // Change this to the IP address of your database

define('DB_CHARSET', 'utf8');

define('DB_COLLATE', '');



// You can have multiple installations in one database if you give each a unique prefix

$table_prefix = 'wp_'; // Use only numbers, letters, and underscores.



// Change this to localize WordPress. A corresponding MO file for the

// chosen language must be installed to wp-content/languages.

// For example, install de.mo to wp-content/languages and set WPLANG to 'de'

// to enable German language support.

define ('WPLANG', '');



/* That is all, stop editing. */



define('ABSPATH', dirname(__FILE__).'/');

require_once(ABSPATH.'wp-settings.php');

?>
回复时引用此帖

wellcome to www.0058.net
  #2   IP: 218.2.66.101
旧 2010-01-25, 08:31 PM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 686
精华: 11
现金: 523 元
资产: 2971 元
声望: 10 topvip 正向着好的方向发展
默认

Create Rewrite Rule
1. Open the Web.config file (located in the same directory as the WordPress files). If you do not have a Web.config file in the WordPress directory, create it.

2. Copy and paste the following XML section into the system.webServer element:

<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
This rule matches any requested URL; if the URL does not correspond to a file or a folder on a file system, then the rule rewrites the URL to Index.php and determines which content to serve based on the REQUEST_URI server variable that contains the original URL before it was modified by the rule.
回复时引用此帖
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛禁用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转

相似的主题
主题 主题作者 版面 回复 最后发表
How To: Run Apache HTTP Server and IIS on Windows Server 2003 yahoo 服务器环境搭建 0 2009-09-11 08:43 AM
IIS与Apache共用80端口方法 yahoo 服务器环境搭建 0 2009-09-11 08:41 AM
IIS与Apache共用80端口方法 yahoo 服务器环境搭建 0 2009-09-11 08:40 AM
wordpress 搜索引擎优化的二十条实用技巧 car 搜索引擎优化 0 2008-03-11 08:33 AM
WordPress 中文包 sunshine Blog(博客)/Wiki(维客)/RSS/Cms 0 2007-03-12 10:16 AM

prescription glasses ink cartridges 展览展示 干燥剂 电加热器 电子散热器 电热管 发酵罐 prescription glasses


所有时间均为北京时间. 现在的时间是 08:57 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2010,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager