Two Download and installation of Apache server

Source: Internet
Author: User
Tags php server

PHP must run without the support of the server, what is the server? Popular speaking is on a computer, install a server software, this computer can be called a server, Server software and the computer itself is the operating system is not the same, the computer's own operating system can be Linux, Unix, Windows or MacOS, The service software can also be Apache (PHP), Tomcat (java/jsp), IIS (ASP).

PHP mainly uses the Apache server, the main site building combination of lamp (Linux, Apache, MySQL, PHP), Windows integrated server Software for Wamp (Windows, Apache, MySQL, PHP). In addition, there are some other PHP server software, such as Germany's LIGHTTPD, Russia's nginx.

In their own learning, the main use of the Apache server, so here is mainly about the Apache service download and installation. Download Apache server, you can download it on the official website http://httpd.apache.org.

  (a) The process of downloading Apache on official website

(1) Apache homepage

(2) Right select different version download

  

(3) Go to the download page

(4) Depending on the platform, select the appropriate version, here Select the Windows platform

  

(5) Using a third party platform, download the required version, here we directly click on the first

  

Finally, select the corresponding version number to download.

  (ii) configuration of Apache servers

After the Apache server download is complete, unzip it.

(1) Download the installation package

  

(2) Put the file into the directory you want to place, here we choose to put down the e-disk under

  

Note that here we change the name of the folder, you cannot start the Apache server, the method is modified as follows:

1. Open the Httpd.cof file (under E:\Apache\conf, this is my, place different location, then the file location is different)

  

(2) Modify directory location

Find the code:

Define srvroot "E:/apache24"

ServerRoot "${srvroot}"

Modified to:

Define srvroot "E:/apache"//change according to the name of the folder

ServerRoot "${srvroot}"

(iii) Apache Server start-up

After the Apache server is configured, we can start the server, there are three ways to start the Apache server in Windows,

1. Using Windows Startup

Turn on Computer Management, locate the Apache service item, select the appropriate action (start, stop, restart) when you right-click

  

2. Start with command line

First, jump to Apache under the bin directory

  

(3) Use the Apache server's own windows to open

Locate the ApacheMonitor.exe in the bin directory, open

  

To this end, the Apache server download, install, start all finished.

Note: for the purpose of each file under the Apache server, as shown in:

This version is a bit old, but basically similar, Apache folder not much change!!

Two Download and installation of Apache server

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.