Linux下Apache设置上传文件时候的默认权限(umask)
2015-10-28 16:53
671 查看
方法一:
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
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
相关文章推荐
- Win+Apache+PHP+MySQL+Tcomcat(或Resin)
- Apache无法启动解决 the requested operation has failed
- Greenplum 以 Apache 协议开源,已托管 GitHub
- 第 四 十 三 天:Apache 的 相 关 问 题
- Real-time stream processing: The next step for Apache Flink
- Apache Ignite vs Apache Spark
- Type mismatch in key from map: expected org.apache.hadoop.io.Text, received org.apache.hadoop.io.Lon
- apache kafka系列之kafka.common.ConsumerRebalanceFailedException异常解决办法
- 改变apache路径规则来实现隐藏真实路径
- apache与IIS公用80端口(转发代理)
- Apache快速配置
- cronolog apache 日志分割
- apache 用户验证详解
- 通过apache 访问日志access.log 统计IP 和每个地址访问的次数
- apache与IIS共用80端口冲突解决方法
- 关于mac上面apache服务器的配置
- Apache rotatelogs命令
- Apache apxs命令
- Apache ab命令
- Ubuntu Apache配置以及cgi配置方法