Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find htdocs on xampp

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

like image 643
TechChain Avatar asked Jul 08 '17 17:07

TechChain


People also ask

How open Htdocs file in xampp?

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.

Where is htdocs folder in xampp Mac?

Click volumes, then explore, and then that should open lampp which has htdocs in it.

Where can I find Htdocs in Windows?

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 .


3 Answers

I was able to find the htdocs directory. On mac,Under volume tab there is button called 'explore' from there there is the directory.enter image description here

like image 50
TechChain Avatar answered Sep 28 '22 05:09

TechChain


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

/Users/my_name/.bitnami/stackman/machines/xampp/volumes/root/htdocs
like image 39
Andsanch Avatar answered Sep 28 '22 04:09

Andsanch


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

like image 9
lawkinming Avatar answered Sep 28 '22 03:09

lawkinming