Where to find htdocs in XAMPP Mac

≡放荡痞女 提交于 2019-12-31 08:12:49

问题


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?


回答1:


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




回答2:


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

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



回答3:


Open xampp application, then do the following:

  1. go to: volumes,

  2. click the [mount] button, and

  3. finally click explore.




回答4:


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




回答5:


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




回答6:


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

Another way is cmd+space and search for manager-osx, go to Welcome and click the Open Application Folder.




回答7:


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.




回答8:


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




回答9:


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,

And then Click on explore button,

You will get Finder open up with this,




回答10:


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.




回答11:


For me it was in

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

I am using Mac Os Mojave 10.14.5




回答12:


Simple as ...

From the UI

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

From Terminal

cd /Applications/XAMPP/htdocs



回答13:


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

chmod 777 ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs/folder



回答14:


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



来源:https://stackoverflow.com/questions/45518021/where-to-find-htdocs-in-xampp-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!