Close the XAMPP control panel after making sure all the XAMPP components are stopped and none of them are set to start as a service.
Uninstall the previous apache mysql and php by using the Windows Control Panel > Add Remove Programs
Then, after you delete the previous installations directories if any remain, restart your computer and check that none of those services are running by looking in the
Task Manager and before you try and start XAMPP.
To get the
Task Manager right click on the
Taskbar and select
Task Manager from the context menu.
Click on the
Processes tab and look for any instances of
Apache and
mysqld
If you find any, then you have some services that have not been removed from the registry and they need to be removed or they will only interfere with XAMPP again.
XAMPP needs exclusive use to it's components default ports for it to run without problems.
To remove those stuck service:
Open a command prompt:
Click on
start on the
Taskbar
Click on
Run...
Type
cmd
Click
OK
Remove stuck Apache service:
Type at the command prompt
sc delete apache2
Press
Enter on your keyboard
Remove stuck MySQL service:
Type at the command prompt
sc delete mysql
Press
Enter
They should do the trick for you.
(Just to add to the above list:
Remove if you get a stuck FileZilla FTP service:
type at a command prompt
sc delete "FileZilla Server"
Press
Enter)
Now open your XAMPP Control Panel or DTX and start the components you want and set them to run as a service if you prefer.
BTW -
sc stands for
sc.exe service control and will delete any stray services that won't shut down by any normal means.
Microsoft explains the Service Controller Commands
here.
=================================================
Take a look at the new
DeskTopXampp launch control posted by
ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
The
DeskTopXampp launch control for
XAMPP and
XAMPPlite (DTX.exe)
is available here:
http://zedfiles.com/DTX/
I highly recommend DTX.
=================================================