Day057 — Run Xampp on Mac

Jacky Tsang
2 min readDec 5, 2018

--

There are two options for installing Xampp on Mac, which are XAMPP and XAMPP-VM. I use XAMPP-VM for developing my projects.

  • 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.

To start the local server:

  1. under General tab, click start
  2. under Network tab, enable “localhost:8080 -> 80”
  3. type “localhost:8080” in a browser to check if it is started
  4. it should redirect you to “localhost:8080/dashboard”
click start to start the server. duh~~
enable port forwarding
localhost:8080

To start your own project:

  1. under Volumes tab, click Mount
  2. click Explore
  3. “lamp” folder will be opened
  4. go to “htdocs” folder and create a new folder for your project, like “new_project”
  5. go inside your “new_project” folder and create an “index.php” file containing your landing page code
  6. your project is accessed through “localhost:8080/new_project/”
  7. DONE

File structure would look like this:

- htdodcs
- new_project
- index.php
Mount volume
“lamp” folder

ref:

--

--

No responses yet