You are currently viewing Installing XAMPP on Mac? Here’s Every Problem You’re Likely to Face (and How to Fix Them)

Installing XAMPP on Mac? Here’s Every Problem You’re Likely to Face (and How to Fix Them)

Letโ€™s be realโ€”installing XAMPP on macOS sounds simple enough. Go to the site, click the download button, and boomโ€ฆ you’re up and running, right?

Wrong.
If youโ€™ve ever tried to install XAMPP on a Mac, you know it’s like going on a peaceful walk and suddenly falling into a pothole of Gatekeeper warnings, permissions issues, port conflicts, and sometimes just plain confusion.

Don’t worry. You’re not alone. This post is here to save your day, listing every annoying hurdle (with fixes!) so you can get back to doing what you actually want: building cool stuff.


? Problem 1: โ€œApple cannot verify that this app is free from malwareโ€

This is probably the first roadblock you’ll hit.

What it means: Appleโ€™s Gatekeeper is blocking the installer because it’s not from a โ€œverified developerโ€ (read: not notarized by Apple).

โœ… Fix:

  • Right-click the installer > Click Open
  • When the warning shows up again, youโ€™ll now get an โ€œOpen Anywayโ€ option
  • OR go to System Settings > Privacy & Security > Allow Anyway

As long as you downloaded XAMPP from the official Apache Friends website, you’re good.


? Problem 2: โ€œPermission Deniedโ€ or Installer Doesnโ€™t Open at All

Sometimes, even clicking “Open Anyway” leads toโ€ฆ nothing. No progress bar. No window. Just silence. ?

โœ… Fix:

  • Make sure the file has permission:
chmod +x ~/Downloads/xampp-osx-8.1.17-0-installer.app/Contents/MacOS/*
  • Or try running the installer from the terminal:
sudo ~/Downloads/xampp-osx-8.1.17-0-installer.app/Contents/MacOS/installbuilder.sh

Yes, Macs are picky. You’re not doing anything wrong.


? Problem 3: Apache Wonโ€™t Start (Port 80 Already in Use)

You finally get XAMPP installed, but when you try to start Apache, it fails. The logs say:
โ€œPort 80 is already in use.โ€

??โ€โ™‚๏ธ Whatโ€™s using Port 80?

Most likely: macOSโ€™s built-in web server or Skype/Zoom/Dropbox.

โœ… Fix:

Run this in terminal:

sudo lsof -i :80

Then kill the process:

sudo kill -9 <PID>

Or go to System Preferences > Sharing, and disable โ€œWeb Sharingโ€ if itโ€™s on.


? Problem 4: MySQL or ProFTPD Not Starting

XAMPP looks like it installed fine, but MySQL or FTP refuses to run.

โœ… Fix:

  • Make sure no other MySQL server (like MAMP or Homebrew MySQL) is already running.
  • Check logs under /Applications/XAMPP/xamppfiles/logs/ for more info.
  • Restart your Mac (it works more often than you’d think).

? Problem 5: XAMPP Control Panel Doesnโ€™t Look Right or Freezes

Sometimes the GUI is glitchy, unresponsive, or shows nothing when you launch it.

โœ… Fix:

  • Try launching it from Terminal:
sudo /Applications/XAMPP/xamppfiles/xampp control-panel
  • Or use Terminal-only commands:
sudo /Applications/XAMPP/xamppfiles/xampp start

Bonus tip: Use XAMPP-VM version only if you’re sure you want to run it in a virtual machine. For most devs, the regular macOS version is easier.


? Problem 6: Canโ€™t Access localhost in Browser

Even though Apache is running, going to http://localhost just gives you a blank screen or error?

โœ… Fix:

  • Try visiting http://127.0.0.1 instead
  • Clear your browser cache
  • Check your hosts file:
sudo nano /etc/hosts

Make sure this line exists:

127.0.0.1   localhost

? Pro Tips After Installation

  • Move your projects into:
    /Applications/XAMPP/htdocs/
  • Access your project in browser via:
    http://localhost/your-folder-name
  • Use phpMyAdmin at:
    http://localhost/phpmyadmin

โœจ Final Thoughts

Installing XAMPP on Mac shouldnโ€™t feel like climbing a mountain in flip-flops. But letโ€™s face itโ€”between macOS security features, port conflicts, and permission quirks, it kinda does.

But now? You’re ready.
You’ve got all the fixes.
And heyโ€”if you survived this, you’re already a tougher dev than you were an hour ago.