I edited my posts as the code snippet should have been uncommented.
All we can do is to make troubleshooting suggestions one at a time and hope, as you did, people try and solve it from interpreting these suggestions, well done.
I am pleased that it is now working and you have had some insight into the inner workings of XAMPP.
Thanks for the feedback.
Good luck and best wishes.