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

查看:123
本文介绍了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.

Web服务器似乎可以正常工作,但是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. 关闭获取信息"窗口.
  1. Open applications folder
  2. Locate XAMPP folder
  3. Right click, get info (as described above)
  4. In pop-up window locate the 'sharing & permission' section
  5. Click the 'locked' padlock symbol
  6. Enter admin password
  7. Change 'Everyone' permissions to read & write
  8. In the get info window still, select the 'cog' icon' drop down option at the very bottom and select 'Apply to enclosed items' this will adjust the permission across all sub-folders as well.
  9. Re-lock the padlock symbol
  10. Close the 'Get Info' window.

任务完成,现在,您可以根据需要在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天全站免登陆