Linux下Apache设置上传文件时候的默认权限(umask)
来源:互联网 发布:vb中mod是什么意思 编辑:程序博客网 时间:2024/06/05 04:27
方法一:
Apache/Php umask determines the permissions for the newly created files. On a VPS / Dedicated server you can change the umask to suit your specific needs by editing:
/usr/local/apache/bin/envvars
There you should add:
umask 022
Right after that restart Apache and Apache/Php's default umask will become 22.
方法二:
For CentOS and other Red Hat distros, add the umask setting to /etc/sysconfig/httpd and restart apache.
[root ~]$ echo "umask 002" >> /etc/sysconfig/httpd
[root ~]$ service httpd restart
0 0
- Linux下Apache设置上传文件时候的默认权限(umask)
- Linux文件默认权限:umask
- linux 文件默认权限:umask
- Linux文件默认权限:umask
- Linux文件默认权限:umask
- linux文件默认权限:umask
- 文件的默认权限:umask
- umask命令:设置文件的默认权限掩码
- Linux文件默认权限的计算方式 umask
- 转载:Linux新建文件和目录的默认权限 - Umask
- Linux中的文件默认权限:umask
- Linux-文件默认权限与umask
- 文件默认权限:umask
- 文件默认权限:umask
- 文件默认权限:umask
- umask 文件默认权限
- linux默认权限:umask
- umask ---文件与目录的默认权限
- 传奇登陆安检脚本
- 在Centos中yum安装和卸载软件的使用方法
- CentOS安装SVN
- 远程连接mysql速度慢的解决方法
- Linux查看mysql 安装路径
- Linux下Apache设置上传文件时候的默认权限(umask)
- The program package-cleanup is found in the yum-utils package
- Swift枚举(Enumerations)
- Jmail 4.5 的使用
- Mysql按天分组(按日分组)
- Dreamweaver报错FlashObject.htm问题解决
- asp获取中文首字母
- 仿百度纯JS日历 带农历
- ACCESS查询当天数据的SQL语句(DateDiff函数)