I had this exact problem and solved it as follows. In short:
* the cause of the problem is that the Apache service is still in existence from a previous installation, and
* the solution is to delete the Apache service and then install it again.
The specific details were as follows.
1. Open a Command Prompt and type the following to open up the Management Console for Services:
- Code: Select all
services.msc
2. Look through the list until you find the Apache service. Right-click on the Apache service item and select Properties. Take note of the the name of the service (in my case, Apache2.4). (As an aside, also have a look at the path to the executable. In my case, the path was incorrect: it was the path to the version of Apache I had installed yesterday.)
3. Close the Management Console.
4. From the Command Prompt type the following code, using the name you obtained at Step 2 above. In my case it was Apache2.4 but might be different for you. This will delete the service.
- Code: Select all
sc delete Apache2.4
5. Reboot your computer. This step is important. The setup_xampp.bat would not run again until I had reboooted.
6. Run the setup_xampp.bat command again.
7. Start the XAMPP Control Panel again, and all should be well!