How can I access XAMPP/Lampp folder via Terminal on Mac

别来无恙 提交于 2019-12-11 04:28:37

问题


I recently started using XAMPP on Mac and it installed the "lampp" folder under "Shared" and showing as an IP address in Finder. So I can access the files via Finder but I'm unable to cd into the folder via Terminal.

The Shared folder is simply not visible. I tried /Volumes to see all volumes, but "lampp" wasn't listed, as well mounting it somehow but that also didn't work. Any ideas? It's so odd that I see the folder in Finder but not in Terminal!


回答1:


I had the same problem the route for htdocs is the following:

cd /Users/***your_user_name***/.bitnami/stackman/machines/xampp/volumes/root/htdocs

"username" only replaces that line by the name of your user

Example, for me it would be:

cd /Users/adanuri/.bitnami/stackman/machines/xampp/volumes/root/htdocs



回答2:


I run in to the same problem and looked for hours for a solution. I now found this page: https://www.apachefriends.org/blog/new_xampp_20170628.html

Since it is a VM you have to click on the Open Terminal button in the general tab of the stack manager. Then a new window opens and you can work on the terminal.

Screenshot of the stack manager with the open Terminal option

Screen Shot of the open Terminal window




回答3:


If you just want the http://localhost version, go and reinstall the non VM XAMPP.

Make sure you download & install a version where the name doesn't include '-VM' here: https://www.apachefriends.org/download.html




回答4:


"Open Terminal" XAMPP management tool, see image in this link

You only must clic in "Open Terminal" at XAMPP management tool, as you can see in the attached image.



来源:https://stackoverflow.com/questions/46650354/how-can-i-access-xampp-lampp-folder-via-terminal-on-mac

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