Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall Apache with command line

Tags:

So I'm trying to find a command to uninstall apache from windows that I have installed earlier with an NSIS script.

Basically apache is part of a package of aplications we use for our program, and when uninstalling our program we uninstall them all. Already working for postgres, java and ruby, but I'm not finding any command for apache.

I tried the wmic command, but it required user to confirm the action. There isn't any httpd uninstall command?

httpd -k uninstall  

simply removes the service.

Thanks

like image 571
tcardoso Avatar asked Aug 26 '13 16:08

tcardoso


People also ask

How do I uninstall Apache 2.4 from Windows 10?

Click the Windows "Start" button and select "Computer." Double-click the "C:" drive icon and then navigate to the folder containing your Apache installation ("C:\Program Files" by default). Right-click the "Apache Group" folder and select "Delete."

How do I uninstall Web server?

To Uninstall in Graphical ModeNavigate to the install-dir /bin directory. (UNIX) Type ./uninstall . (Windows) Double-click uninstall.exe or type uninstall from the command line. You can also use the Control Panel > Add or Remove Programs option, or use Start > Programs > Oracle > Web Server 7.0 > Uninstall.


2 Answers

sc delete Apache2.4 

Remove service in windows

like image 128
Flavio Salas Avatar answered Oct 10 '22 19:10

Flavio Salas


On Windows 8.1 I had to run cmd.exe as administrator (even though I was logged in as admin). Otherwise I got an error when trying to execute: httpd.exe -k uninstall

Error: C:\Program Files\Apache\bin>(OS 5)Access is denied. : AH00373: Apache2.4: OpenS ervice failed

like image 23
ironarm Avatar answered Oct 10 '22 19:10

ironarm