Rotten mud: using IIS, Zblog, and SQLServer to build an ASP blog

Source: Internet
Author: User
Tags website ip
This article was first published in the dark world and sponsored by Xiuyi linfeng. You may laugh when you see the title of the article. Do I still need to use IIS to create a website or blog? I am not familiar with IIS so far. Today, we are just taking this opportunity to build a database with SQLServer and IIS

This article was first published in the dark world and sponsored by Xiuyi linfeng. You may laugh when you see the title of the article. Do I still need to use IIS to create a website or blog? I am not familiar with IIS so far. Today, we are just taking this opportunity to build a database with SQLServer and IIS

This article is first published onRotten mudIt is sponsored by Xiuyi Lin Feng.

You may laugh when you see the title of the article. Do I still need to use IIS to create a website or blog?

I am not familiar with IIS so far. Today, we just took this opportunity to build an ASP blog with SQLServer as the database and IIS as the web container. The Zblog program code used by this blog.

To create this blog, we need to do three parts.

1. Environment Configuration

2. installation and configuration of SQLServer Database

3. IIS configuration

4. Zblog installation and configuration

Part 1: Related Environment Configuration

We don't need to do much to configure the relevant environment. This experiment was conducted in a virtual machine. Therefore, an error will be prompted when we access the service through the domain name.

Here we use the ilanni.com domain name for access, so we need to add a matching record in the hosts file of the virtual machine. For example:

650) this. width = 650; ">

In addition, I also need to explain some points. Ddisks in the root directory of our blog, such:

650) this. width = 650; ">

The source code of the blog ilanni.com is in the ilanni folder, for example:

650) this. width = 650; ">

Well, the above is what we need to do for the environment. Next, we need to operate the database.

Part 2: installation and configuration of SQLServer Database

Since the ZBlog blog program can use ACCESS as the database or SQL Server as the database, we use SQL Server as the database again. For SQL Server databases, I chose the free installation version of SQLServer2000. For example:

650) this. width = 650; ">

After the SQL Server database is started successfully. We need to create a blog database, such:

650) this. width = 650; ">

650) this. width = 650; ">

After the database is created, we can connect to the database client to see if it can be used normally. I am using the Navicat for SQLServer software for practice testing, such:

650) this. width = 650; ">

Note that when the host name is entered. If the current database port number is not modified, enter the IP address directly. If you have modified the port number, enter "IP address, port number. The green database we are using now uses the port number 7788. As shown in.

650) this. width = 650; ">

The database is connected correctly.

Part 3,IISConfiguration

I will not do many demos about IIS installation. If it is Server 2003, you need to install the IIS component. If you are using Server 2008, the installation is simpler. This demonstration was conducted on Server 2003. After the installation is complete:

650) this. width = 650; ">

Configuration is started below. Because ZBlog uses the ASP language, we need to enable some options in Web Service extension, such:

650) this. width = 650; "> 650) this. width = 650;">

After IIS is configured, We need to install ZBlog.

Part 4,ZblogInstallation and configuration

Before installing Zblog, we need to create a website. Start IIS, right-click "website", and choose "New"> "website", for example:

650) this. width = 650; ">

650) this. width = 650; ">

In the description, we can enter it as needed.

650) this. width = 650; ">

We need to pay attention to this interface. For "website IP Address", we recommend that you use the default port 80. Otherwise, you must add the port number after the domain name when visiting the website.

You can enter or not enter the host header. If this server only creates a website, you do not need to enter it. However, if multiple websites are on this server and port 80 is used, we recommend that you fill in. I will write a blog about the Host Header separately.

650) this. width = 650; ">

650) this. width = 650; ">

Select the path of the website.

650) this. width = 650; ">

The access permission of the website.

650) this. width = 650; ">

After the website is created, Click Browse. The following error occurs:

650) this. width = 650; ">

What we need to do now is right-click "website"-"attribute", for example:

650) this. width = 650; ">

Click "main directory"-"configuration"-"option" and select "enable parent path", as shown in:

650) this. width = 650; ">

At this point, we click again and it will be normal during browsing. For example:

650) this. width = 650; ">

After browsing, we can install ZBlog. However, before Zblog is officially installed, we still have to do something, that is, permission allocation. Right-click the website-"permission", for example:

650) this. width = 650; ">

We need to grant all permissions to the USERS user group. Otherwise, we will always be prompted to install Zblog when installing Zblog.

650) this. width = 650; ">

After assigning permissions, we can install Zblog. For example:

650) this. width = 650; ">

650) this. width = 650; ">

Check the Zblog installation environment and related permissions.

650) this. width = 650; ">

Pay attention to this part. Select "MSSQL" as the database type, that is, Sqlserver. Enter the local address for the database host. Because the data I use is modified by the port number, the port number is added when I enter it. Others need to be filled in by themselves.

650) this. width = 650; ">

Installation is complete.

650) this. width = 650; ">

You can now officially access the service.

The software used in this experiment is as follows:

SQLServer 2000 green free installation version:

Http://pan.baidu.com/share/link? Consumer id = 2751295335 & uk = 3104283265

Navicat for SQLServer green installation version:

Http://pan.baidu.com/share/link? Consumer id = 2748637692 & uk = 3104283265

Rotten mudTravel all over the world

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.