XAMPP - For Apple Silicon M1 Macs or Monterey and above

Here is how to install XAMPP for Mac M1 or any version above Monterey.

Installation Videos:

https://1513041.mediaspace.kaltura.com/media/Clip+of+INFO+152+WI+25+XAMPP+How+to+Install+and+Troubleshooting+on+macOS/1_1v6cm9dn


https://1513041.mediaspace.kaltura.com/media/Clip+of+INFO+152+WI+25+Brew+CLI+Install+of+XAMPP+on+Mac+and+Port+Changing+on+Mac/1_4djbw8lr

Installing XAMPP

  1. Head over to one of the following links and download the latest version of XAMPP.
          https://www.apachefriends.org/download.html
          or
          https://sourceforge.net/projects/xampp/files/XAMPP%20Mac%20OS%20X/
  2. Make sure the downloaded installer is the real Mac OS installer and not a VM.
    XAMPP - Instruction 1
    XAMPP - Instruction 2
  3. Open the .dmg file and install the program like normal.

Mounting New Volume

The latest version of XAMPP does not provide a new volume mount option. Instead, you can follow these steps to emulate the option.

  1. Under manage server, make sure each server is running.
    XAMPP - Instruction 3
  2. Press command + shift + period, to display hidden files.
    XAMPP - Instruction 4
  3. Open finder.
  4. Click on "Desktop" and on the Mac taskbar, click on "View" and "Show Path Bar".
    XAMPP - Instruction 5
  5. Doubleclick Macintosh HD or what's in its place.
    XAMPP - Instruction 6
  6. Navigate to XAMPP's htdocs folder and place the volume you would have selected in the folder.
    XAMPP - Instruction 7

Examples

  • Example of localhost phpMyAdmin
    XAMPP - Example 1
  • Example of localhost server file path
    XAMPP - Example 2
  • Example of where files are located in Mac Terminal
    XAMPP - example 3
  • Example of accessing incorrect file path
    XAMPP - example 4
  • Example of localhost server file path
    XAMPP - example 5

Troubleshooting

If Apache starts / stops, use these commands in the Terminal for troubleshooting.


# Graceful stop (recommended)
sudo systemctl stop httpd
# or on some systems:
sudo service httpd stop

 

# If you need to restart:
sudo systemctl restart httpd
# or
sudo service httpd restart

 

# If above does not help...
sudo killall -15 httpd

or

sudo killall -9 httpd

 

# If above STILL does not help...

sudo killallhttpd