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
最新推荐文章于 2024-08-07 18:03:17 发布