Going back to absolute basics here. The answers on this page and a little googling have brought me to the following resolution to my issue. Steps to restart the apache service with Xampp installed:-

  1. Click the start button and type CMD (if on Windows Vista or later and Apache is installed as a service make sure this is an elevated command prompt)
  2. In the command window that appears type cd C:\xampp\apache\bin (the default installation path for Xampp)
  3. Then type httpd -k restart

I hope that this is of use to others just starting out with running a local Apache server.

Answer from Username_null on Stack Overflow
🌐
Apache Software Foundation
httpd.apache.org › docs › 2.4 › platform › windows.html
Using Apache HTTP Server on Microsoft Windows - Apache HTTP Server Version 2.4
Normal starting, restarting and shutting down of an httpd service is usually done via the Apache Service Monitor, by using commands like NET START Apache2.4 and NET STOP Apache2.4 or via normal Windows service management.
🌐
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.
🌐
BINASSS
binasss.sa.cr › manual › windows.html
Using Apache with Microsoft Windows
To run Apache from the command line as a console application, use the following command: apache Apache will execute, and will remain running until it is stopped by pressing control-C. On Windows NT, multiple instances of Apache can be run as services.
🌐
Markoivancic
markoivancic.from.hr › apache-2-4-and-command-line-in-windows-10
Apache 2.4 and Command Line in Windows 10B | Marko Ivančić blog & about
May 1, 2017 - To run the commands we need to have CMD with administrative privileges. Next, change directory to c:\Apache24\bin using the command
🌐
Apache Software Foundation
httpd.apache.org › docs › 2.0 › platform › windows.xml
https://httpd.apache.org/docs/2.0/platform/windows.xml
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.
🌐
Strawberry Perl
mid.as › midas › kb › support › article 00143
How to install & configure Apache on Windows | MIDAS Knowledge Base
3 weeks ago - ScriptInterpreterSource Registry...this ... from the Windows Registry · The Apache executable is named "httpd.exe" and is located in the "bin" subfolder of the location where you extracted Apache. (In older Apache 2.0 / 2.2 releases this executable was named "apache.exe", but current 2.4 builds use "httpd.exe".) Open a Command or PowerShell ...
🌐
YouTube
youtube.com › internet services and social networks tutorials from howtech
How to Start Apache from Command Line - YouTube
Learn how to disable apache service. Furthermore, learn how to re-enable it with the help of command line by changing the httpd configuration file. Don't for...
Published   May 8, 2013
Views   100K
Find elsewhere
🌐
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.
🌐
SitePoint
sitepoint.com › blog › programming › how to install apache web server on windows
How to Install Apache Web Server on Windows — SitePoint
November 6, 2024 - Open a command box (Start > Run > cmd) and enter: # navigate to Apache bin directory cd /Apache24/bin # Test httpd.conf validity httpd -t · It should say “Syntax OK”. If not, correct any httpd.conf configuration errors and retest until none appear. The easiest way to start Apache is to add it as a Windows ...
🌐
Apache Lounge
apachelounge.com › viewtopic.php
Apache :: Windows Command Reference
September 13, 2011 - We cannot provide a description for this page right now
🌐
Apache Software Foundation
httpd.apache.org › docs › 2.4 › invoking.html
Starting Apache - Apache HTTP Server Version 2.4
So you can often simply link apachectl into the appropriate init directory. But be sure to check the exact requirements of your system. Additional information about the command-line options of httpd and apachectl as well as other support programs included with the server is available on the ...
🌐
Scratch99 Design
scratch99.com › web-development › php › restart-apache-via-command-prompt-xampp-windows-no-uac-prompt
Restart Apache Via Command Prompt In XAMPP Windows With No UAC Prompt | Scratch99 Design
June 23, 2017 - Restart Apache from the command prompt (Git Bash, CMD.EXE, batch file) on Windows 10, without receiving the "Do you want to allow this app to make changes to your device" prompt:
🌐
BitLaunch
bitlaunch.io › blog › how-to-check-if-apache-is-running
How to check if Apache is running (no matter your OS)
May 8, 2026 - On Windows, you can use Task Manager to see if the Apache process is active. After pressing Ctrl + Shift + Esc, start typing either "httpd.exe" or "apache.exe" and see if they appear on the list. If they do, then Apache is running.
🌐
Liquid Web
liquidweb.com › home › how to install apache on a windows server
How to Install Apache for Windows and Configure It | Liquid Web
February 18, 2025 - Once installed, you can see Apache’s base path by opening the configuration file and checking the “ServerRoot” directive. Open an “Administrator” command prompt. (Click the Windows “Start” icon, then type “cmd”. Right-click the “Command Prompt” item which appears, and ...
🌐
DevDojo
devdojo.com › post › serverenthusiast › 14-apache-commands-to-help-you-manage-your-server-like-a-pro
14 Apache commands to help you manage your server like a pro - DevDojo
August 19, 2020 - Apache has been the most popular web server for a very long time. You can run Apache on almost all major operating systems out there like Linux, Mac, Windows, and more. In this tutorial, you will learn 10 commands that will help you manage your Apache server like a pro!
🌐
DEV Community
dev.to › techelopment › install-apache-on-windows-in-a-few-simple-steps-2kjb
Install Apache on Windows in a Few Simple Steps - DEV Community
November 2, 2024 - To stop or restart Apache you can use the following commands: httpd -k restart httpd -k stop · Official site: www.techelopment.it Medium: @techelopment Dev.to: Techelopment facebook: Techelopment instagram: @techelopment X: techelopment telegram: @techelopment_channel youtube: @techelopment whatsapp: Techelopment · Welcome to The Apache Software Foundation! Welcome! - The Apache HTTP Server Project · Apache 2 Server on Windows for (business) webmasters, developers, home users and programmers ·
🌐
GitHub
gist.github.com › jagwarthegreat › aae54e22b3b4eae4d217276c78099abe
APACHE2 COMMANDS · GitHub
## Start command ## systemctl start apache2.service ## Stop command ## systemctl stop apache2.service ## Restart command ## systemctl restart apache2.service