LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > litespeed + ruby + rails/tmp/session issue.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2007, 01:42 PM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
Default litespeed + ruby + rails/tmp/session issue.

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
Reply With Quote
  #2  
Old 07-05-2007, 01:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 07-05-2007, 03:42 PM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
Default Thanks

That worked like a charm. You guys very good in responding. Thank you very much.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:10 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.