litespeed + ruby + rails/tmp/session issue.

nathanc

Well-Known Member
#1
Hello guys,
When my users move their rails applications on to my servers, the rails app directories are chmoded to 755. But that give litespeed a problem because it wants to write a session in the tmp/sessions directory. Is there a way to move the location were litespeed writes this session data, outside the rails app?

Cheers
 

mistwang

LiteSpeed Staff
#2
Looks like you are not running the rails application in suEXEC mode, so you got the permission problem. In suEXEC mode, ruby process starts on behalf of the owner of the rails application, it can write to tmp/sessions directory, it gives you better security as well. Highly recommended.

LiteSpeed has nothing to do with tmp/sessions directory directly, so it is completely managed by the RoR application internal. You have to change rails configuration if you want to do that. :)
 
Top