Windows XP install Apache environment graphic

Source: Internet
Author: User

Double-click the Apache_2.2.8-win32-x86-no_ssl.msi file to begin installing the Apache HTTP Server 2.2.8.

You will see the following screen:

Click Next, then select I Accept the terms in the license agreeement,

Click Next and you will see the following image:

Then click Next to enter the Server information screen, as shown below:

Enter localhost in the text box in Network Domain.

Enter localhost in the text box in Server Name.

Enter an email address in the Administrator's email addresses

Then select for all Users, on Port, as a Service-recommended.

Click Next to select Typical, as shown below:

Click Next to enter the destination Folder screen, as shown below:

Click Next to see the installation Complete screen, as shown below, click Finish to finish the installation.

If you also see the following black and black Dos interface, please different worry, press ESC key to exit. Wait, we need to change the configuration file for Apache HTTP Server.

modifying Apache HTTP Server configuration files

After you install Apache HTTP Server, you will need to modify the configuration file.

The configuration file path for Apache is as follows:

C:Program Filesapache Software foundationapache2.2confhttpd.conf

For security reasons, it is recommended that you back up this file first.

Then use Notepad to open the file and modify the port settings.

will be Listen 80 changed intoListen 8080

Change the ServerName localhost:80 into ServerName localhost:8080.

Save the file.

Start Apache Service

After modifying the configuration file, you can start the Apache HTTP Server.

In the Windows Start menu, select Start--> all Programs--> Apache HTTP Server 2.2--> Monitor Apache Servers, click After you will see in taskbar there A small red icon, double-click the icon to open the Apache Service Monitor screen, as shown below.

Click the Start button to open the Apache Service.

Test Apache HTTP Server is running correctly

Enter http://localhost:8080/index.html in the browser, or enter http://localhost:8080/directly. If the Appache HTTP Server is running correctly, the browser displays the file. The following figure:

The path to the file is: C:Program filesapache Software foundationapache2.2htdocsindex.html

Htdocs is the default root directory for Apache HTTP Server.

Related Article

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.