Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install xampp in mac

Tags:

macos

xampp

I am using MacBook Air. I installed the xampp but it's not working.

After some research, I found the URL http://localhost:8080/dashboard/ and I am getting the xampp. Now I am confused where should I get htdocs folder to add my code. Can anyone assist me?

enter image description here

Let's talk about in details

I downloaded the xampp from this link https://www.apachefriends.org/download.html

and I move it on the application. Now I am getting the xampp icon in application.

enter image description here

Then I open the xampp and I got a popup like and I click on start enter image description here

enter image description here

I enable the 8080 port number.

enter image description here

Then I just I checked in the browser http://localhost:8080/dashboard/ and I found the xampp dashboard page. Now I am not getting the htdocs folder. would you help me out in this?

like image 364
user9437856 Avatar asked Dec 18 '22 19:12

user9437856


1 Answers

I too have had lots of confusion setting up XAMPP on my Mac. Things the docs said would work, just plain did not.

The short answer to your question: In MacOS X the htdocs dir of the virtual server is in:

/Users/<YOUR-USER-NAME>/.bitnami/stackman/machines/xampp/volumes/root/htdocs


More complete instructions for getting the server up:

  1. Open up the XAMPP Application
  2. Under General/Services start the XAMPP services
  3. Under Network make sure to enable a port config (I chose localhost:8080->80)
  4. In the Volumes "tab" click "Mount" beside /opt/lampp and then you can click "Explore" to open a finder window to the virtual server.
    • This will cause the virtual Network-Drive 192.168.xxx.yyy to show up in the Finder sidebar which has a single folder named lampp
    • Additionally a new external drive named lampp will also be available in Finder.
  5. However you get to lampp, put your source-files in the htdocs folder.

Links that DID work for me on first launching:

  • http://localhost:8080/dashboard/
  • http://localhost:8080/phpmyadmin/
  • http://192.168.64.2/dashboard/

Links that did NOT work, in spite of docs claiming otherwise:

  • http://localhost/ or http://localhost/index.php
  • http://192.168.64.2/phpmyadmin/ <--Access Forbidden 403
like image 166
Rich Werden Avatar answered Dec 28 '22 07:12

Rich Werden