PHP environment configuration-download the Apache server for windows and phpapache from the apache Official Website

Source: Internet
Author: User

PHP environment configuration-download the Apache server for windows and phpapache from the apache Official Website

As I am forced to download software, I like to download it from the official website. After a long time, I finally figured out how to download the Apache server installed on windows from the Apache official website. Now I will share it with you.

Go to the apache server official website http://httpd.apache.org/. here we download the stable version

Httpd 2.2.29 is used as an example. Click download.

Due to the revision of the official website, the previous method may be used to download files. In order not to waste everyone's time, we hereby Amend \

The first step is to click download

Click the link Files for 3 Microsoft Windows

The Apache HTTP Server Project itself does not provide binary releases of softwar

E, only source code. Individual committers may provide binary packages as a con

Venience, but it is not a release deliverable.

If you cannot compile the Apache HTTP Server yourself, you can obtain a binary p

Ackage from numerous binary distributions available on the Internet.

Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on

Microsoft Windows, include:

ApacheHaus

Apache Lounge

BitNami WAMP Stack

WampServer

XAMPP

Apache does not provide compiled installation packages, but only the source code.

You can select the websites that are compiled by the third parties recommended by the following official teams.

The last two are the famous wamp and xampp integrated environments. If you only want to download apache, you can select the first three

Website. Here we use the first ApacheHaus as an example.

Open ApacheHaus and you will find that there are various windows versions on this website.

.

Click the icon in the red box to start downloading. x86 is 32-bit and x64 is 64-bit. Select

Download options

Decompress the package and move it to the desired place.

Enter the bin directory under apache under the command line, and enter

Httpd-k install

Install apache as a windows Background Service.

Use ApacheMonitor to start your apache

The Apache Monitor is a desktop tray application that allows you to monitor

Existence of a running Apache service and easily start, stop and restart Apache. T

O use it just double click on the ApacheMonitor.exe in the \ Apache24 \ bin folder. I

F you want it to start automatically for you when you log into the computer, just

Drag a copy into the Startup folder in Window's Start Menu.

For more operations, see the appendix 10 readme_first.html.

Make a summary of some of your problems

1. Because apache listens to port 80 by default, if your computer's iis is in the startup status and 80 ports are used

Port. apache cannot be started normally. You need to stop iis first, and thunder may also use port 80.

Close thunder. Check whether port 80 is in use. Enter the following command line:

Netstat-aon | findstr "80"

If the result shows that port 80 has been used, you need to disable the software or modify apache

Listener Port

Open conf/httpd. conf in the apache directory and search for "Listen 80"

Change to Listen 8088.

Save and restart apache.

2. Run the httpd-k install command to check whether the service is successfully installed.

Start --> Run --> services. msc --> OK

If apache is displayed in the service list, it indicates that the service is successfully installed. You can click on the left.

To start the service.

3. The service cannot be properly installed. First, determine whether the 32-bit and 64-bit software matches your system.

Second, check whether the computer has installed the corresponding software running package. For example, if you download the VC9 version, you must first install

Install Microsoft Visual C ++ 2008 Redistributable. Similarly, you need to install Microsoft

Visual C ++ 2012 Update 4 Redistributable Package (X86 & x64)

At the bottom of the ApacheHaus website, the corresponding Visual Studio Redistributable Packages

Load Link

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.