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
At the command prompt, type sqlcmd. To stop the GlassFish Server, open a terminal window or command prompt and execute: asadmin stop-domain domain1 Or, on Windows, from the Start menu, select All Programs, then select Java EE 6 SDK, then select Stop Application Server.
🌐
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 ...
🌐
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):
Find elsewhere
🌐
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.
🌐
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
🌐
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
There are various ways of controlling an Apache web server on Windows. This page looks at several options available of stopping, starting, and pausing the Apache service or console server, and how then can be used in PowerShell scripts and batch files. Most of the commands given need to be run with administrator privileges.
🌐
Herongyang
herongyang.com › Perl › Apache-Start-Stop-Apache-Server.html
Starting and Stopping Apache Server
If you see "httpd.exe" is listed as a running process, you know that your Apache server is running. 4. Of course, Windows Task Manager can also be used to stop the Apache server. Select "httpd.exe" on Processes tab on Windows Task Manager, and click the "End Process" button.
🌐
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.
🌐
Blogger
advancetechtutorial.blogspot.com › home › windows › how to uninstall apache with command line
How to uninstall Apache with command line
January 24, 2015 - Stop Apache service from Service windows. Run windows commend window as administrator. ... The Apache service now removed from windows service. For any question on this topics please mention comment on comment box below.