【发布时间】:2012-07-01 05:51:30
【问题描述】:
一直让我感到困惑的是,如果一个文件夹具有读写权限,Apache + PHP 就无法对其进行写入。您必须结束授予 apache 执行权限才能在该文件夹中写入文件。为什么?
例如使用 chmod 664(其中构建组包括 apache 用户)apache 将无法在此文件夹中写入临时缓存文件:
drw-rw-r-- 5 jenkins build 4096 Jun 15 13:05 cache
使用 chmod 774 apache 将能够将新文件写入文件夹:
drwxrwxr-- 5 jenkins build 4096 Jun 29 11:44 cache
【问题讨论】: