'Old xampp folder can't be deleted, xampp no working

I uninstalled xampp and installed a newer version with the latest 5.4 php on Windows. When i tried to install the new version of php, the old folder in C://xampp would delete. I deleted everything from that folder except memcached which I can't delete beacuse someone else is using it. So i installed the new xampp version in xampp54 folder.

When i installed the new xampp version, i get this errors for mysql

Expected Path: "c:\xampp54\apache\bin\httpd.exe" -k runservice
MySQL Service detected with wrong path
Change XAMPP MySQL and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini     mysql
Expected Path: c:\xampp54\mysql\bin\mysqld.exe --defaults-file=c:\xampp54\mysql\bin\my.ini mysql

When i try starting apache, i doesn't do anything. Anyone knows how to fix this?



Solution 1:[1]

Go to Task Manager Processes tab

  • search MySql and click
  • then click End task

After that, you can delete Xampp folder.

Solution 2:[2]

I found memcached in the services and disabled it and it all works. Lesson of the day: Install xampp in 'xampp' folder, not 'xampp_me' or 'myxampp' beacuse it seems that both apache and mysql rely on them being installed in 'xampp' folder.

Solution 3:[3]

Try this:

  1. Stop the services: mysql and apache

    Start > Run > Services.msc

  2. Kill the process 'Xampp Controller' from the Task Manager

    In my case, the services were stopped and removed automatically when I uninstalled the Xampp. So, killing 'Xampp Controller' process worked for me.

Solution 4:[4]

To delete the C://xampp old folder we need to stop the mysql service. To stop it, go to start -> run -> type services.msc. Search for mysql & apache and right click & stop. Then you would be able to delete the C://xampp folder.

Solution 5:[5]

This is what worked for me: Use the command line (if on Windows) Enter this into the terminal:

rmdir /Q /S none-empty-dir

(e.g. C:\xampp)

See: https://www.windows-commandline.com/delete-directory-from-command-line/

Solution 6:[6]

This is worked

Go to resource monitor -> associated handle and search the folder you want to delete and end process

Solution 7:[7]

I have same issues with you. But this worked perfectly with me.

Go to task manager, look for details, and search for the items that denies for deleting the folder. (mine is the php) then end task. You can now delete the xampp folder.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dinesh Singh Rawat
Solution 2 Mario Legenda
Solution 3 baduker
Solution 4 Sanjeev
Solution 5 Avatar
Solution 6 Gopalkrish
Solution 7 MARDY UNTALAN