Basicachieve

How to uninstall Xampp from Homebrew

To fully uninstall XAMPP from macOS, follow these steps carefully to remove the application, services, and leftover files.

βœ… Step-by-Step: Uninstall XAMPP from macOS

πŸ”Ή 1. Stop All XAMPP Services

Before uninstalling, stop any running XAMPP services.

1. Open XAMPP Control Panel (or open Terminal).

2. Stop Apache, MySQL, and any other services.

3. Then quit XAMPP.

πŸ”Ή 2. Delete XAMPP Application Folder

In Finder:

Go to your Applications folder.

Find the folder named XAMPP or xampp.

Right-click β†’ Move to Trash.You may be prompted to enter your admin password.

πŸ”Ή 3. Remove Configuration and Hidden Files

Open Terminal and run the following commands to clean up leftover files:

sudo rm -rf /Applications/XAMPP

sudo rm -rf /opt/lampp

sudo rm -rf ~/.bitnami

sudo rm -rf ~/.lampp

sudo rm -rf /usr/local/bin/xampp

sudo rm -rf /usr/bin/xampp

These remove the app, aliases, and related folders.

πŸ”Ή 4. Remove XAMPP from Login Items (if applicable)

If XAMPP was set to launch at login:

1. Open System Settings β†’ General β†’ Login Items.

2. Remove XAMPP if it appears under "Open at Login".

    πŸ”Ή 5. Check for Running Processes (Optional)

    To ensure no background services are running, run:
    
    ps aux | grep xampp
    
    If you see anything related to XAMPP, kill it using:
    
    sudo kill -9 <PID>
    
    Replace <PID> with the actual process ID.

    πŸ”Ή 6. Empty the Trash

    Don’t forget to empty the Trash to finalize the uninstall.

    βœ… XAMPP is Now Removed!

    Let me know if you’re uninstalling XAMPP to switch to Homebrew Apache/MySQL setup β€” I can guide you step-by-step.