XAMPP cannot start on macOS - Cannot calculate MAC address

XAMPP can’t start on macOS — cannot calculate MAC address

If you are running XAMPP on macOS, you may run into a variety of problems that may prevent you from starting the program. One of these problems is an error that says “cannot calculate MAC address” when you try to start the program.

Error starting XAMPP stack
The error message is not very helpful.

If your error message says something else, you may want to check out the other articles on XAMPP for macOS:

  1. XAMPP Apache not starting on macOS
  2. XAMPP MySQL not starting on macOS

What’s the problem?

This MAC address error is caused by misconfigured files in the user’s XAMPP configuration files. It also only happens if you are using the VM version of XAMPP (i.e. XAMPP-VM).

XAMPP VM installs
XAMPP installer downloads for macOS on the offical XAMPP download page. Notice the file sizes for XAMPP-VM are larger.

If you’re wondering what the difference is between the regular XAMPP and XAMPP-VM, here’s what the official website has to say:

  • XAMPP for OS X is a native installer for OS X. It installs Apache, PHP and other XAMPP components directly on your OS X system, in the /Applications/XAMPP folder.
  • XAMPP-VM is a virtual machine for OS X. It includes Apache, PHP and other XAMPP components and runs them in a Linux-based virtual machine on your OS X system.
The official XAMPP-VM FAQs

Article continues after the advertisement:

The solution

To fix this issue, you have 2 options:

  1. Install the non-VM version of XAMPP, or;
  2. Refresh the XAMPP-VM settings, which have been incorrectly-configured by the system previously.

If you are going with option 2, run the following command to remove all XAMPP-VM configuration files on the logged in user:

rm -rf ~/.bitnami/stackman

IMPORTANT: You might want to back up the folder before running the command above! This will clear all existing configurations on your existing XAMPP-VM installation, so the next run will be treated as the first time you are running XAMPP-VM.


Do you have any other fixes for this issue? Share it with us in the comments below.

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: You can use Markdown to format your comments.

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.

This site uses Akismet to reduce spam. Learn how your comment data is processed.