How to Uninstall Apache Server Completely with Command Line? (Example)

If you are the lucky owner of a website, you need to know what a web server is and its existing types, among which Apache stands out. This server hosts at least 46% of the world’s websites. Precisely for this reason, knowing how to use it is essential, so with that in mind today you will see How to uninstall Apache server completely with command line? And, knowing how to remove or remove programs that cannot be removed is as important as learning how to install it, because if you manage to handle both things perfectly, then you will have no problem using it whenever you want.

How to uninstall Apache server completely with command line?

Now, before you start reading what is below, take into account that the tutorial will be divided into several parts, because to uninstall the Apache server you have to use several methods, depending on which operating system it is running on and how it was installed.

The first one that will be shown to you today so that you can fulfill the objective of uninstalling the Apache server completely with the command line, is the uninstallation method in Linux if you installed Apache from source code. Remember that it is possible to remove Linux applications, whenever you want. Do not be discouraged!

To achieve this, you have to go to “Application” of the operating system, and select “System Tool” orUtilities”, Any of these will open the terminal. In it, place the su command (that will allow you to change the root user).

color servers

Then enter the command “/etc/init.d/httpd stop”, this action will stop the Apache server, then put “rm-rf / usr / local / apache2”, this will delete the program directory. Finally, click on “Exit” and that’s it. With that you will have already managed to completely eliminate Apache from your system.

Remember that you can download it whenever you want again without any problem (an error should not occur for having had it before). In fact, in case you are an Ubuntu user, installing Apache 2 on Ubuntu will be easy, this is the new version that is great.

Linux installed with RPM package

In case you have installed Apache on Linux with RPM package, then you must go back to a terminal window, and in this enter the su command. Followed by that, put “/etc/init.d/httpd stop”.

Having done all this the Apache will be stopped, so It only remains that you put “rpm-e apache-“, with this command the program will be eliminated completely from your computer, so the last step is to hit “Exit” to return to the initial screen.

How to uninstall Apache server from Windows

To achieve this, you must first open a command window, you can do that by going to “All programs” and from there to “Accessories”, once you have your line active, enter the command “cd C: Program Files Apache Group Apache2 bin”, This will take you to the Apache installation directory.

computer drawn

Then put “apache k uninstall”, that will remove the service completely from the computer automatically, so now you just have to go to the control panel inside your PC. In it open “Add / remove programs”, and within this look for the option called “Apache HTTP Server”, when you see it click “Remove” and that’s it. With that there will definitely be no trace of the Apache.

Now that you know all that, there is nothing else you can learn for today, so you can say that the question How to uninstall Apache server completely with command line?, has been fully answered.

Remember that this program is very good, so you should not switch to another (in case those are your plans when uninstalling it), you just have to learn to use it by looking for guides that help you get the most out of it.

How useful did you find this content?

Click on a star to rate!

Average score 0 / 5. Counting of votes: 0

So far, no votes. Be the first to rate this content.

I'm sorry this content was not useful for you!

Let me improve this content!

Tell me, how can I improve this content?

Deja un comentario