Apache

<< Click to Display Table of Contents >>

Navigation:  Install > Web Servers >

Apache

Install Apache Server

 

If you don't have an Apache Server, the first step is to install it.

 

1.Go to the Apache website.

2.Choose the version of Apache that matches your Windows system:

If you have a 64-bit system, download the file with win64 in its name, for example: httpd-2.4.xx-win64-VS17.zip

 

AD_4nXdEPvt6QR30TYZeuQ-XnlZmrqB6Ny8WIqZgislqKU-sJZdN5XytdbjWYDPIFQtmc2u1kXcn6qSP4LgleN7spKcPq2keLg1OwtTLyq_ZuZjj_plW6CnblLogaaVw7f518Abzlt1yDA

 

3.Make sure you have Visual C++ Redistributable for Visual Studio 2015–2022 installed. If not, download and install it from the same site.

 

clip0118

 

4.Extract the Apache24 folder from the downloaded ZIP archive into C:\.

 

Now Apache is ready for configuration.

 

Configuration

 

Set the server name

 

1.Open the file httpd.conf located at C:\Apache24\conf\httpd.conf

2.In the httpd.conf file, find the line:

 

#ServerName www.example.com:80

 

AD_4nXc7paqx3ehXokDRuNMijYjuLKmYrRdjW3WOtAv0nKsCwNc4ySTQZMJeCjYFVnK_FcWAR3gCamlhtKnvm477r8MrZ92Z7CcVwR4U8W3UqH0E7TfOHv719xR79M9iHE2-8ezsiDAvgw

 

3.Remove the # and change it to:

 

ServerName localhost:80

 

AD_4nXc0NZtm479qCeatPfO6iMiPVUwRs6evGPzWPTPj66nb4AIw0zAneYc0oMy8Y9BpxRGylr1dR1q2MziovigdsOg6LZWgqflzmIV17hpKE3mveTRIjhNVRt1YIZNRmFTNP8nyv7QZ

 

This removes the warning about the missing server name when Apache starts.

 

Save the changes in httpd.conf.

 

Starting Apache as a console application

 

1.Navigate to the C:\Apache24\bin directory

2.Run the httpd.exe executable located in this folder

 

clip0120

 

3.A console window will open. Do not close it while you are working with the web application.

 

clip0122

 

4.Open your browser and go to: http://127.0.0.1/

 

If everything works correctly, you will see the default Apache page with the text “It works!”.

 

AD_4nXclLnDxXuRtk2NgO1aKeRcBJf6MJmyrktiPaFNt8OzwqkisEPSMC8BH_2Eyr1dQsk0WHbKSiVrZQeuAsx0rvHVffEk9XBVTkmX9tNzW8fASRXZ4tTyKtQVdCXP3wRCn5Q5A8T9OvQ