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 › stopping.html
Stopping and Restarting Apache HTTP Server - Apache HTTP Server Version 2.4
kill -TERM `cat /usr/local/apache2/logs/httpd.pid` 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.
🌐
Super User
superuser.com › questions › 756107 › error-restarting-apache-on-windows-machine-via-command-line
Error restarting Apache on Windows machine via command line - Super User
you will get an error like this ...ache2.4.6").Replace it with your appropriate path. 4.Restart Apache with this command "httpd -k restart"....
🌐
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
You then need to find out the service name for Apache. It’s probably Apache2.4 but click on Services, find it in the list and double check it. 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 ...
🌐
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.
🌐
Rackspace
docs.rackspace.com › docs › restart-apache
Restart Apache - Rackspace Technology
You might need to restart Apache® when you want changes that you make take effect, or when you need to bring Apache's resource use back to a normal range. However, sometimes Apache fails to restart. This article shows you how to check your configuration settings and restart Apache when it fails.
Find elsewhere
🌐
disown
webservertalk.com › start-stop-and-restart-apache
How to Start/Stop and Restart Apache Server Commands from Terminal!
October 10, 2019 - Here's a Quick Tutorial on How to Start/Stop and Restart Apache Server Commands using Terminal Commands for Beginners!
🌐
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.
🌐
Core Technologies
coretechnologies.com › home › products › service protector › services › apache http server
How to Keep the Apache HTTP Windows Service Running even if it Crashes or Fails | Service Protector
Automatically restart the Apache HTTP Windows Service when it crashes or stops serving web pages for any reason. Keep your web site available 24/7!
🌐
Hashnode
daiswap.hashnode.dev › troubleshooting-guide-what-to-do-if-apache-is-not-running
Troubleshooting Guide: What to Do If Apache Is Not Running
December 6, 2023 - If this is a non-Microsoft service, ... that there is an issue preventing Apache from starting. - Open the Windows Event Viewer- Win + X and Event Viewer from the menu....
🌐
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 - If you run Apache 2.4 server on your Windows development machine, you might be interested in several command line commands that you can use with Apache server (httpd.exe). To run the commands we need to have CMD with administrative privileges. Next, change directory to c:\Apache24\bin using the command ... As you can see, we can start, stop, restart our server, list available modules, etc.
🌐
MonoVM
monovm.com › blog › tutorials › how to restart apache?
How to restart Apache?
March 13, 2023 - Learn the step-by-step process of restarting the Apache web server on CentOS and Ubuntu operating systems. Get expert tips to troubleshoot common issues and keep your server running smoothly.
🌐
Oracle
docs.oracle.com › cd › B14099_19 › web.1012 › q20206 › stopping.html
Stopping and Restarting - Apache HTTP Server
In order to stop or restart Apache, you must send a signal to the running httpd processes. There are two ways to send the signals. First, you can use the unix kill command to directly send signals to the processes. You will notice many httpd executables running on your system, but you should not send signals to any of them except the parent, whose pid is in the PidFile.
🌐
SitePoint
sitepoint.com › server config
How to reload apache config on windows - Server Config - SitePoint Forums | Web Development & Design Community
July 14, 2009 - Hello, i have some problems reloading apache configuration on an windows machine. The restart command doesn’t work, it did not reload the config. Actually i use a bat file within a cron that kill’s the apache’s processes and the start the process. The operation take about 30 - 40 sec ...