Day057 — Run Xampp on Mac
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:
- under General tab, click start
- under Network tab, enable “localhost:8080 -> 80”
- type “localhost:8080” in a browser to check if it is started
- it should redirect you to “localhost:8080/dashboard”
To start your own project:
- under Volumes tab, click Mount
- click Explore
- “lamp” folder will be opened
- go to “htdocs” folder and create a new folder for your project, like “new_project”
- go inside your “new_project” folder and create an “index.php” file containing your landing page code
- your project is accessed through “localhost:8080/new_project/”
- DONE
File structure would look like this:
- htdodcs
- new_project
- index.php
ref: