Symfony2和Ubuntu 11.10权限文件夹和文件
当我用 netbeans 打开一些文件(Symfony2.0)时,这对我说:无法锁定只读 我必须单击鼠标右键并将每个文件夹设置为“读写”权限 这是个大问题,因为我必须设置每个文件夹和文件...... 我该如何解决我的问题权限?
When i open some files(Symfony2.0) with netbeans, this say me:Cannot Lock read Only
i must click right mouse and set every folder the permission to "read and write"
this is big problem because i must set every folder and file.....
how i can fix this my problem permission?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要为整个文件夹/子文件夹和文件添加写入权限。
例如:
也许您使用 root 创建了 symfony2 文件,其中 netbeans使用当前登录的用户权限。确保您的文件/文件夹属于用户而不是 root
you need add write permissions to the whole folder/subfolders and files.
For example:
Perhaps you created symfony2 files using root where netbeans uses user permissions which is currently logged in. Make sure your files/folders belong to user not to the root
如果您的用户与服务器运行的用户不同(例如 apache、httpd、www-data),那么您必须将自己添加到服务器组并 chmod 所有文件,以便将组权限设置为读取和写入,或 chown 所有文件给您 (chown -R user:user) 并将您的服务器用户添加到您的组中。
另外,不要忘记在缓存/和日志/文件夹上设置适当的权限
(当您执行缓存时,它们必须可由命令行用户写入:清除,并且也可由服务器用户写入)
有关详细信息,您可以在此处查看 Symfony 书籍的安装 Symfony 章节中的“设置权限”段落:
< a href="http://symfony.com/doc/current/book/installation.html" rel="nofollow">http://symfony.com/doc/current/book/installation.html
If your user is different from the user the server is running as (apache, httpd, www-data for instance), then you must either add yourself to the server group and chmod all the files so group permissions are set to read and write, or chown all the files to you (chown -R user:user) and add your server user to your group.
Also, dont forget to set proper permissions on the cache/ and log/ folders
(they must be writable by the command line user when you do a cache:clear and also writable by the server user)
For more info you can check the "setting up permissions" paragraph on the Installing Symfony Chapter of the Symfony book here:
http://symfony.com/doc/current/book/installation.html