[IIS] IIS Literacy (v)

Source: Internet
Author: User
Tags ftp site metabase

The second FTP server for IIS

First, set up your FTP site

The Setup method of the first FTP site (i.e. "Default FTP Site") and more methods for establishing the FTP site are described in the previous Web server related operations. It should be noted that if you want to use an IP address for multiple different FTP servers, you can only use a different port number method to implement, and does not support the "host header" approach.
For an established FTP server, access in the browser will use the format "ftp://192.168.0.1" or "ftp://192.168.0.1:22", except for anonymous access users (Anonymous). FTP in IIS will use the user library that comes with Windows 2000 (you can find the user in the start → programs → administrative tools → Computer Management) to manage the user library.

Second, this part of the frequently asked questions

Q: How can I modify the system prompt information when the FTP server is logged on successfully or exited?
A: Right-click on the appropriate FTP site, select "Properties", then go to the "Messages" window, at the "Welcome" to enter the welcome message after the successful login, at "Exit" to enter the user exit when the farewell message can be.
Q: After the successful establishment of my FTP server, in addition to the Administrator (Administrator) and anonymous users (Anonymous), ordinary users can not log on the computer, but on other computers can be used normally. Why is this?
A: Because of the default, normal users do not have permission to log on natively. If you want to modify, go to "start → program → administrative tools → local Security Policy" select "Left frame → local policy → user Rights Assignment", then double-click on the "Log on Locally" item in the right frame, then add the normal user you want to the list.
The third SMTP server for IIS

If you're too slow to send e-mails on the Internet, you might consider using IIS to build a local SMTP server. Whether you are connected directly to the Internet or through a local area network, whether you have a static IP address or a dynamic IP address, you can easily build success!
The way to establish an SMTP server under IIS is as simple as having the default SMTP virtual server in the startup state in IIS Manager, and generally no more settings.
If you want to send a letter to your SMTP server, simply fill in "localhost" in the "Outgoing Mail server (SMTP)" entry in your e-mail client software settings, and it will work regardless of how your IP address changes, 6.

When you use your own SMTP server to send e-mail, not only is not subject to people's sense of freedom, more lightning-like speed, is the best choice for personal SMTP server!

===========================================
If you don't understand, you can go here and see.
Http://www.yesky.com/ServerIndex/77132944006709248/20040518/1798612.shtml
Reference: http://www.yesky.com/ServerIndex/77132944006709248/20040518/1798612.shtml
IIS Teacher Yi 2006-2-26 16:39 reply to this statement
8 IIS500 error is caused by a bug in Microsoft. Here is the workaround:
IIS500 error is caused by a bug in Microsoft. Here is the workaround:

The main reason is that the IWAM account (which is the Iwam_myserver account on my computer) caused an internal HTTP 500 error.

In the detailed analysis of the causes of HTTP500 internal errors, the IWAM account for a brief introduction: IWAM account is installed IIS5 when the system automatically established a built-in account, mainly used to start the application outside the process of Internet Information Services. The name of the IWAM account differs depending on the NetBIOS name of each computer, and the common format is iwam_machine, which consists of the "IWAM" prefix, the connection line "_", and the NetBIOS name of the computer. The NetBIOS name of my computer is MYSERVER, so the name of the IWAM account on my computer is Iwam_myserver, which is very similar to the way IIS Anonymous account Isur_machine is named.

IWAM account is established by active Directory, IIS metabase database and COM + application tripartite use, the account password is three parties respectively, and by the operating system responsible for the three-party IWAM password synchronization work. According to common sense, the operating system is responsible for the work we can rest assured that there is no need to worry about error, but do not know whether it is a bug or other reasons, the system of IWAM account password synchronization will sometimes fail, so that the three-party IWAM account password is not uniform. When IIS or COM + applications log on to the system with an incorrect IWAM password and start IIS out-of-process pooled applications, the system rejects the request because of a password error, causing IIS Out-of-process pooled Applications failed to start, which is what we saw in the ID10004 Error event "cannot run server {3d14228d-fbe1-11d0-995d-00c04fd919c1}" (Here { 3D14228D-FBE1-11D0-995D-00C04FD919C1} is a key to IIS Out-of-process pooled applications and cannot be transferred to a IIS5 application, and an HTTP 500 internal error is generated.


Three. Workaround


Knowing the cause of the HTTP 500 internal error, it's easier to solve it by manually synchronizing the passwords in active Directory, IIS metabase databases, and COM + applications with IWAM accounts.

The specific operation in three steps, you need to log on to the computer as an administrator to provide sufficient operational permissions (IWAM account to Iwam_myserver for example).


(i) Change the password of the Iwam_myserver account in Active Directory

Because the IWAM account password is controlled by the system, randomly generated, we do not know what is, in order to complete the following two steps of the password synchronization, we must set the password of the IWAM account to a value we know.

1. Select Active Directory Users and Computers, start, programs, Administrative Tools, start the Active Directory Users and Computers snap-in.

2. Click "User", select "Iwam_myserver" on the right, select "Reset Password (T) ..." and set the new password to iwam_myserver in the Reset Password offset box, where we set the "Aboutnt2001" (without quotation marks), OK, wait for the password to be modified successfully.


(b) Synchronize the password of the Iwam_myserver account in IIS Metabase

Perhaps because of this change is too sensitive and important, Microsoft did not modify the IIS metabase Iwam_myserver account password to provide an explicit user interface, only with IIS5 provide a management script adsutil.vbs, the script is located in C:\inetpub\ AdminScripts Sub-directory (location may vary depending on your settings when you install IIS5).

The Adsutil.vbs script is powerful, has a lot of parameters and is complex to use, providing only a way to modify the Iwam_myserver account password using this script:

adsutil SET W3svc/wamuserpass Password

The "Password" parameter is the new password for the IWAM account to be set. So our command to change the password of the Iwam_myserver account in IIS metabase to "Aboutnt2001" is:

C:\inetpub\adminscripts>adsutil SET w3svc/wamuserpass "Aboutnt2001"

After successful modification, the system will be prompted as follows:

WAMUserPass: (String) "Aboutnt2001"


(iii) iwam_myserver password for synchronizing COM + applications

To synchronize the iwam_myserver password used by the COM + application, we have two options: one is to use the Component Services MMC snap-in, and the other is to synchronize the script Synciwam.vbs with the IWAM account.


1. Using the Component Services MMC snap-in
IIS Teacher Yi 2006-2-26 16:42 reply to this statement
9 IIS500 error is caused by a bug in Microsoft. Here is the workaround:

(1) Start the Component Services snap-in: Select Start, Run, MMC, start the management console, open the Add/Remove Snap-in dialog box, and add the Component Services snap-in.

(2) Find "Computer", "Component Services", "My Computer", "COM + application", "Out-of-process Pooled Applications", right-click "Out-of-process Pooled Applications "," Properties ".

(3) switch to the Flags tab of the Out-of-process Pooled Applications Properties dialog box. "This application runs under the following accounts" option in the "This user" will be selected, the user name is "Iwam_myserver". These are the default and do not have to be changed. Enter the correct password "Aboutnt2001" in the "password" and "Confirm password" text boxes below to confirm the exit.

(4) If the system prompts "the application is created by more than one external product." Are you sure you want to be supported by these products? "When you are sure.

(5) If we set some other Web "application protection" to "high (standalone)" In IIS, the IWAM account password of the COM + application used by this web will also need to be synchronized. Repeat (1)-(4) Steps to synchronize the IWAM account password of the corresponding out of process application.


2. Use IWAM Account Synchronization script Synciwam.vbs

In fact, Microsoft has found that the IWAM account in the password synchronization problem, so in IIS5 's management script separately for IWAM account password Synchronization wrote a script synciwam.vbs, the script is located in C:\inetpub\ AdminScripts Sub-directory (location may vary depending on your settings when you install IIS5).

Synciwam.vbs script usage is relatively straightforward:

cscript Synciwam.vbs [-v|-h]

The "-V" parameter indicates the entire process of displaying the script execution (recommended), and the "-H" parameter is used to display simple help information.


We want to synchronize the Iwam_myserver account in the COM + application password, only need to execute "cscript synciwam.vbs-v", as follows:

cscript c:\inetpub\adminscripts\synciwam.vbs-v

Microsoft (R) Windows Script Host Version 5.6

Copyright (C) Microsoft Corporation 1996-2000. All rights reserved.


Wamusername:iwam_myserver

wamuserpass:aboutnt2001

IIS Applications Defined:

Name, appisolated, package ID

W3SVC, 0, {3d14228c-fbe1-11d0-995d-00c04fd919c1}

Root, 2,

IISHelp, 2,

IISAdmin, 2,

IISSamples, 2,

MSADC, 2,

ROOT, 2,

IISAdmin, 2,

IISHelp, 2,

Root, 2,

Root, 2,


Out of process applications defined:

Count:1

{3D14228D-FBE1-11D0-995D-00C04FD919C1}


Updating Applications:

Name:iis out-of-process Pooled Applications Key: {3D14228D-FBE1-11D0-995D-00C04FD919C1}


As you can see from the execution of the above script, using Synciwam.vbs scripts is more comprehensive and faster than using Component Services. It first finds the IWAM account "Iwam_myserver" from the IIS Metabase database and takes out the corresponding password "Aboutnt2001", then finds all the defined IIS applications and out of process Applications, and synchronize each of the IWAM account passwords for each of the out of process applications applications.

When using the Synciwam.vbs script, it is important to note that before you run Synciwam.vbs, you must ensure that the IIS metabase database is consistent with the IWAM password in Active Directory. Because the Synciwam.vbs script is the password for the IWAM account from the IIS metabase database and not from Active Directory, if the password in IIS metabase is incorrect, The password obtained by the Synciwam.vbs will also be incorrect, the synchronization operation to "Updating applications" system will be reported 80110414 error, "Cannot find the application { 3D14228D-FBE1-11D0-995D-00C04FD919C1} ".


OK, so far, the password for the IWAM account in active Directory, IIS metabase database, and COM + application has been successfully synchronized, and your ASP program can run again!
IIS Teacher Yi 2006-2-26 16:42 reply to this statement
10 What should I do if I want to make a website?
Trouble bit to help, I want to do a website, but I do not know what to learn some aspects of the know, trouble to make a website friend help to leave a message, the best to say more detailed, thank you!

For:

Hehe, today I come to tell you how to do a website of your own, this is actually very simple, we first start from the operating system:



One: Select operating system

1: Choose Server System, this is the server operating system, this is what we need to build a strong and stable server, Now the server system has the previous Nt-server series and now popular 2000serverand2000advaanced-server and just out of the 2003.net series for me our average user with the server system of 2000 servers on the line. All right, now go to the pirate market and spend 3 bucks on a plate, then go to Microsoft's website to download the latest SP4 patch. All right, you go ahead and install the system, I'll have a cup of tea. (How to install the operating system without me to teach it)

2: Installing the system and software

Install after 2000 to check whether IIS is installed, this is the most critical, if not loaded on this, the site is not to be dropped. Everyone with the mouse right click on My Computer, then click Manage, will open an interface. Click the plus sign on the left side of the service and application to expand it to see if there is an Internet Information service option in it. If there is, then our operating system is completed, if not, please install from the 2000 installation CD, or the site is not a way to do. Well, after installing IIS, we can then apply for a domain name resolution. Of course, before applying, please take a look at your IP address is the public network or intranet, click "Start" and then click "Run" in the dialog box that appears to enter "CMD" and then click OK, will appear "MS-DOS." Then enter the "ipconfig" command. Check the IP address, generally to 192|172|, such as the beginning of the intranet IP, 202|201, and so the beginning of the public IP address. This is important, be sure to find out, this in the past will be used in the intranet.
OK, and then we based on the IP address found to download the corresponding domain name resolution, we open IE browser, enter
Www.dns0755.net this website, and then will enter the branch of the network, in the application of a domain name, here, if your IP is public network, it is free, if the IP is the intranet is charged, the general two-level intranet domain name is 200 yuan a year, the role of domain name analysis is to let others can find your machine through the domain name Manager
After the application to download a client program from it, the client program is a compressed file, unzip it into a directory to be able to. OK, the installation of the software is these, the following should say how to do the site. We need to set up the client we just downloaded when we do the website, but we'll talk about it later.


Two: Settings for IIS
The key is here. (IIS is the WIN2000 http/ftp/smtp/service, it combines the ASP dynamic page technology, FTP server, mail server, is a powerful server group), as we have just said, Open Internet Information Service (that is, IIS), on the right side of the window we can see the "Default Web site" and its condition is running, OK, we right click on it, click on Properties, a "Default Web Site Properties" dialog box appears, in the "Web site identity" under the description of the right frame is "Default Web Site", change its name to the name of your site, of course, you can not change, nothing serious, the rest if you do not understand the words please do not move. Then, click on the Home Directory tab, locate the directory where your site is located, click OK, then click on the Document tab, click on the "Add" button on the right and click "Index.html" in the dialog box, then you will see the "index.html" you just added in the main window. Then click on the left one up button to raise it to the top, and then add "index.asp|index.htm" in turn, IIS is set up. Click OK both (here to say, this index is the site's access document, so this must be added, everyone in this step should be careful). Well, the following teaches you to do chat rooms, websites, forums.


[IIS] IIS Literacy (v)

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.