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
This document covers stopping and restarting Apache HTTP Server on Unix-like systems. Windows NT, 2000 and XP users should see Running httpd as a Service and Windows 9x and ME users should see Running httpd as a Console Application for information on how to control httpd on those platforms.
🌐
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
If you resolve those errors and Apache still doesn't restart, check the Apache error logs. Using two windows might be helpful.
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 - Prerequisites: - A Windows server where Apache is installed. - Access to the Windows PowerShell command line. Steps: Step 1: Check Apache Service Status The first step is to check if Apache is currently running on your Windows server. 1. Open Windows...
🌐
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.
🌐
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 ...
🌐
NetIQ
netiq.com › documentation › identity-governance-36 › install-guide › data › t4a4tt5knheg.html
Stopping, Starting, and Restarting the Apache Tomcat Service - Identity Governance 3.6 Installation and Configuration Guide
NOTE:If the Task Manager Services does not restart, it could be due to the time it takes for Stop to finish. Wait a minute and then try Start again. ... Open a command prompt using cmd.exe. ... (Conditional) If Windows responds that it could not stop the service, use another method to check the status.
🌐
IONOS
ionos.com › digital guide › server › configuration › restart apache
How and when to restart Apache
October 27, 2023 - Apache is a widely used web server. In this article, we’ll explain how you can successfully restart Apache.