70

I cannot find the htdocs directory anywhere on XAMPP for Mac.

Many videos on YouTube show people just clicking a button that says "Go to application folder" but on my user interface, it reads: "Go to application" which just opens the localhost page at http://localhost.

Where can I locate the htdocs directory?

nyedidikeke
  • 6,899
  • 7
  • 44
  • 59
Angel Garcia
  • 1,547
  • 1
  • 16
  • 37
  • Try this, pay attention to the volumes tab part, good luck: https://stackoverflow.com/questions/44989243/unable-to-find-htdocs-on-xammp – alwaysLearning Oct 30 '17 at 12:15
  • You can locate your `htdocs` folder using these 3 steps [here](https://stackoverflow.com/a/54727322/6381711). – nyedidikeke Feb 17 '19 at 15:05

20 Answers20

148

In the "volumes" tab, you have to mount it first. Then it appears on the desktop as if it were an external USB. All the data is inside it. :D

montrealist
  • 5,593
  • 12
  • 46
  • 68
Dani
  • 1,596
  • 1
  • 8
  • 3
42

I have installed XAMPP version 7.3.11, After starting the Apache and other services, go to volumes tab on XAMPP, and click on mount button,

Mount

And then Click on explore button,

Explore

You will get Finder open up with this,

Xampp

shubham mishra
  • 1,183
  • 14
  • 21
  • The mounted volume really messes with the file watchers (e.g. for SCSS compilation). I wish there were a direct path – Iulius Curt Mar 23 '20 at 09:26
41

At least for macbook (os high sierra) go to terminal and type or copy and paste:

cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs
31

Open xampp application, then do the following:

  1. go to: volumes,

  2. click the [mount] button, and

  3. finally click explore.

Pang
  • 9,564
  • 146
  • 81
  • 122
Vinod Chauhan
  • 329
  • 3
  • 2
10

Go to Volumes Tab and click Mount

enter image description here

You can find it under Locations in the Sidebar. Click on it.

enter image description here

Open this folder: Lamp

enter image description here

You can find the htdocs folder inside Lamp, just like the below screenshot:

enter image description here

Note: I am using macOS Catalina.

Salman
  • 121
  • 1
  • 6
9

Simple as ...

From the UI

  • Click Go->Go to Folder then /Applications/XAMPP/htdocs

From Terminal

cd /Applications/XAMPP/htdocs
DragonFire
  • 3,722
  • 2
  • 38
  • 51
Daniel Almeida
  • 342
  • 2
  • 4
9

you installed Xampp-VM (VirtualMachine), simply instead install one of the "normal" installations and everything runs fine.

Shubham Tomar
  • 293
  • 4
  • 13
6

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

6

for each easy and useful access you can add terminal command via editing your bash profile, here how:

open terminal -> type cd hit enter. then type nano .bash_profile then add this line alias htdocs="cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs" Now hit ctrl + o then hit enter, then hit ctrl + x Now to refresh the terminal commands type the following command

source .bash_profile

Now you can use htdocs command each time you want to navigate htdocs folder.

Fares Younis
  • 59
  • 1
  • 6
6

There are two ways to find it:

One way is to open Finder>Applications>XAMPP(FolderNotTheInstaller)>htdocs

Another way is cmd+space and searches for manager-osx,

go to Welcome and click the Open Application Folder.

enter image description here

Nathan Rice
  • 3,091
  • 1
  • 20
  • 30
noe
  • 194
  • 1
  • 9
5

For me it was in

/Users/your username/.bitnami/stackman/machines/xampp

I am using Mac Os Mojave 10.14.5

ScottyBlades
  • 12,189
  • 5
  • 77
  • 85
2

From XAMPP Application window (manager-osx) click => Open Application Folder >> htdocs

Now you opened your target folder.

You can see process by image below

XAMPP Application window (manager-osx)

Open Application Folder

Application (xamppfiles) folder opened

Click on 'htdocs'

Your target folder 'htdocs' opened

Now begin your development

Abhishek Kumar
  • 738
  • 1
  • 9
  • 17
1

Make sure no other apache servers are running as it generates an error when you try to access it on the browser even with a different port. Go to Finder and below Device you will usually see the lampp icon. You can also open the htdocs from any of the ide or code editor by opening files or project once you locate the lampp icon. Make sure you mount the stack.

1

Simply click in "Go To Application Folder" enter image description here

João Rodrigues
  • 766
  • 8
  • 12
1

The next moment I installed MAMP, can find the docks in my local.

PFA screenshot.

enter image description here

Location:

/Applications/MAMP/htdocs/
Amitesh Bharti
  • 14,264
  • 6
  • 62
  • 62
0

I used this line to locate and edit the permissions under xampp:

chmod 777 ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs/folder
cs95
  • 379,657
  • 97
  • 704
  • 746
Red Mike
  • 29
  • 1
  • 7
0

You installed xampp Vn thats the problem. Install normal xampp and everything will be fine.

link to nornal xampp: https://www.apachefriends.org/download.html

  1. Download it from the link

  2. install it

  3. when it opens, Simply click in "Go To Application Folder".

Lucky Amos
  • 156
  • 1
  • 5
0

/Applications/XAMPP/xamppfiles/htdocs

marciofao
  • 11
  • 3
0

Go to finder in your Mac

enter image description here

In Location click the network address. You will see the Lampp folder. To see this network address yo need to have started xampp application and mounted it.

Click Lampp folder enter image description here

You will see the htdocs folder among the folders.

On opening htdocs folder you will find your php applications

enter image description here

Mbote-Joseph
  • 73
  • 1
  • 4
-3

From the Finder menu, click Go->Go to Folder. Type in /Applications/XAMPP

Chris
  • 33
  • 4
  • That only took me to my applications folder. Sadly. Maybe i should try going to the htdocs folder? I tried but it said it didnt exist. – Angel Garcia Aug 05 '17 at 15:32