即使权限看起来正确,move_uploaded_file()权限也被拒绝

时间:2018-06-06 10:08:05

标签: php apache rhel

我使用move_uploaded_file()将上传的文件移动到html文件夹(带有apache的RHEL)内的目录。

如果我转到www / uploads,这将有效,但如果我使用www / html / bla / documents我会收到权限错误。

...failed to open stream: Permission denied ...
...Unable to move ...

      File: ‘../../uploads/’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 802h/2050d      Inode: 2242820     Links: 2
Access: (0777/drwxrwxrwx)  Uid: ( 1002/developer)   Gid: ( 1002/developer)
Context: unconfined_u:object_r:httpd_sys_rw_content_t:s0
Access: 2018-06-06 07:40:27.662812092 +0000
Modify: 2018-06-06 07:42:00.868583357 +0000
Change: 2018-06-06 07:42:00.868583357 +0000
 Birth: -

  File: ‘documents’
  Size: 6               Blocks: 0          IO Block: 4096   directory
Device: 802h/2050d      Inode: 35485731    Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1002/developer)   Gid: ( 1002/developer)
Context: unconfined_u:object_r:httpd_sys_content_t:s0
Access: 2018-06-06 09:54:08.855892855 +0000
Modify: 2018-06-06 09:54:07.803861541 +0000
Change: 2018-06-06 09:54:07.803861541 +0000
 Birth: -

[developer@vm-pomit01 pomit]$ groups apache
apache : apache developer
[developer@vm-pomit01 pomit]$ groups root
root : root developer

我在权限方面缺少什么?

0 个答案:

没有答案
相关问题