I installed the XAMPP for Windows basic version for Windows (the latest version). All services except Apache worked when I started them all. I navigated to my XAMPP folder:
and I clicked on apache.exe, and the service works as long as the window is open, but when it's closed, the server doesn't work. And to make it worse, I found out why it doesn't start:
I went to Apache Monitor, and clicked Services, and I found the path to Apache was the old path, and not the new one (XAMPP). I wanted to change it to the new one, but it won't let me. What should I do now to fix this problem?