When I was beginner in web development, I have to test the site on my device. For testing site on local or developer’s computer we can’t just rely on the code to work properly, we need to check it for errors/bugs. In order to test a website, we need a local server. Well, there are many softwares which can help us in testing, but we are going to discuss Apache Server as it is most commonly used, it’s easy to setup and is compatible with all Operating Systems.

Installing Apache Server on Windows

Windows is not Unix-based, so there is no command code to install Apache. Fortunately, there are many install wizards that have things like Apache, MySQL, and PHP together to make our lives easier. One of them is XAMPP.

Note: XAMPP is also available for Linux & Mac OS X

Step 1: Download XAMMP

Download the Windows version of XAMPP from their Website
Download from here.

Step 2: Installation

After downloading run the setup wizard. A window like this will open.

Click Next

Now Select Apache to install it, if you want to use database features as well then select MYSQL too. And hit Next, continue to the installation and click finish when complete. XAMPP control panel will start automatically by default.

Now click on the start button in front of Apache and MYSQL if you’re using it.

Step 3: Configuration

Now open your favorite browser and then type in the URL box “127.0.0.1” or “localhost”, you should see the XAMPP configuration page if not please reinstall the software and try again.

Step 4: Testing

Create a new web page, the procedure is the same. Open notepad and create a sample HTML file. Name it “hello.html.”

Save the file to the XAMPP document root that is

 

To view your file open your browser again and type in “localhost/hello.html”

And You’re Done, You have successfully installed and used Apache Server in Windows.

Conclusion

Apache Server is best at what it does but it sure lacks a lot of features to as many Windows Authentications. But it integrates on all platforms that’s why it’s considered the best and if you’re into testing and developing of basic and complex websites it sure is the best thing for you.

Watch this Video on How to Install Local Server on Windows.
Video Tutorial:

 

Feedback & Suggestions

Please leave your questions and suggestion in the comment I’d like to get in touch with you.


VIAAbdullah Tariq
SHARE

Leave a Reply