On the second thing - there is one design issue with mod_passenger - some code is running within httpd context. It's by design of mod_passenger and we cannot really do about it. Let me ask again tomorrow to confirm this.