|
发表于 2015-4-1 10:10:37
|
显示全部楼层
手册上写了的,
On UNIX-like operating systems, this is usually achieved by setting the 0700 mode permissions on that directory via the chmod command, which allows only the directory’s owner to perform read and write operations on it. But be careful because the system user running the script is usually not your own, but something like ‘www-data’ instead, so only setting those permissions will probable break your application.
Instead, you should do something like this, depending on your environment
PHP复制代码 mkdir /<path to your application directory >/sessions /
chmod 0700 /<path to your application directory >/sessions /
chown www -data /<path to your application directory >/sessions / 复制代码
手册指示的位置是application下,但要保证文件的拥有者是www,跟windows下的权限所有者为IIS-USERS之类的一样。 |
评分
-
查看全部评分
|