【发布时间】:2012-03-15 17:33:07
【问题描述】:
我关注了https://help.ubuntu.com/10.04/serverguide/C/index.html 设置我的 ubuntu 服务器
已安装
- apache2, mysql, imagemagick, ... 作为“root”而不是“sudo”
- “rvm”作为用户。乘客作为用户
当我访问我的 rails 站点时,我收到 /var/log/apache2/error.log 中的此错误
(13)Permission denied: /home/my_home_directory/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
- 我在这里缺少什么?
- 我是不是在安装时做错了什么 基本包作为“root”而不是“sudo”? (如何解决,如果有的话)
【问题讨论】:
-
愚蠢的错误。 :) 我的用户主文件夹没有世界可读权限。将 /home/user_directory 更改为 755 并且它起作用了。
标签: ruby-on-rails .htaccess apache2 passenger