Mac OS X 上的 XAMPP 权限? [英] XAMPP permissions on Mac OS X?

查看:73
本文介绍了Mac OS X 上的 XAMPP 权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mac OS X 10.6.8 上安装了 XAMPP 1.7.3,没有更改任何默认值.

I installed XAMPP 1.7.3 on Mac OS X 10.6.8 without changing any defaults.

网络服务器似乎工作正常,但 htdocs 目录的权限对于系统以外的所有人都设置为只读".所以 (a) 每次复制 Web 内容时我都必须提供 root 密码,而且问题更大,(b) NetBeans 说它无法创建目标目录,甚至不生成 index.php 源目录中的文件.

The webserver seems to work okay, but the permissions on the htdocs directory are set to "Read only" for everyone other than system. So (a) I have to provide root password every time I copy in web content, and, more problematic, (b) NetBeans says it can't create a target directory, and doesn't even generate the index.php file in the source directory.

我是否只需要手动更改 htdocs 目录的权限,或者是否应该更改一些更多的全局 XAMPP 设置?以 root 身份运行 NetBeans 似乎有点极端.

Do I just need to manually change permissions on the htdocs directory, or is there some more global XAMPP setting that should be changed? Running NetBeans as root seems a bit extreme.

推荐答案

尝试了以上方法,但是修改权限的选项对htdocs文件夹不可用,

Tried the above but the option to amend the permission was not available for the htdocs folder,

我的解决方案是:

  1. 打开应用程序文件夹
  2. 找到 XAMPP 文件夹
  3. 右键单击,获取信息(如上所述)
  4. 在弹出窗口中找到共享和"许可部分
  5. 点击锁定"挂锁符号
  6. 输入管理员密码
  7. 更改所有人"的阅读权限写
  8. 仍然在获取信息"窗口中,选择最底部的齿轮"图标下拉选项"并选择应用于封闭的项目",这也将调整所有子文件夹的权限.
  9. 重新锁定挂锁符号
  10. 关闭获取信息"窗口.

任务完成,这将允许您根据需要填充 htdocs 文件夹中的子文件夹以填充您的网站.

Task complete, this will now allow you to populate sub-folders within the htdocs folder as needed to populate your website(s).

这篇关于Mac OS X 上的 XAMPP 权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆