Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

terminal

xampp

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!

like image 666
Mia Avatar asked Oct 09 '17 15:10

Mia


People also ask

How do I access Xampp folder on Mac?

The main XAMPP configuration files are located as follows: Apache configuration file: /Applications/XAMPP/xamppfiles/etc/httpd. conf, /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.

How do I access htdocs folder on Mac?

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


2 Answers

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
like image 62
Uri Plata Avatar answered Nov 04 '22 16:11

Uri Plata


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

like image 23
Willy Henrique Säuberli Avatar answered Nov 04 '22 16:11

Willy Henrique Säuberli