简体   繁体   English

无法在 xampp 上找到 htdocs

[英]Unable to find htdocs on xampp

I have installed XAMPP for macOS Sierra.我已经为 macOS Sierra 安装了 XAMPP。

I have one icon in application for XAMPP.我在 XAMPP 的应用程序中有一个图标。

I am able to run the server & it's services but I am not able to find the htdocs folder.我能够运行服务器及其服务,但找不到htdocs文件夹。

I have not found it under \Library\Webserver我在\Library\Webserver下没找到

在此处输入图像描述

在此处输入图像描述

I was able to find the htdocs directory.我能够找到 htdocs 目录。 On mac,Under volume tab there is button called 'explore' from there there is the directory.在 Mac 上,在卷选项卡下有一个名为“探索”的按钮,那里是目录。 在此处输入图像描述

Just found out that XAMPP nfs mounts on MacOS are located in following path:刚刚发现 MacOS 上的 XAMPP nfs 安装位于以下路径中:

/Users/my_name/.bitnami/stackman/machines/xampp/volumes/root/htdocs

The new version of XAMPP uses a VM for its content, you need to mount the Volume to access htdocs.新版 XAMPP 的内容使用 VM,您需要挂载 Volume 才能访问 htdocs。

XAMPP-VM挂载

More info about differences between old XAMPP and XAMPP-VM: XAMPP-VM for Mac有关旧 XAMPP 和 XAMPP-VM 之间差异的更多信息: XAMPP-VM for Mac

In other to locate the right and active htdocs directory of your XAMPP for macOS Sierra, follow the three steps below;另外,要找到适用于 macOS Sierra 的 XAMPP 的正确和活动的htdocs目录,请按照以下三个步骤操作;

  1. Launch your XAMPP and click on the "Start" button,启动 XAMPP 并单击“开始”按钮,
  2. Wait for the Status indicator bubble to change from the orange colour to green, then click on the "Volumes" tab (between the "Network" and "Log" tabs),等待状态指示器气泡从橙色变为绿色,然后单击“卷”选项卡(在“网络”和“日志”选项卡之间),
  3. Proceed to click on the "Mount", then "Explore" button;继续点击“Mount”,然后点击“Explore”按钮;

From the resulting window, you can easily locate your htdocs folder.在出现的窗口中,您可以轻松找到htdocs文件夹。

More details available here .此处提供更多详细信息。

Delete the xampp.app, download the new one(I use 5.6.31 php ver) then reinstall it.删除 xampp.app,下载新的(我使用 5.6.31 php ver)然后重新安装。

You can also mount it on your own mac:也可以挂载到自己的mac上:

hatem@Mac:/opt$ sudo mkdir lampp
hatem@Mac:/opt$ sudo mount -t nfs -o resvport,rw 192.168.64.2:/opt/lampp /opt/lampp

Then ls and you will find the entire lampp from the VM mounted locally.然后 ls ,您将从本地安装的 VM 中找到整个 lampp。

I found out that the NEW xampp has file explorer link on it click it and boooooooooom htdocs is there我发现 NEW xampp 上有文件资源管理器链接,单击它,boooooooooom htdocs 就在那里

/Applications/XAMPP/xamppfiles

That's where you will find htdocs .那就是您可以找到htdocs的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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