Mac OS X上的XAMPP权限? [英] XAMPP permissions on Mac OS X?
问题描述
我在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,
我的解决方法是:
- 打开应用程序文件夹
- 找到XAMPP文件夹
- 右键单击,获取信息(如上所述)
- 在弹出窗口中找到共享和权限"部分
- 点击锁定"的挂锁符号
- 输入管理员密码
- 更改所有人"的权限以阅读和查看写
- 仍然在获取信息"窗口中,从最底部选择齿轮"图标下拉选项,然后选择应用于附件",这也会在所有子文件夹中调整权限.
- 重新锁定挂锁符号
- 关闭获取信息"窗口.
- Open applications folder
- Locate XAMPP folder
- Right click, get info (as described above)
- In pop-up window locate the 'sharing & permission' section
- Click the 'locked' padlock symbol
- Enter admin password
- Change 'Everyone' permissions to read & write
- 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.
- Re-lock the padlock symbol
- 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屋!