Executing user of ruby app

Discussion in 'General' started by theWeird, Mar 18, 2011.

  1. theWeird

    theWeird Member

    Hey there,
    I've got the following scenario:

    I succeeded in installing and running Redmine with mod_passenger on an ISP3-managed Debian Squeeze server (yes, I made notes and will publish them next days)

    There is a plugin for roundcube that auto-creates git repositories on a gitolite or gitosis server for new projects and manages the public keys of the users as well as their access rights on the repositories.

    To be able to do that there must be a file ~/.ssh/id_rsa containing the private rsa key that matches the public key on the repository server.

    So I need to find out which user is running the ruby application with mod_passenger.

    Same rules as on normal PHP sites?
    Application is runned by www-data as long as SuEXEC is not set?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess it will run always under the www-data user, as ruby uses mod_ruby which is similar to mod_php. Suexec can only change the user for cgi / fcgi processes but not for apache modules.
  3. al3xnull

    al3xnull New Member

    I'm interested in how you got everything up and going. Running into an issue now. Currently running nginx on the side to allow developers to work, but I would like to know if there is a way for ISPConfig3 to play nice.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig requires apache, so you will have to replace nginx with apache if you want to use ISPConfig.
  5. al3xnull

    al3xnull New Member

    I know it require apache. We are currently running ISPConfig3. We have an nginx server sitting on the side performing Sinatra/RoR tasks that ISPConfig3 doesn't play nice with.

    Just curious if it is possible to have them play nice or if ISPConfig3 will require us to using nginx for the foreseeable future.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Which problems do you have with ror? ISPConfig writes just a standard vhost and that can be completely customized by editing the vhost master template. So evrything that is works with apache should work with ispconfig as well.
  7. al3xnull

    al3xnull New Member

    I think mod_rails is playing nice while using the .htaccess file.

Share This Page