我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

更改Apache / PHP的默认文件权限

I have an Amazon EC2 server running Redhat. When my PHP CMS creates files they are owned by www-user and has chmod 644. How can I make all files created by Apache and PHP default to 666?

I've already tried adding "umask 002" in /etc/init.d/httpd but it doesn't seem to work.

Many thanks.

I've read that it depends on the parent folder rights. Try to changed the rights on the parent folder to your apache user

What also may help: Apache permissions, PHP file create, MKDir fail

近期文章

  • Ajax POST无法使用Jquery和PHP
  • 切换语句一次有两个变量
  • 是这个防弹使用别名获取网址
  • 如何使用NSURLConnection获取PHP回显?
  • 在if语句PHP中传递变量
  • 在wapache中使用Internet Explorer到Google Chrome
  • PHP脚本将在mysql中输入数据
  • Facebook PHP SDK会话变量未通过
  • WP Timthumb路径错误 - 可能缓存相关? [关闭]
  • PHP simplexml和xpath访问节点值
  • Magento:Xdebug在一些方法上错过了断点
  • DomPDF - Cached_PDF_Decorator声明错误
  • 学说:关于关系的多余(多对多)
  • 如何将PHP Array中的值绘制成Jqplot?
  • jQuery:向另一个div添加和删除内容
  • WordPress管理员错误的URL和加载问题
  • 根据爆炸项排序PHP数组
  • 优化MySQL计数查询,提供完整信息
  • Windows提示符按COM端口读取和发送文本
  • php脚本调用父javascript函数

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华