Detailed installation tutorials and solutions for Apache in Windows

Source: Internet
Author: User

Detailed installation tutorials and solutions for Apache in Windows

Apache is the world's No. 1 Web server software. It can run on almost all widely used computer platforms. It is one of the most popular Web server software because of its wide use of cross-platform and security.

(1) download Apache installation software

1. Visit http://httpd.apache.org/to see the following page. You can select the corresponding version for download. Here I select Apache2.4.

2. Click Download To Go To The following page. Find Files for Microsoft windows.

3. Click Files for Microsoft windows to go to the following page. Find ApacheHaus.

 

4. Click it to finally see the Downloaded Program. Select the desired version to download. Here, x86 indicates a 32-bit system and x64 indicates a 64-bit system. Here, because my computer is a 64-bit system, I can download x64.

(2) install the Apache program

1. Enter the command line in cmd to find the location of your Apache, and then enter the httpd-k install command to execute it.

2. at this time, it is reported that "the program cannot be started, because VCRUNTIME140.dll is lost in the computer, and this program is re-installed to solve this problem". Solution: download and install vc ++ 2015, link: https://www.microsoft.com/zh-cn/download/confirmation.aspx? Id = 48145. You can download and install the SDK directly.

3. Another problem occurs during re-running, that is, you do not have the Apache installation permission. But when you see this error, find cmd and run it as an administrator. Let's talk about it. This is a win8 system, so it looks awkward. You can directly find the cmd directory C: \ Windows \ syswow64. find cmd.exe and run it as an administrator.

4. The problem is solved one by one. You can re-enter the command line httpd-k install and the following error is reported because the default path of the program is inconsistent with the actual installation path of the program. The solution is to find the conf file under the Apache installer directory and find httpd. open the conf file in notepad, search for "Define SRVROOT", find the location to be changed, and change it to your program path in the quotation marks of Define SRVROOT.

5. Now we can see the dawn of light, so that we can solve all possible problems. Next, we will see that the installation is successful. Enter the command line net start Apache2.4 to start the service and test the installation. if the following conditions occur, the installation is correct. You can also enter http: // localhost/for verification. The following page is displayed.

Conclusion: Apache is successfully installed! If something is wrong, I hope you can point it out.

Install a Web Server on Ubuntu Server 14.04 (Linux + Apache + MySQL + PHP)

Install and configure the PHP environment in Linux (Apache2)

Apache server configuration in Linux

Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04

Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)

Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application PHPWind

Configuration of Apache Virtual Hosts in Linux

Apache details: click here
Apache: click here

This article permanently updates the link address:

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.