This article is part of series of articles on Apache. Here is the list:
- Introduction to Apache Web Server.
- Difference between Apache http and Apache Tomcat.
- How to Install and Run Apache Web Server on Ubuntu Linux.
- How to Install and Run Apache Web Server on Windows 10.(this one)
Original Article:
So, crack those knuckles and follow along.
Step 1.
Apache is a software, so we have to download it, visit the site
https://httpd.apache.org/download.cgi
Click on the latest stable release
Step 2.
You want the binaries, click on it.
Step 3.
Now go to โwin32โ and click on it.
Step 4.
Scroll down to see โApacheHausโ , open it.
Step 5.
You should have something like this.
Scroll down to see the version of Apache in two variations 32 bit and 64 bit (x64) (blue boxes).
Click on download on whichever one you want (red circles).
Step 6.
Open up the downloaded file, then open up the folder with Apache24 on it.
Copy all the files and folder in it.
Step 7.
Make a new folder in any drive and paste the files in a folder named โApache24โ.
Just make sure the address is not much complicated.
Step 8.
Open System Properties, by right clicking on โThis PCโ, then properties.
Step 9.
Open Advanced System Settings.
Step 10.
Click on Environment Variablesโฆ
Double Click on โPathโ
Step 11.
Now click on โBrowseโ
Find the folder you created and select
bin from it and click ok.
After youโve done that it should look like this.
Now click ok, and the windows will keep closing.
This has to be done because the Web Serverโs daemon runs as a Service on windows.
Step 12.
Press win+R, or open Run.
Write
services.msc
Find the โApacheโ service, right click on it and press start.
Step 13.
Open Command Prompt as Admin, and write
httpd โk install
When the window pops โAllow Accessโ
Check:
Open up any browser and write โlocalhostโ, the window below should appear.
You are done!!
You can test all the above on our Windows VPS with a 20% lifetime discount. Use the coupon codeย WIN20OFF at checkout.
3 Comments
Paul · April 24, 2017 at 10:28 PM
step 12 does not work! please check
Mubashirullah Durrani · December 7, 2018 at 11:31 AM
Step 12 and 13 are out of order. Run the cmd part before the service one. Otherwise, Apache 2.4 will not be visible.
How to Install and Run Apache Web Server on Ubuntu Linux OS – Virtono Community · July 23, 2016 at 7:51 PM
[…] How to Install and Run Apache Web Server on Windows 10. […]