无法烘焙 CakePHP - 在 NTFS 安装分区上为 cake/console/cake 设置 chmod +x 时权限被拒绝
刚刚学习 CakePHP 及其 Bake 功能。
我尝试从 app
文件夹运行
../cake/console/cake Baker
,但收到错误
../cake/console/cake: Permission拒绝
chmod 777
和 chmod +x
不起作用。我仍然被拒绝许可。
还尝试通过“属性”窗口设置权限,但是当我选中“允许将文件作为程序执行”时,它会立即更改回未选中状态。
如果有什么区别的话,我的 www/
文件夹位于 NTFS 安装分区上。我之前在 Windows 上使用过 xampp,当我切换到 Linux 时,www/
仍然在那个 NTFS 分区中,我只是让 Linux 中的 Apache 指向该文件夹。
有什么建议吗?
Just learning CakePHP and its Bake feature.
I tried to run
../cake/console/cake bake
from the app
folder, but I get the error
../cake/console/cake: Permission denied
chmod 777
nor chmod +x
don't work. I still get permission denied.
Also tried setting permissions thru the Properties window, but when I check "Allow executing file as program", it changes right back to unchecked.
If it makes any difference, my www/
folder is on an NTFS mounted partition. I used xampp on Windows before, and when I switched to Linux, www/
is still in that NTFS partition, and I just had my Apache in Linux point to that folder.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认的 Linux ntfs 驱动程序无法正确处理 NTFS 设备上的权限设置。
您需要查看 NTFS-3G 驱动程序。
这可能有帮助
https://unix.stackexchange.com/questions/11757/ntfs-under-linux
the default linux ntfs driver cannot properly handle permissions settings on NTFS devices.
you need to look into the NTFS-3G drivers.
this might help
https://unix.stackexchange.com/questions/11757/ntfs-under-linux
如果它对任何人有帮助,我最终所做的是将 Apache 的
www
文件夹位置更改为~/www
并在那里进行烘焙。完成后,我将 Apache 的www
文件夹恢复到我的 NTFS 分区,然后将我新烘焙的应用程序复制到其中。In case it helps anyone, what I ended up doing is that I changed Apache's
www
folder location to~/www
and did my baking there. When I was done, I restored Apache'swww
folder to my NTFS partition, then copied into it my newly-baked application.