简体   繁体   中英

How to install xampp in mac

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?

在此处输入图像描述

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.

在此处输入图像描述

Then I open the xampp and I got a popup like and I click on start在此处输入图像描述

在此处输入图像描述

I enable the 8080 port number.

在此处输入图像描述

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?

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:

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

A little late to the thread but I hit and solved this issue and I believe the OP had downloaded and installed the wrong version. At the time I am writing this, the link on the downloads page is for .dmg file is a VM file, or at least missing features of the full download. Instead of downloading that, go to the more downloads section

在此处输入图像描述

Once there, choose the version you need for your OS. This, and some mysql tweaks that are answered in multiple connected topics got me running.

在此处输入图像描述

Your XAMPP is working fine. You have to use Finder to go to htdocs.

Follow these steps -

  1. Open the XAMPP application and hit "Start" button.
  2. Make sure everything is proper by hitting "Go to Application".
  3. Now you should see the dashboard on your browser, if not, restart the application and try again.
  4. Go to Finder and on the sidebar you should see a volume labeled "192.168.64.2", go there and you will find a folder named "lamp". See under the locations section
  5. Inside lamp there will be htdocs, where you can place all the files you want the browser to access. Click on lamp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM