How To Uninstall Apache. 4 Practical Ways Guide

If you don’t know how to uninstall Apache, then you have come to the right palace. Because in this post, we will be sharing multiple processes of uninstalling Apache Service.

Apache HTTP Server is one of the world’s most popular web servers available out there.

The best part about Apache is that it is a free and open-source web server. Since the beginning, it has become the most popular and most used HTTP client on the web.

Robert McCool was the main developer of the Apache HTTP Server. It was released back in 1995.

It is compatible with Microsoft Windows, Unix-like, and OpenVMS. Apache was written in C and XML.

Also, Apache HTTP Server supports TLS and SSL protocols. To add to that, Apache provides interfaces for programming languages like Python, PHP, Tell, Perl, etc.

Still, you might not want to use Apache and want to uninstall it. In that case, we have put together a list of multiple methods you can follow to accomplish that. And, we will be sharing the methods one by one down below.

So, let’s proceed…

Tutorial on How to Uninstall Apache?

Here we will be describing all the various methods you can use to uninstall Apache.

Method #1 Uninstall A Program in Windows

The first method is the most common way you can uninstall any programs on Windows PC. So, first, you should try this method.

For Windows 7

How To Uninstall Apache
uninstall Apache from computer

Steps to Follow

  • Click on the ‘Start’ button and click on the ‘Control Panel’ option from the Start menu
  • In doing so, you will be taken to the ‘Control Panel’ of Windows 7. Simply, click on the ‘Uninstall a program’ option from under the ‘Programs’ section
  • Next, you will find a list of all the installed programs on your computer
  • So, right-click on the ‘Apache’ program and click on the ‘Uninstall’ option from the overlay menu
  • Next, a new popup window will appear asking if you are sure to uninstall the program. Simply, click on the ‘Yes’ button
  • Now, it is time to wait until Windows uninstalls the program on its own
  • After the program is uninstalled, another popup window with the confirmation will appear on the screen. Simply, click on the ‘OK’ button to close it

For Windows 10

Steps to Follow

  • First, click on the ‘Start’ icon on Windows 10
  • Then click on the ‘Settings/Gear’ icon from the ‘Start’ menu
How To Uninstall Apache
  • Now, click on the ‘Apps’ option from the settings menu
  • In doing so, the ‘Apps & features’ window will open with the list of all the apps and programs you have installed on your Windows 10 PC
  • Now, find the ‘Apache’ programs from the list and click on it
  • Then click on the ‘Uninstall’ option from under the name of the program
  • Instantly, a popup notification will appear. Just, click on the ‘Uninstall’ button and the uninstallation process will start automatically
  • You might have to click on the ‘Yes’ option when the ‘User Account Control’ notification appears on the screen to proceed with the uninstallation process
  • Now, wait for the uninstallation process to finish

Method #2 From the Installation Folder

If you know where you have installed the Apache server initially, then you can try this method. Otherwise, you can skip this one. Typically, every program on Windows comes with an uninstaller application.

uninstall Apache from the installation folder

And, it will be found in the installation folder of the program. If you find that uninstaller for Apache, you can use this method. Here’s how….

Read More:  How to Clean Touchpad on Laptop and Keep it Clean

Steps to Follow

  • Navigate to the folder where you have installed Apache initially
  • Then find the ‘Uninstall.exe’ or any similarly named files
  • Next, double-click on that file and follow the on-screen prompts to uninstall Apache from your PC

Method #3 Using Uninstallation Command in CMD

If you were not successful following the methods above, you can try this one. In this method, we will be showing how to uninstall the Apache Windows Service using the CMD. Let’s see…

How To Uninstall Apache

Steps to Follow

  • First, you have to run CMD or Command Prompt as administrator
  • To do that, you can search by typing ‘CMD’ on the search box of Windows
  • Then right-click on the ‘Command Prompt’ app from the search result and click on the ‘Run as Administrator’ option from the overlay menu
  • In doing so, a popup window will appear on the screen asking for the administrative permissions. So, click on the ‘Yes’ button to close this popup window
  • Instantly, the CMD will open in the background

Now that you have opened CMD, you have to cd into the ‘bin’ directory of the Apache program on your computer. By default, this would be the command you should type in CMD — “C:\Program Files\Apache Group\Apache2\bin”. However, if you have installed Apache in any other folder, then you should replace the command with the appropriate one. Here’s what you should do next…

  • So, type cd C:\Program Files\Apache Group\Apache2\bin in the CMD and press the ‘Enter’ key on your keyboard
  • Now, if you want to stop the Apache service, then you can type C:\Program Files\Apache Group\Apache2\bin> net stop apache2.4 (remember to change the apache version number with the appropriate version you are using) and press the Enter key on the keyboard
  • That means you have to add this command – ‘net stop apache2.4’ (without the quotes, and change the version number appropriately) after the Apache installation folder is selected
  • After that, you will see messages on cmd saying the apache service has stopped successfully
  • Now, if you want to uninstall Apache, you should run this command ‘httpd.exe -k uninstall’ (without the quotes) and press the ‘Enter’ key on your keyboard
  • In doing so, you will see a message saying apache service has been removed successfully
  • However, if you have installed apache by any other name than the default one, you might have to change the uninstall command a bit. For instance, if you have installed Apache as ‘Apache 2.4’ In that case, use this command-  ‘httpd.exe -k uninstall -n Apache 2.4’ (without the quotes) and press the ‘Enter’ key on your keyboard
  • Or if you have installed apache as ‘Apache HTTP Server’, then you need to use this command – ‘httpd.exe -k uninstall -n Apache HTTP Server’ (without the quotes). So change the command according to the name of the apache service you are using
  • After that, you can delete every files and folder from the installation directory of apache

Method #4 Using the Command Prompt

We will have to use the command prompt or CMD once again in this case as well. However, this time we will use a different command. Let’s see how to do that…

Steps to Follow

  • First of all, launch command prompt or cmd as administrator. You can search for ‘cmd’ on the search box in the Start menu. Then you can right-click on the ‘Command Prompt’ app from the search result and click on the ‘Run as administrator’ option
  • Then allow the permission to run CMD as administrator by clicking on the ‘Yes’ option from the popup window next
  • Now, type in the default installation directory path in CMD and press the ‘Enter’ key on your keyboard. For example, you can type ‘C:\Program Files\Apache Group\Apache’ (without the quotes) if that is the installation folder (By default, it should be the installation folder). Or else, you have to find the correct installation folder and type it on CMD
  • Now, after you have executed the command above, you need to type on ‘apache -u’ (without the quotes) and press the ‘Enter’ key on the keyboard
  • It should uninstall the Apache service on your Windows PC
  • Now, go to the installation directory of Apache (could be this folder C:\Apache) on your PC and remove or delete everything on there

Concluding Thoughts

Want it or not, there comes a time, you might need to uninstall the Apache webserver from your Windows PC.

Read More:  How to Set Voicemail on VTech Phone?

Matter of fact, even if you want to reinstall Apache, you need to uninstall the older program in the first place.

As a result, we have provided multiple methods of uninstalling Apache HTTP Server as a service from Windows in this post.

We hope this will help you solve any issues regarding the Apache webserver uninstallation procedure.

As usual, if you are interested in Microsoft Windows, you can read our informative post on 25 tips and tricks you can do on Microsoft Windows right now. And, don’t forget to share this post to help out others with similar issues.

You May Also Like

mm

About the Author: Jakaria Tiaz

Jakaria brings years of extensive experience in tech and business writing to the team. After working as the chief editor for several very large online magazines Jakaria agreed to take part in Tech 25 and help turn it into the leading Tech news and facts site online.