Install Discuz Forum in Windows 7 + IIS7.5

Source: Internet
Author: User
The team leader said that deploying a forum on the intranet would make it difficult for me to install Discuz. The deployment environment is a common PC, Quad-Core i3, and Windows 7. This is the case. The preparation system is Windows 7 Professional Edition and comes with IIS7.5 (not for home edition ). IIS7 started with FastCgi, which has much better support for PHP, so it does not have to install Apache. Download PHP

The team leader said that deploying a forum on the intranet would make it difficult for me to install Discuz.
The deployment environment is a common PC, Quad-Core i3, and Windows 7. This is the case.

Preparations

The system is Windows 7 Professional Edition and comes with IIS7.5 (not for home edition ). IIS7 started with FastCgi, which has much better support for PHP, so it does not have to install Apache.
Download PHP 5.4, MySQL 5.5, and Discuz X2.

For IIS7 FastCgi, we should select the thread-safe version compiled by VC9.

Install PHP

Decompress PHP. the path I gave is C: \ PHP.
Rename php. ini-production to php. ini (change the development environment if it is used in the development environment)

Modify extension path

Extension_dir = "./ext"

Enable MySQL extension (remove the semicolon)

Extension = php_MySQL.dll

Modify time zone

Date. timezone = Asia/Shanghai

Run the following PHP command in the command line:

Cd C: \ PHP
Php-v

You can see the php version information. if you open the extension that does not exist in the dll file, a prompt will be displayed.

Configure IIS

IIS is easy to handle, but you must first install these items:

1. add module ing
Start IIS Manager, set "handler ing" to the server, and "add module ing":
(Figure)
Note: when setting the executable file path, select exe.

2. Add index. php as the default document.
Set "default document" for the server and add index. php


3. create a new site
Create a new site and create a directory to store your website, C: \ Forum
Enter the domain name you want to bind to the host name. when multiple websites exist on one server, the domain name is almost required.
Of course, if the intranet is used, change the hosts to get it.


4. set the program pool
Go to the application pool, set the application pool corresponding to the site you just created, and set the. Net framework version to unmanaged code.

Restart IIS and place an index. php in the website directory. the content is very simple:

Access the website. if the settings are correct, you can see the PHP system information.

Install MySQL

It is easy to install MySQL. follow the tutorial provided by Discuz.
Because I used the UTF8 version of Discuz, I chose UTF8 in the selection of character encoding.

As for changing the Database Directory and moving the dll, it seems that there is no need at all, so I will not do it.

Install Discuz

The most annoying thing is done, and finally everything in upload in the installation package is copied to the website directory,
Visit the install directory on the website to see the installation interface.
You don't need to talk about the rest ···

Remember to go to UCenter> Global> domain name Settings> application domain name and set the Forum domain name after the installation is complete,
Otherwise, the forum homepage is 500.

Over.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.