Skip to content

linux下为什么0777的文件夹和文件apache无法写入呢?

转载本站文章请注明:
转载来至:[记录与PHP的PK经历]
本文链接: linux下为什么0777的文件夹和文件apache无法写入呢?

原来以为只要是0777的文件夹都可以写入,没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户,具体命令:

chmod -Rf nobody ./

http://www.pkphp.com/(2)linux nobody(2)ubuntu php 写入文件(1)linux 文件夹 Nobody(1)php 文件夹所有者是apache(1)linux 0777(4)linux 搜索 可以写入的文件(1)apache nobody(1)php Linux 无法写入(1)linux php 写文件 无权限(1)nobody linux(1)php linux 写入文件(1)linux写文件(1)linux 权限 nobody(1)php文件无法写入(1)

中文关键字:0777 apache linux nobody 命令 文件 用户 文件夹 所有者 没想到 要是 或者 具体 原来 办法

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).