To what extent does mod_suexec interact with Passenger?
On a shared server (specifically a DreamHost shared server running Debian, but I don’t know if this matters) with mod_suexec activated and with PHP and Python forced to use CGI or FastCGI, would you expect Passenger processes to be run as the Apache user or as the user from whose home directory the Passenger-powered app is run?
Please explain the basis for your answer.
(I’m guessing the latter, for consistency with DreamHost’s approach to PHP and Python, but I’m vague on how Passenger interacts with Apache, let alone with mod_suexec.)
mod_suexec is specific to CGI setups, which a completely different technology from passenger.
Passenger implements its own way of user switching. The user applications are run as is determined broadly according to the following:
- If we are a Rails app, run as the owner of
config/environment.rb. If we are a Rack app, run as the owner ofconfig.ru. - If the determined user would be
root, use the configuredPassengerDefaultUser - If this still would be
root(or unconfigured), run as the user, Apache runs at (e.g.wwwrunorwww-data).
For more information, see http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching
Check more discussion of this question.
Related posts:
Leave a comment
Recent Posts
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address
- 100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)





