Download and installation of Apache server

Source: Internet
Author: User
Tags php server vc9

About PHP's operating environment, the online article complex, so that their own finishing an article!

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.

(a) Apache official website download Apache HTTP Server server

I believe that some friends just use Apache server, all want to download from the official website, and facing the official network of many projects and mirrors and catalogs, perhaps a little dazed. Here are the specific steps:

① Open Apache official website http://www.apache.org/

② Click on the upper right corner of the download, the following interface appears, here is the mirror server, just find one, here is the recommended version.

③ appear directory list, these are Apache project list, I also do not understand why APAHCE in this way browse, good ugly.

④ point "httpd", the following interface appears

⑤ Point Red Box section, the following interface appears

⑥ Enter the following interface, select the first Apachehaus, this is a third-party download platform, on its website to download the independent Apache will be a compressed package. The other four, the second is also the independent Apache, the other three is the integrated development environment. The first one of the candidates.

⑦ in the new interface, will find the words VC9 and VC11, by reading the relevant content, VC9 refers to the code compiled with VS2008, and VC11 is compiled with VS2012, and VS2012 compiled in Windows XP and Server 2003 can not be used. For the sake of compatibility good point, this candidate with VC9 compiled 32-bit Apache, choose to download this, the download process is complete!

(ii) installation of Apache servers

After the Apache server download is complete, unzip it.

1. Download the installation package

2. Unzip the file into the directory you want to place, I choose to put it in the D:\Apache-2.4.20 directory.

Note: Apache24 name can be changed according to their own situation, I changed to "Apache", as follows:

Three configuration of the Apache server

Open httpd.conf file (under D:\Apache-2.4.20\Apache\conf, this is my, place different location, then file location is different)

① Modify the directory location as shown in:

If your 80 port is occupied (can be viewed under cmd with Command netstat-a), change the 80 port to another save.

② configuration installs Apache's master service, and with it, Apache can start. Open the cmd window and enter:"D:\Apache-2.4.20\Apache\bin\httpd.exe"-K install-n Apache, Remember to include quotation marks . The command means installing the Apache service and naming the service name Apache (you can also change to another), enter.

Service installation completed, after completion, will be automatically tested, if there is a problem, the window will prompt the error, at this time, according to the error self-troubleshooting.

The normal installation is complete as shown in the following:

Among them, Errors reported here must is corrected before the service can be started. This means that the errors reported here must be corrected before the service starts. If not, then success.

Four Apache Server Start-up

After the Apache server is configured, we can start the server, and there are three ways to start the Apache server under 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 the command line

I do not know why I can not start with the command line, as follows:

3. Use the Apache server's own windows to open

Locate the ApacheMonitor.exe in the bin directory, open

Double click to run, the bottom right corner of the desktop icon appears, double-click the Open Window interface, you will see:

Click Start on the left to start the Apache service.

Supplementary sentence, from this interface can be seen, it can manually control the opening and closing of services, in order to save resources, the time to close the Apache server, please click "Stop" to close the Apache service. Of course, the service can also be turned off in Windows system Services (recommended for manual setup).

Shows the status of the service successfully displayed:

Open the browser, enter access to http://localhost, if the interface appears as shown, the basic configuration of the Apache server is complete, the Apache server is ready to run, more specific configuration, users need to go to ponder.

(v) uninstallation of Apache services

If the Apache server software does not want to use, want to uninstall, you need to uninstall the Apache service (remember, if the folder directly delete the installation path, there will be residual files in the computer, may cause unnecessary trouble), in the cmd command window, enter as follows (it is recommended to stop the service before deleting):SC Delete Apache(Apache is the service name of the Apache server).

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.