Unable to find htdocs on xampp

Viewed 33904

I have installed XAMPP for macOS Sierra.

I have one icon in application for XAMPP.

I am able to run the server & it's services but I am not able to find the htdocs folder.

I have not found it under \Library\Webserver

enter image description here

enter image description here

8 Answers

Just found out that XAMPP nfs mounts on MacOS are located in following path:

/Users/my_name/.bitnami/stackman/machines/xampp/volumes/root/htdocs

The new version of XAMPP uses a VM for its content, you need to mount the Volume to access htdocs.

XAMPP-VM mount

More info about differences between old XAMPP and XAMPP-VM: XAMPP-VM for Mac

In other to locate the right and active htdocs directory of your XAMPP for macOS Sierra, follow the three steps below;

  1. Launch your XAMPP and click on the "Start" button,
  2. Wait for the Status indicator bubble to change from the orange colour to green, then click on the "Volumes" tab (between the "Network" and "Log" tabs),
  3. Proceed to click on the "Mount", then "Explore" button;

From the resulting window, you can easily locate your htdocs folder.

More details available here.

You can also mount it on your own mac :

hatem@Mac:/opt$ sudo mkdir lampp
hatem@Mac:/opt$ sudo mount -t nfs -o resvport,rw 192.168.64.2:/opt/lampp /opt/lampp

Then ls and you will find the entire lampp from the VM mounted locally.

I found out that the NEW xampp has file explorer link on it click it and boooooooooom htdocs is there

Related