Tips: If you haven't downloaded the relevant software, please go to the first tutorial!
Must SEE: If you have installed the IIS server, go to: "Start-> program-> Administrative Tools-> Internet Information Services (IIS) Manager-> Web site" to stop all sites. Otherwise, Apache will not start.
Previous: Install Apache server
Locate the downloaded Apache_2.2.3-win32-x86-no_ssl.msi file and double-click to install it.
Apache Installation Interface ·
(Stealing the lazy, from the Internet to find a few ready-made pictures with, hehe)
First step:Needless to say, everyone knows, of course, the "Next" button.
Step Two:Point "I accept the terms ... (agree to the agreement) "and then click the" Next "button.
Step Three:At this point you will see the Apache server instructions, and then click the "Next" button again.
Fourth Step:Finally see a need to enter the interface of Dongdong, the following figure:
The above three input baskets in turn are: domain name, server name, Administrator mailbox. Because we are installed locally, so this love to fill in with your own taste to fill out. If it is a live ammunition with the server, that should pay more attention to the next. The first basket "network domain" information, fill in the domain name of your server here, if you have already applied to the domain name, fill in the domain name of your application, (note here to fill in the domain name, only you apply to the second half of the full domain name, excluding "www".) If you are applying for a level two domain name, it is the first "." After that, if not yet, put the IP on the machine to fill in the line. The next basket is the server name, fill in the full domain name or IP address. The next basket is the admin email address. These three items are required to be completed in the installation, but you can change them at any time after the installation is complete, so you don't have to worry about the wrong fill. The final option is to use 80 port or 8080 port, generally do not need to change (we use the default 80 port good). Well, say too much nonsense, ignore it, fill out the "Next" button.
Fifth Step:Here are two options typical (typical installation) and custom (customized installation), to save time, we choose Typical, click "Next" button.
Sixth step:You will see a "Change ..." button, you can use it to modify the Apache installation directory, the default installation directory is C:\Program Files\apache Group This is as you like, the default, or to change their own catalog installed or not, the impact is not big. For easy explanation, we use the default directory here. Point "Next" button.
Seventh Step:Ready to install, directly click the "Install" button to install it.
Apache installation Process ·
Complete the installation with the "Finish" button installed.
OK, now to your Start menu click: Apache HTTP Server 2.2.3-> control Apache server-> start
This step is to start the server.
God forbid, now we're going to start testing if the installation is successful. Open the browser, enter in the address: http://localhost or http://127.0.0.1 If you can see the following interface, it means that the installation was successful. Otherwise...... Let's start over. Good luck to you, too.
If you have a successful installation, then go ahead and do it. Now we need a simple configuration of the Apache server, positioning a good php file. General put PHP folder directory for C:\Program Files\apache Group\apache2\htdocs Let's do a test, write an HTML file, enter the following code:
Program code
<title>hello world</title>
<body>
Hello World
</body>
Save the file as "hello.htm" and copy it to the C:\Program files\apache Group\apache2\htdocs directory, open the browser, and enter http://localhost/hello.htm to see the output. That is to say, the Htdocs folder is specifically used to store the site files, of course, we can modify him, the following to facilitate the management of Web site files, please join me to modify.
We assume that the site files are placed in the D:\PHProot directory, then go to D disk to establish the Phproot folder, and then open the C:\Program in Notepad files\apache group\apache2\conf Directory of httpd.conf files, find:
DocumentRoot "C:/Program Files/apache group/apache2/htdocs"
Change the uplink to a downward line:
DocumentRoot "D:/phproot"
Note: Here is the use of the oblique rod "/" instead of "\" Beware of confusion. Otherwise, there may be an error.
Then write an HTML file with the following code:
Program code
<title>oh yeah</title>
<body>
Oh Yeah
</body>
Save the file as "yeah.htm" and copy it to the D:\PHProot directory, open the browser, and enter http://localhost/yeah.htm to see the output. If the Web page shows "Oh Yeah" the configuration is successful, then, I wish you good luck.
Finally the Apache installation is done, in the "apache+php environment configuration--Medium", I will detail the installation of PHP and configuration methods. I hope you'll get something out of this tutorial. Don't forget to focus on Www.hetty.cn's latest tutorial.
Click here to download the World document for this tutorial