Classic powerful server software Apache

  
First, the software introduction

1, Apache is one of the most popular web server software. Fast, reliable, and easy to extend via a simple API, the Perl/Python interpreter can be compiled into the server, completely free, and fully open source. If you need to create a web server with millions of people accessing every day, Apache might be the best choice.
2, Apache Web Server Win32 is released from version 1.3.17 using MSI (extension). MSI files can be run directly under Windows. They are used in the same way as the EXE (extension) files we usually use. Convenience.
3, but the emerging stuff of MSI files also brings trouble to users who use Microsoft's earlier release of Win98 and WinNT. When they install, the system will prompt "Unable to install this installation through Windows Installer Service Package. You must install the Windows Service Pack with a newer version of the Windows Installer service, and you will not be able to continue! —— and under WinME and Win2K, there will be no such trouble.
4, to solve the trouble of installing MSI files under Win98 and WinNT can not be completed, you need to have the corresponding version of the package named "Microsoft Installer", install it before you can start the installation of MSI.
5, this software is free software; the test environment for this article is windows 2000.
6, to ensure that this software has been uninstalled (or stopped) other HTTP server software before installation.
Second, software installation

1, the machine has been upgraded to a domain controller, has a domain name named "edu.enanshan.com"; the computer name is "server" ;; The complete computer name is "server.edu.enanshan.com".
2, double-click the Apaceh installation file ".msi" to enter the installation wizard.
3. When the installation wizard proceeds to "License Agreement", click on the "I accept the terms in the license agreement" and press "Next" Continue to the next step.
4, after entering the "Server Information" (Server Information) interface, for the domain controller, the system will automatically fill in the relevant content; if not, you need to manually fill in "Network Domain" Network domain name), "Server Name" (server name) and "Administrator's Email Address" (administrator mailbox) before you can select the "Run as a service for all Users" Then press "Next" to continue.



5, and then is to choose the type of installation (Setup Type). Apache provides two installation methods: "Complte" (complete installation) and "Custom" (custom installation). Generally, select "Complte" and continue to complete the installation.
6. In the "Destination Folder" (target directory), the system will install Apache to "C:\\Program Files\\Apache Group" by default. For the convenience of future operation, it is recommended to install the path here. Change to "C:\\" with "Change". After the system is successfully installed, a directory named "Apache" will be automatically created here. That is, the path of the actual Apache system files after installation will be the "C:\\Apache" directory.
7, other options are selected to complete the final installation! After the installation is successful, you need to restart your computer as prompted. Then go to the Control Panel and open the "Services" in "Administrative Tools" and you can see that the Apache service has been successfully running!
8 In addition, in the "Program" in the Start menu, there will also be a component named "Apache httpd Server", under which the "Configure Apache Server" item can edit the configuration file. And test configuration; "Control Apache Server" (Control Apaceh Server) item can start, stop and restart Apache service; "Review Server Log Files" (view log file) can view Apache system log files.
9, when you are sure that Apache has been successfully installed and running, you can open the browser directly, enter the format of "http://server" (server name) in the address bar, you can call up your The first Apache page!
10, if you want to uninstall it, in addition to the control panel's "Add/Remove Programs" found "Apache HTTP Server Version 1.3.20" entry to "delete", you also need to " C:\\Apache" The entire directory is deleted more thoroughly.
Three, basic settings

1, Apache's core configuration file name is "httpd.conf", the path is stored in the directory "C:\\Apache\\conf". After opening it with Notepad, modify it and save it to achieve the purpose of configuring the Apache server!
2, because the configuration file "httpd.conf" determines the use of the entire Apahce server, so be careful about its modifications! It is highly recommended to make multiple backups first to prevent errors! If you forget the backup, when the error can not be restored, the system also prepared a backup file named "httpd.default.conf", which is automatically done by the system after you first installed Apache. A backup of httpd.conf". Fortunately, good! I almost reloaded. ^-^
3, change the home page path
(1) By default, the Apache home page file is stored in the "C:\\Apache\\htdocs" directory.
(2) For example, if you want to enter "http://server" (server name), you can call up your own homepage file in the "D:\\Onlyme\\wy" directory, then open it with Notepad first. The "httpd.conf" file in the C:\\Apache\\conf" directory, use the "Find " function in the "Edit" menu, find "DocumentRoot "C:/Apache/htdocs"" In a sentence, then change "C:/Apache/htdocs" in half-width quotes to "D:/Onlyme/wy" (register here is "/" instead of "\\").






4, OK, now open your browser, enter " http: //server ", see what appears! Ah, "HTTP 404 not found"? OMG! Oh, yes, there is the default home page file name. Apache has only one "index.html", is this your name? Anyway, mys is not, followed by the file name does not have to! So now you have to type ""http://server/index.htm". It’s coming out! Still not? Well, try this, find the "Apache httpd Server" component in the "Program" in the Start menu, and then select "Restart" in "Control Apache Server" to re-run the Apache HTTP service. …… finally can! I breathed a sigh of relief.
5, However, it is really troublesome to enter the file name every time you call the homepage! Add my "Index.htm" to it! Well, still need the baby's "httpd.conf" file, look for "DirectoryIndex index.html" line, here is the default call file! Add your "index.htm" and other types after "index.html" and save. The only thing to note is that each file type must be separated by a space!
6, the last thing to be reminded is: after changing the configuration, if it does not take effect, remember to use "Restart"!

Copyright © Windows knowledge All Rights Reserved