Home Backend Development PHP Tutorial Install IIS under Win2K and configure asp+cgi+php+mysql_PHP tutorial

Install IIS under Win2K and configure asp+cgi+php+mysql_PHP tutorial

Jul 15, 2016 pm 01:23 PM
iis Down Install Configuration

Install win2K, install IIS, among which Indexing Service, FrontPage 2000 Server Extensions, Internet Service Manager (HTML) should be installed, and there are others. In short, do not install any that are not needed. (According to the security principle, the least services + the least permissions = the greatest security.)
First, open the Internet Manager (Start-->Programs-->Management-->Internet Service Management) if installed as above , there is a default site and an SMTP service item. Select the default site and delete all directories below it. (Press the delete key on your keyboard) The easiest way to stop iis is: Start-->Run-->type net stop iisadmin Select Y and press Enter (the startup command is: net start w3svc) put Inetpub on the C drive Delete the directory completely (can only be deleted after stopping iis), create a new directory on another disk, and point the default site's home directory to the newly created directory in the IIS manager. If you need any permissions, you can slowly create the directory yourself. What is needed? What permissions are given?
(Pay special attention to the write permission and the permission to execute the program. Don't give it unless absolutely necessary. It is not given by default, so you don't need to study, haha...)
Application configuration: In IIS Manager Delete any useless mappings except those that are necessary, leaving ASP, ASA and other file types that you really need to use (except cgi, php, I think you have no use for the others. Delete htw, htr, idq, ida... ) Don’t know where to delete it? ? Method: Open Internet Service Management->Select Site->Properties->WWW Service->Edit->Home Directory->Configuration->Application Mapping, and then start deleting them one by one (it is really troublesome not to select them all). Then change the script error message to send text in the application debugging bookmark of the window just now (unless you want the user to know your program/network/database structure when an ASP error occurs). What should you write in the error text? Whatever you like, it's up to you. When you click OK to exit, don't forget to let the virtual directory inherit the attributes you set.
In order to deal with the increasing number of CGI vulnerability scanners, there is another tip you can refer to. Redirect the HTTP404 Object Not Found error page to a customized HTM file through the URL in IIS, which can scan most of the current CGI vulnerabilities. The device malfunctions. In fact, the reason is very simple. For convenience when writing, most CGI scanners judge whether the vulnerability exists by looking at the HTTP code of the returned page. For example, the famous IDQ vulnerability is generally tested by taking 1.idq. If If HTTP200 is returned, it is considered that there is a vulnerability. On the contrary, if HTTP404 is returned, it is considered that there is not. If you redirect the HTTP404 error message to the HTTP404.htm file through the URL, then all scans will return HTTP200 regardless of whether there is a vulnerability, 90% of the time. The CGI scanner will think that you have all kinds of vulnerabilities, but in the end, it will cover up your real vulnerabilities, leaving intruders at a loss and nowhere to start. However, from a personal point of view, I still think that doing a solid job in security settings is better than such a little trick. Much more important.
Win2000 account security is another key point. First of all, the default installation of Win2000 allows any user to obtain all accounts/share lists in the system through an empty user. This is originally to facilitate LAN users to share files, but a remote user can also obtain it. your user list and use brute force to crack user passwords. Many friends know that you can prohibit 139 empty connections by changing the registry Local_MachineSystemCurrentControlSetControlLSA-RestrictAnonymous = 1. In fact, the local security policy of win2000 (if it is a domain server, it is in the domain server security and domain security policy) has such an option RestrictAnonymous ( Additional restrictions on anonymous connections), this option has three values:
0: None. Rely on default permissions (None, depends on the default permissions)
1: Do not allow enumeration of SAM accounts and shares (do not allow Enumerate SAM accounts and shares)
2: No access without explicit anonymous permissions (no access is allowed without explicit anonymous permissions)
0 This value is the system default, there are no restrictions, remote users can know you All accounts, group information, shared directories, network transmission lists (NetServerTransportEnum, etc.) on the machine are very dangerous for the server.
1 This value only allows non-NULL users to access SAM account information and shared information. .
2 This value is only supported in win2000. It should be noted that once you use this value, your sharing will probably be ruined, so I recommend that you set it to 1. >Okay, now the intruder has no way to get our user list, our account is safe... Wait, there is at least one account that can change the password. This is the built-in administrator of the system. What should I do? To change it, right-click administrator in Computer Management->User Account and change the name to whatever you want, as long as you can remember it. After changing the super-admin user name, you can still see it on the login interface of Terminal Service (you can change it to whatever you like). You will remember it after logging in). Modification method: run regedit, find the Don't Display Last User Name string data in the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionwinlogon item and change it to 1, so that the system will not automatically display the last login user name.
For security, you can also turn on TCP/IP filtering, right-click Network Places on the desktop->Properties->right-click the network card you want to configure->Properties->TCP/IP->Advanced->Options->TCP /IP filtering, there are three filters here, namely: TCP port, UDP port and IP protocol TCP port. Click "Only allow", and then add the port you need to open below. Generally speaking, the WEB server only needs to open 80 (www), the FTP server needs to open 20 (FTP Data), 21 (FTP Control), 3306 (Mysql), 3389 (remote terminal control, if your host is hosted in someone else's computer room and cannot be operated directly, you need this) The mail server may need to open 25 (SMTP) and 110 (POP3). I have not researched the ports, but if you follow the services provided in this article, you only need to open the above few. (80, 20, 21, 25, 3306, 3389)
cgi support
Download activeperl (available at

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446871.htmlTechArticleInstall win2K, install IIS, including Indexing Service, FrontPage 2000 Server Extensions, Internet Service Manager (HTML). Install it, there are some others, but don’t install anything you don’t need. ...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to install Android apps on Linux? How to install Android apps on Linux? Mar 19, 2024 am 11:15 AM

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

Understand Linux Bashrc: functions, configuration and usage Understand Linux Bashrc: functions, configuration and usage Mar 20, 2024 pm 03:30 PM

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

How to install Podman on Ubuntu 24.04 How to install Podman on Ubuntu 24.04 Mar 22, 2024 am 11:26 AM

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 Mar 22, 2024 pm 04:40 PM

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

How to open iis application pool How to open iis application pool Apr 09, 2024 pm 07:48 PM

To open an application pool in IIS: 1. Open IIS Manager; 2. Navigate to the "Application Pools" node; 3. Right-click the target application pool and select "Manage"; 4. Click "Advanced Settings" Tab; 5. Application pool configuration can be viewed and modified here.

Detailed steps to install Go language on Win7 computer Detailed steps to install Go language on Win7 computer Mar 27, 2024 pm 02:00 PM

Detailed steps to install Go language on Win7 computer Go (also known as Golang) is an open source programming language developed by Google. It is simple, efficient and has excellent concurrency performance. It is suitable for the development of cloud services, network applications and back-end systems. . Installing the Go language on a Win7 computer allows you to quickly get started with the language and start writing Go programs. The following will introduce in detail the steps to install the Go language on a Win7 computer, and attach specific code examples. Step 1: Download the Go language installation package and visit the Go official website

Complete guide to install FTPS service on Linux system Complete guide to install FTPS service on Linux system Mar 19, 2024 am 11:39 AM

Title: A complete guide to installing FTPS service under Linux system In Linux system, setting up an FTP server is a common requirement. However, in order to enhance the security of data transmission, we can choose to install the FTPS service, which adds SSL/TLS encryption function based on the FTP protocol. Through the FTPS service, we can upload and download files while ensuring the security of data transmission. This article will provide a detailed guide for installing FTPS service under Linux system and provide specific instructions.

How to install Go language under Win7 system? How to install Go language under Win7 system? Mar 27, 2024 pm 01:42 PM

Installing Go language under Win7 system is a relatively simple operation. Just follow the following steps to successfully install it. The following will introduce in detail how to install Go language under Win7 system. Step 1: Download the Go language installation package. First, open the Go language official website (https://golang.org/) and enter the download page. On the download page, select the installation package version compatible with Win7 system to download. Click the Download button and wait for the installation package to download. Step 2: Install Go language

See all articles