I'd be suspicious about a service that doesn't properly respond to shutdown/restart requests - you may want to look at re-installing Apache. That said, I'm not an Apache guy, so i'm not sure how common this under Windows7.

All that aside, you should be able to manually kill the httpd.exe process either via Task Manager, or via a command line as such:

TASKKILL /F /IM httpd.exe /T

The command switches specify that you want to kill any process with the image name 'httpd.exe' (/IM httpd.exe), you want to force the kill (/F) and you want to kill any child processes that it spawned (/T).

After doing this, you should be able to manually start the process again via the Services console, or via the 'net start' command.

Answer from Skawt on serverfault.com
🌐
Super User
superuser.com › questions › 1479101 › how-to-stop-apache-server-from-command-line
How to stop Apache Server from command line - Super User
September 5, 2019 - I'm trying to stop Apache server from command line. I'm using this command (admin) from the installation folder : httpd -k stop. But I'm getting this error : (OS 5)Access is denied. : AH10014: F...
🌐
Generativeleadership
generativeleadership.asia › lhkmxivp › how-to-stop-apache-server-in-windows-command-prompt.html
how to stop apache server in windows command prompt
Next you need to create a Windows batch file called restart-apache.bat, with the following contents (replacing Apache2.4 with the name of the service we just started): net stop Apache2.4. net start Apache2.4. Open a command/PowerShell prompt in the "bin" folder at the location where you extracted Apache (Hold "Shift" whilst right-clicking and select "Open command window here" or "Open PowerShell window here"): If you opened a command prompt, start Apache by entering the following command: httpd.exe. If you are using the Ubuntu 15.04 or above then you can also use the below commands to start/restart and stop the Apache web server.
🌐
Ex Libris
knowledge.exlibrisgroup.com › cross-product › knowledge articles
Stopping, starting, and restarting apache from the command line - Ex Libris Knowledge Center
December 6, 2021 - In order to stop apache from the command line, you must first find out under which user it is running.
🌐
Apache Software Foundation
httpd.apache.org › docs › 2.4 › stopping.html
Stopping and Restarting Apache HTTP Server - Apache HTTP Server Version 2.4
The second method of signaling the httpd processes is to use the -k command line options: stop, restart, graceful and graceful-stop, as described below. These are arguments to the httpd binary, but we recommend that you send them using the apachectl control script, which will pass them through to httpd. After you have signaled httpd, you can read about its progress by issuing: ... Modify those examples to match your ServerRoot and PidFile settings.
🌐
Oracle
docs.oracle.com › cd › B14099_19 › web.1012 › q20206 › platform › windows.html
Using Apache with Microsoft Windows - Apache HTTP Server
Normal starting, restarting and shutting down of an Apache service is usually done via the Apache Service Monitor, by using commands like NET START Apache2 and NET STOP Apache2 or via normal Windows service management.
🌐
Webtrends
kb.webtrends.com › webtrends-legacy-products › how-to-stop-start-remove-or-install-an-apache-web-server-service-from-the-command-line
How to stop, start, remove, or install an Apache web server service from the command line – KnowledgeBase
Stop an Apache service via command line switches – apache -k stop Or apache -k shutdown · Restart a running service and force it to reread its configuration file – apache -k restart · Install Apache as a Windows service – Enter the following from the command prompt at the Apache bin ...
🌐
Abdul Wahab Junaid
awjunaid.com › home › how to stop apache web server
How to stop Apache Web Server | Abdul Wahab Junaid
September 2, 2023 - Right-click on “Apache HTTP Server” or “Apache2” and select “Stop.” ... Open a terminal window. You can find Terminal in the “Utilities” folder within the “Applications” folder. ... Enter your administrator password when prompted.
Find elsewhere
🌐
YouTube
youtube.com › watch
How to start and stop Apache Web Server in Windows Server 2012 R2 - YouTube
Learn how to start and stop any service in any version of Windows
Published   March 16, 2017
🌐
Dangtrinh
dangtrinh.com › 2014 › 05 › startstop-apache-service-in-windowss.html
Start/stop Apache service in Windows's command line
May 13, 2014 - To start/stop Apache service in Windows use these following commands: Open command prompt (Start > cmd):
🌐
InformIT
informit.com › articles › article.aspx
Articles | InformIT
if(isEnableGA){ if(currentEnvironment == 'QA'){ · }else{ · Articles · 890 Items · Sort by Date | Title · Page 1 2 3 4 5 Next > · Topics · Business & Management · Certification · Engineering
🌐
Brisray
brisray.com › web › apachectrl.htm
Controlling Apache
I prefer to just type services in the Windows search bar, but it can also be opened by using a command prompt or Windows Run command (Win key + R) using services.msc. Once the console is open the various services can be started, stopped or restarted. The Apache service, in my case Apache2.4, ...
🌐
Herongyang
herongyang.com › Perl › Apache-Start-Stop-Apache-Server.html
Starting and Stopping Apache Server
2. The normal way to stop the Apache server is also to use Apache server control scripts. Click Start > All Programs > Apache HTTP Server 2.2 C:herong> Control Apache Server > Start. The Apache server will be started.
🌐
HashBangCode
hashbangcode.com › article › starting-and-stopping-apache-using-windows-bat-files
Starting And Stopping Apache Using Windows .bat Files | #! code
This turned out to be a lot easier than trying to start and stop MySQL as the command line commands for httpd executable worked very well in .bat files. So, to start Apache use the following line. "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd" -k start · And to stop the server use the following line.
🌐
Stack Overflow
stackoverflow.com › questions › 61164761 › cant-shutown-apache-windows-10
Can't shutown Apache Windows 10 - Stack Overflow
April 11, 2020 - I am using xampp by default on my Windows 10 machine as a local development environment but wanted to test some things out so downloaded AppServ. After testing I have deleted the AppServ by uninstall.exe in the root folder of the AppServ. While uninstalling it I realized that Apache Server of AppServ was still running.
🌐
NeuronVM
blog.neuronvm.com › neuronvm.com blog › windows › tutorial setup and configure apache on admin rdp
Tutorial Setup and Configure Apache on Admin RDP - NeuronVM Blog
February 13, 2024 - To start and stop the Apache service ... an administrator. You can do this by pressing the Windows key, typing "cmd", right-clicking on "Command Prompt," and selecting "Run as administrator." 2....