Installation and configuration of some server software in Win2000 (NT)

Source: Internet
Author: User
To ensure smooth installation of servers and provide stable and high-quality services, you must set up the following items during win2000 system installation:
Set the partition where Win2000 is located to NTFS.
Do not set the server as a domain controller because it is too slow and cannot be used.
Set the IP address to 192.168.0.1.
Install DNS and set DNS to 192.168.0.1
After the system is installed, log on to the system with the account administrator and start installing the required Server:
Main tasks include: Setting DNS, FTP server, installing and setting web server and proxy server, installing and debugging MySQL Server
1. Set DNS
(1) Start Menu = management tools = Computer Management = services and applications Program
(2) Select DNS in the tree directory on the left in the open window
(3) Right-click "directory forward search area =" and select "create area": Enter "Net" in the input box;
(4) Right-click "Net" in the new directory and choose "=" to create a new area: Enter zjxyz in the input box.
(5) Right-click the newly created directory zjxyz = to create a new host: Enter the Host Name: www IP Address: 192.168.0.1
Repeat Step (4) in input Host Name: leave blank
Repeat Step (5) and leave null in the input host names www1, www2, and FTP.
In this way, all the IP addresses that point to the IP address 192.168.0.1 are
Domain Name of www.zjxyz.net www1.zjxyz.net www2.zjxyz.net ftp.zjxyz.net
(6) refresh the DNS database address.
Test:
In the command line, enter:
Ping 192.168.0.1
If the connection indicates that the TCP/IP address of Win2000 works properly, you can perform the next test.
In the command line, enter:
Ping zjxyz.net
Ping www.zjxyz.net
Ping www1.zjxyz.net
......
If the connection instruction is set, the domain name can be resolved normally. If not, you can clear the Server Buffer in the right-click menu or restart the system.
Ii. Configure and test the FTP server
Win2000 FTP server can be used without configuration,
You can change the root directory and some permissions as required by the provision of services.
Test:
Prepare a file test.txt in the current directory for testing.
In the command line, enter:
FTP
Open ftp.zjxyz.net
User
Administrator
Passwd
Put test.txt
Ls-l
If test.txt is listed, the FTP server can work normally.
Iii. install, configure, and test web server and Proxy Server
Brief description:
Because you are not familiar with the Web server settings of IIS (Internet Information Server,
Besides ASP
It cannot work well with other popular server programs to provide efficient services,
Therefore, we chose the most popular Apache Web Server as the Win2000 web server.
At the same time, Apache's proxy server can provide good HTTP and FTP Proxy services.
Preparations before installation:
By default, all Web servers occupy port 80 of TCP/IP,
To prevent port conflicts between IIS Web server and Apache web server,
Therefore, you can choose not to install IIS when installing the win2000 system;
If you select IIS, you can select
[Default web site] and [Managed Web site] services =, right-click =, and stop
Stop the Web server of IIS.
To enable Apache Web server to execute some server scripts to provide excellent intercommunication services for web sites.
Therefore, you can choose to install some software packages.
Http://www.php.net download PHP for Win32 decompress in
C: \ PHP \ directory
Rename the php. ini-Dist file to PhP. ini.
So that Apache can process PHP scripts.
To http://www.activestate.com/
Download perl5 for Win32,
Click Install to c: \ Perl,
So that Apache can support Perl CGI.
Install Apache:
To
Http://www.apache.org
Download the latest version of Apache for Win32
Click Install to set the installation directory
X: \ apache (X is the drive letter)
Configure Web Server:
Edit the configuration file. In the old version, the main configuration of Apache is scattered in three configurations, and the new version is concentrated in httpd. conf. Here, the new version is used as an example.
Open X: \ apache \ conf \ httpd. conf in a text editor.
Basically, some important settings have been set during installation.
Manual settings are required in several places
(1) Find # servername new. Host. Name
In this line, replace the comment symbol '#'
Servername new. Host. Name
The default home page root directory of Apache is X: \ apache \ htdocs.
Find
DocumentRoot X:/Apache/htdocs
Change to the required path.
Test:
The default page of Apache is index.html.
There is already a file like this in X: \ apache \ htdocs.
Enter:
Http://www.zjxyz.net
If the page is displayed, the web server is successful.
(2) CGI support
Find the following lines
# ScriptAlias/cgi-bin/"E:/Apache/cgi-bin /"
# <Directory "E:/Apache/cgi-bin">
# AllowOverride none
# Options none
# </Directory>
Change the comment symbol '#'
ScriptAlias/cgi-bin/"X:/Apache/cgi-bin /"
<Directory "X:/Apache/cgi-bin">
AllowOverride none
Options none
</Directory>
Make the file have the following line:
Addhandler CGI-script. cgi. pl
Enter
X:/Apache/apache.exe-K restart
Restart Apache
Test:
Use a text editor to edit a file named test. cgi.
File Content:
#! C: \ Perl \ bin \ perl.exe
Print "Content-Type: text/html \ n ";
Print "test ";
Put this file in X:/Apache/cgi-bin.
Enter:
Http://www.zjxyz.net/cgi-bin/test.cgi
If the returned information is
Test
It indicates that the server supports CGI.
(3) Support for PHP
In
Add the following lines:
ScriptAlias/PHP/"C:/PHP /"
Addtype application/X-httpd-PHP. php. php3
Addtype application/X-httpd-PHP-source. PHPs
Action application/X-httpd-PHP "/PHP/php.exe"
Enter
X:/Apache/apache.exe-K restart
Restart Apache
Test:
Use a text editor to edit a file named test. php.
File Content:
<? Phpinfo ();?>
Put this file in X:/Apache/htdocs
Enter:
Http://www.zjxyz.net/test.php
If the returned information is
A large string of PHP-related information
It indicates that the server supports PHP.
(4) configure the virtual host
Brief description: Apache Virtual Hosts can be IP-based virtual hosts or name-based virtual hosts.
Here, we only conduct an experiment on the name-based virtual host.
You have configured several domain names before. Now you can use them to configure virtual hosts for Apache.
In X:/Apache/htdocs/
Create subdirectories: www1 and www2
Files with different content names index.html are stored in the www1 and www2 directories for testing.
Add in httpd. conf
Namevirtualhost 192.168.0.1
<Virtualhost www1.zjxyz.net>
Serveradmin webmaster@www1.zjxyz.net
DocumentRoot X:/Apache/htdocs/www1
Servername www1.zjxyz.net
Errorlog logs/host. some_domain.com-error_log
Customlog logs/host. some_domain.com-access_log>
</Virtualhost>
<Virtualhost www2.zjxyz.net>
Serveradmin webmaster@www2.zjxyz.net
DocumentRoot X:/Apache/htdocs/www2
Servername www2.zjxyz.net
Errorlog logs/host. some_domain.com-error_log
Customlog logs/host. some_domain.com-access_log>
</Virtualhost>
Enter
X:/Apache/apache.exe-K restart
Restart Apache
In the browser, enter:
Http://www1.zjxyz.net
Http://www2.zjxyz.net
If you can see the relevant page, the VM is configured.
(5) Configure Proxy Server
Prepare ws of another computer to be connected to Win2000 for testing.
Find in httpd. conf
# Loadmodule proxy_module modules/apachemoduleproxy. dll
This line removes the comment symbol '#'.
Confirm the following rows.
Cacheroot "x/Apache/proxy"
Cachesize 1024000
Cachegcinterval 4
Cachemaxexpire 24
Cachelastmodifiedfactor 0.1
Cachedefaultexpire 1
<Directory Proxy: *>
Authtype basic
Authname proxy
Order deny, allow
Deny from all
Allow from 192.168.0
</Directory>
The IP address on the computer ws must start with 192.168.0 or the proxy cannot be accessed.
Open the browser settings on the computer Ws = connection = Proxy Server
Server address: Fill in 192.168.0.1 port: 8080
Test:
Restart Apache and connect to the Internet
Enter a URL that can be connected in the computer's ws browser. If you can see the relevant web page, the proxy is configured.

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.