[转]Permission denied: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
2015-08-20 16:19
603 查看
原文链接:http://blog.csdn.net/dyw/article/details/6612497
近日,在Apache2环境下部署Rails3应用时碰到此错误:
Permission denied: [某路径]/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
此时,在浏览器中不管是访问Rails3应用的根目录还是次级目录都会得到“403 - Forbidden”错误。查看apache2的error.log文件时会发现类似上面的信息。含具体路径的错误信息为:
Permission denied: /home/ubuntu/sites/myapp/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
此时,只需修改一下目录属性即可解决问题,即:
chmod +x -R /home/ubuntu/sites/myapp
近日,在Apache2环境下部署Rails3应用时碰到此错误:
Permission denied: [某路径]/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
此时,在浏览器中不管是访问Rails3应用的根目录还是次级目录都会得到“403 - Forbidden”错误。查看apache2的error.log文件时会发现类似上面的信息。含具体路径的错误信息为:
Permission denied: /home/ubuntu/sites/myapp/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
此时,只需修改一下目录属性即可解决问题,即:
chmod +x -R /home/ubuntu/sites/myapp
相关文章推荐
- 结合Apache和Tomcat实现集群和负载均衡
- linux线程回收
- 当你输入 nova boot时,client做了什么?
- Nginx 动态 upstreams 实现
- Nginx的常用命令(基本操作)
- linux下如何将xxx.c编译打包成xxx.so
- Linux内核:进程基础之进程ID与管理
- 鸟哥Linux私房菜基础篇知识点(篇目1)
- linux
- 在Linux 系统内存分配
- RM源码org.apache.hadoop.service.CompositeService分析
- shell公共函数functions
- Shell脚本中的自定义函数
- 【转】Tomcat配置文件入门
- Android系统架构
- Red Hat 6.4安装 OpenLDAP 2.4.23
- [nginx] nginx + spawn-fcgi + wsapi/lua(搭建lua的web dev平台)
- 使用linux服务logrotate文件tomcat日志文件
- 使用JProfiler9对远程Linux服务器Java应用进行性能检测
- 守护进程 linux 实例