litespeed + ruby + rails/tmp/session issue.

Discussion in 'Ruby/Rails' started by nathanc, Jul 5, 2007.

  1. nathanc

    nathanc New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    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. :)
  3. nathanc

    nathanc New Member

    Thanks

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

Share This Page