DEV Community

How to get Xampp working on your M1 chip Macbook pro

Aanyu Deborah Oduman on August 30, 2021

So... a while ago, my Macbook M1 pro was just a brand new machine with very little software installed. As a dev, obviously, I needed to install Xam...
Collapse
 
ekuwurd profile image
Ephwurd Kuwurd

I use these two commands to launch apache, php, mysql (without launching old XAMPP client which doesn't work anymore in Macbook M1).

sudo /Applications/XAMPP/xamppfiles/xampp startapache

sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

Collapse
 
jovylle profile image
Jovylle B

The UI did worked on my end. But I did currently installed xampp with php 5.6.40 version.

Collapse
 
ssmusoke profile image
Stephen Senkomago Musoke

I tend to use Laravel Valet for serving PHP projects with a configurable tld I use the test

It provides native capabilities to create SSL certificates for the domains, share via ngrok

The MySQL setup I use Homebrew

Collapse
 
paolamd profile image
paola-md

It worked like magic! I still don't understand why, but thank you so much!

Collapse
 
deborahtrez profile image
Aanyu Deborah Oduman

Youre welcome!

Collapse
 
adrienneklee profile image
Adrienne Lee

This is exactly the post I was looking for - thank you for this walk through, totally worked on my new M1 after a number of other failed attempts!

Collapse
 
strangeall profile image
David Benna

Thank You 💪🏼😊

Collapse
 
kakoozajerry profile image
Abraham Jerry Kakooza

Great piece. Was totally helpful. Hopefully am gonna find out the magic behind this😁

Collapse
 
deborahtrez profile image
Aanyu Deborah Oduman

I'm happy that you found it helpful! :)

Collapse
 
lamri_abdellahramdane_15 profile image
Lamri Abdellah Ramdane

Thanks for the helpful guide! Getting XAMPP to run smoothly on an M1 MacBook can be tricky, but your tips made the process a lot easier. I also use Servbay to organize my projects across various environments, and it has been great for managing workflows. Appreciate the detailed instructions

Collapse
 
cgz profile image
Christoph • Edited

well the 7x version is running yes. but not the actual 8x version.

i still get the "cannot calculate MAC address: hv_vm_create unknown error 0x00000004
Using fd 13 for I/O notifications" error message

Collapse
 
logan_greer_ca844dca51b41 profile image
Logan Greer

Does this work for the php 8 version?

Collapse
 
deborahtrez profile image
Aanyu Deborah Oduman

I don't think so. I've had that issue too.

Collapse
 
cgz profile image
Christoph

It does not :(

Collapse
 
cryptorhinogh profile image
CryptoRhinoGH • Edited

_[RESOLVED FOR PHP>8.x for M1 Mac] _
I just made an account to say this:
Go to sourceforge, specifically, here:
sourceforge.net/projects/xampp/fil...
download the INSTALLER. Do not use the VM. You should be able to use it after it installs, and brings back the familiar opening there was earlier

Collapse
 
jessicagithub profile image
Jessica Jeong

Thank you for this! :) Just wondering if we can delete the copy of the first XAMPP installation once the "real" one is successfully set up?

Collapse
 
deborahtrez profile image
Aanyu Deborah Oduman

That's a risk. 😂 I think I tried it once and got problems.

Collapse
 
thinmyatnaing profile image
Thinmyat

It was amazing ! It is working on M1 Macbook Air. Thanks a lot. Totally Helpful.

Collapse
 
anuragd3118 profile image
Anurag Deshmane

how to install php in xampp in mac m1?

Collapse
 
asdadqd profile image
asdadqd

Thank you very much for you help

Collapse
 
ouimazsa profile image
ouiminga • Edited

install the dmg instead of vm
that resolved my problem
sourceforge.net/projects/xampp/fil...

Collapse
 
samuel_wilson_87ec1810dd6 profile image
Samuel Wilson

Thank you so much. Created an account just to say thanks.!