I used passenger + rails + apache to deploy my project, which is quite
straightforward. However, after the deployment, when I was trying to
access my site, an error pop up indicating that you dont have the
permission to access. Have been working on that for the whole night, I
found out Selinux is the key to prevent apache process access other
direct except /var/www folder. It turns out to be the apache can only
access the /var/www by default.
On the other hand, after 1
week roll out the application, a lot of error pop up for no reason. I
went through the log line by line, still can not find out whats going
on there. In final, it was the session that went wrong. I recalled that
I have not clean up the time out session, and the session file folder
must be full. I changed the session storage to active record, and
generate the relative table in the database, restart the server.
Everything seems working again.
Make sure apache has the permission to access the tmp file.
chmod -R 777 /tmp/passengerXXXX
Rails Fedora Apache Deployment
最新推荐文章于 2025-11-30 17:10:26 发布
本文分享了使用Passenger+Rails+Apache部署项目时遇到的SELinux权限问题及解决方案,同时介绍了如何处理因未清理过期会话导致的应用错误。
3896

被折叠的 条评论
为什么被折叠?



