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
Open up any Web browser on your desktop and enter "localhost" into the address box. The browser will open a list of files stored under the "HTDocs" folder on your computer. Click on the link to a PHP file and open it to run a script.
Click volumes, then explore, and then that should open lampp which has htdocs in it.
Remember to always save your files and folders in htdocs (full path is C:\xampp\htdocs\ ). You will also need to launch the file via a url (e.g.: http://localhost/myphpfile.php ) in the browser address bar, not by double-clicking an icon or via the File Open menu option. In each of the two latter cases, the .
I was able to find the htdocs directory. On mac,Under volume tab there is button called 'explore' from there there is the directory.
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.
More info about differences between old XAMPP and XAMPP-VM: XAMPP-VM for Mac
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With