Phusion Passenger (originally called mod_rails or mod_rack) is a Rails application server designed for easy deployment and low maintenance hosting of Rack apps, including Rails, Sinatra, Camping, and other ruby-based web development micro-frameworks. Passenger supports both Apache and NGinx ...

learn more… | top users | synonyms (1)

11
votes
1answer
425 views

Different ways to restart Apache?

I've got an Apache question here. For my entire career as a developer, I've been restarting Apache like this: sudo /etc/init.d/apache2 restart I just today deployed my first Rails application, but ...
8
votes
3answers
3k views

How to run Gollum using mod_rails and Apache in a shared hosting environment (e.g. Dreamhost)?

Gollum is GitHub's new wiki engine written in Ruby. Deployed locally it uses a Sinatra instance to provide a web interface. Is it possible to run it in a shared hosting environment such as Dreamhost ...
7
votes
2answers
1k views

Is it possible to use Shibboleth 2 with Nginx + Passenger?

Do you know if it is possible to use Nginx with Shibboleth?
7
votes
1answer
1k views

How to monitor passenger with monit

I want to set up monit to monitor passenger but everything I've found so far has basically said just monitor your website using monit. If possible I'd like to monitor passenger directly so I have more ...
6
votes
2answers
6k views

Apache2 server does not start cannot pen shared object file

I am working with Apache and Passenger for a Rails project. And a during a restart I got the following error Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so ...
6
votes
2answers
10k views

How to set up Apache with Passenger (mod_rails) on Mac OS X?

I'm an iOS developer, so I have very little experience with Apache and RoR, and it's the first time I'm trying to use Mac OS X as server. http://rubyonrails.org/deploy recommends using Phusion ...
6
votes
2answers
3k views

What should my Nginx rewrite rules be for Rails with Passenger for page caching in a subdirectory?

I'm using Nginx 0.7.64, Passenger 2.2.9, Rails 2.3.5. I have my page caching directory set to /public/cache, and I'd like to be able to serve cached pages when requested over HTTP, but always hit the ...
6
votes
1answer
2k views

Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream

I have an Nginx and Passenger setup that is proving problematic. At relatively low loads the server seems to get backed up and start churning results like this into the error.log: connect() to ...
5
votes
2answers
4k views

Passenger + nginx: application doesn't run in production mode

I'm using Passenger + Nginx to run a Rails app. If i use "rails_env development;" the application works fine. But if i run in production mode, i get "We're sorry, but something went wrong.". I did ...
4
votes
5answers
5k views

Running Ruby on Rails App on Apache + Passenger == to much memory

I'm running redmine (a RoR app) on my server using passenger / Apache 2.2. Passenger and ruby are using way too much memory. Is there a more memory effective way to run redmine/ruby? I only need to ...
4
votes
2answers
2k views

Firefox and Chrome keeps forcing HTTPS on Rails app using nginx/Passenger

I've got a really weird problem here where every time I try to browse my Rails app in non-SSL mode Chrome (v16) and Firefox (v7) keeps forcing my website to be served in HTTPS. My Rails application ...
4
votes
2answers
2k views

Installing Phusion Passenger 4.0.20 on Ubuntu 13.10

So I'm trying to install Passenger on the newest version of KUbuntu (13.10). I installed Apache2 using the apache2-mpm-worker package using the Muon Package Manager. And these are the commands I ran. ...
4
votes
2answers
7k views

Multiple Rails sites using Passenger and VirtualHosts?

What I am trying to do is run multiple Rails apps from a server machine at work. We dont have multiple hostnames for the box. We want to host some rails apps on it as well as our php apps. Currently ...
4
votes
1answer
2k views

How to achieve zero downtime with Passenger 3?

In the technology preview posts about Passenger 3 they discussed zero downtime: In Phusion Passenger 3 we’ve implemented zero-downtime web server restart. Phusion Passenger and the web ...
4
votes
1answer
3k views

How do I set up mod_auth_cas for a VirtualHost?

I have the following in /etc/apache2/httpd.conf: Include /private/etc/apache2/passenger_pane_vhosts/*.conf I have the following in /etc/apache2/passenger_pane_vhosts/my_site.conf: LoadModule ...
4
votes
5answers
3k views

Passenger 2.2.4, nginx 0.7.61 and SSL

Has anyone had any luck configuring Passenger and nginx with SSL? I've spent hours trying to get this configuration working as I'd like, using what few resources there are out there on the net, and I ...
4
votes
2answers
2k views

Unable to start the Phusion Passenger watchdog

I'm trying to install Passenger (mod_rails) on Apache2 server by using the command 1. gem install passenger 2. passenger-install-apache2-module Passenger gets installed and i added the below line ...
4
votes
1answer
352 views

Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?

I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app. I ...
3
votes
1answer
254 views

What does this log mean?

While my application is running (with a lot of traffic), I see this in error log but I dont even understand what it is about. I guess it's optimizing some configuration but I need a more formal ...
3
votes
3answers
5k views

Apache mod_headers not working

I have a Rails application served using Apache 2 and Phusion Passenger. As a security measure I'm trying to supress all server-related HTTP headers. I've successfully turned off the Apache ones, but ...
3
votes
2answers
2k views

Apache Passenger with Rails 3 Environment?

I'm running a new Rails 3 app through Apache Passenger, and am trying to run it in the stage environment. I have my configuration file set up properly according to the documentation as well as ...
3
votes
1answer
185 views

swap space when installing phusion passenger

I tried to install Phusion Passenger and since I had less than 1GB free memory it recommended temporarily adding swap space with there commands: sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo ...
3
votes
1answer
1k views

Setting PassengerDefaultRuby in Apache2

I'm experiencing a server error, which tells me that it cannot detect essential gems such as rake. Research suggests that there's a miscommunication between Phusion Passenger and RVM. RVM recommends ...
3
votes
1answer
223 views

Is there a backend-aware load balancer for Rails/Passenger?

We have 3 Ruby on Rails applications (A, B and C) installed on a number of application servers. Our front end is HAProxy, backend is Apache + Phusion Passenger. Originally we had all 3 Rails apps ...
3
votes
1answer
1k views

Monit is restarting apache2, should I fix the monit config, or the server config?

Monit is restarting apache2 frequently, based on the totalmem > 200m test in my apache2 stanza. I'm not sure that I actually have a problem, or if I should increase the totalmem test in my monit ...
3
votes
1answer
1k views

Cannot install passenger with Nginx

I have a rack application that I want to migrate from Ruby 1.8.7 + Apache + passenger to Ruby 1.9.1 + Nginx + passenger. I have made up the following script for a quick install all in one, and it ...
3
votes
1answer
782 views

many instances of apache get spawned with Passenger/Rails

I have a Debian Linux VPS server for my production website (512MB). I'm using Phusion Passenger with Apache to service my Rails 2.3.4 application with Ruby 1.9. I'm limiting the pool of Phusion ...
3
votes
1answer
132 views

TCP 443 Connection goes into server but never reaches Apache2 (Passenger)

We have some weird problems, when external servers try to connect to our Website on Port 443(TCP) which is an Apache2+Passenger and a Rails Application. The problem only happens rarely. I started to ...
3
votes
1answer
2k views

Rails Passenger Nginx cannot load such file — bundler

I have set up Rails, Passenger, nginx, and PostgreSQL on Ubuntu Server 12.04LTS. Upon trying to access the application/website, however, I am greeted with an error page saying that the application ...
3
votes
1answer
138 views

Passenger fails to run on first load, but successfully launches after single refresh

I have a pretty simply passenger installation on my production server. It seems that every night the passenger process quits due to inactivity. When I hit the site in the morning, passenger starts up ...
3
votes
1answer
1k views

502 Bad Gateway error after failed requests using Passenger

I've got a staging server running nginx 1.0.5 using Rails 3.1 under Passenger 3.0.9. The problem is that a request sent just after one where there's an application error return 502 Bad Gateway. To ...
3
votes
1answer
2k views

Nginx with Passenger behind HAProxy causes 503 errors

Over the last month I was forced to learn a lot of things about server configuration, integration, AWS, etc. I have never done these to this extent. I got everything up and running well for my app ...
3
votes
1answer
124 views

Is it normal to have a Ruby process always running in Ubuntu?

I'm running Ubuntu 10.10 with Apache2, RVM (For Ruby) and Passenger (mod_rails). When I look at the "top" application, I always notice the same Ruby process consuming about 1/4 of the memory on my ...
3
votes
1answer
2k views

How to change the temporary upload directory nginx/passenger?

When a user uploads /tmp/stream* files are created during the upload. How do I can I change the temporary upload directory from: /tmp to: /home/user/tmp Running: nginx 0.8.53 Phusion ...
3
votes
1answer
1k views

How can I only serve https using passenger 2.2.9, nginx 0.7.65, and sinatra 0.94?

I'm trying to deploy a website with only https access, no http access. I'm sure that I'm just missing some simple line in a configuration file. As the title says, it's Sinatra 0.9.4 on nginx 0.7.65 ...
3
votes
1answer
142 views

Running Ruby methods via cron having issues

So I have a method that is run every 10 minutes (Background.cron) to be exact. Background.cron loops through a set of database rows and if certain criteria are met, an ActionMailer method is run to ...
3
votes
1answer
61 views

Sharing HTTP session data in Passenger/Rack - What's the Best Current Practice?

My company has a customer-facing web application distributed across several servers for the purpose of load balancing and fault tolerance. The application is written in Ruby (Rack, running under ...
3
votes
1answer
227 views

Installation issues with Passenger with Apache on OS X 10.8

I'm trying to get Passenger working on Mountain Lion after the upgrade from 10.7, but I'm having issues when running passenger-install-apache2-module: g++ ext/apache2/HelperAgent.cpp -o ...
3
votes
1answer
722 views

Why is my Rails application hanging?

I have a Rails application of moderate complexity running under Apache/Passenger which becomes unresponsive after periods of idleness. It takes several minutes to respond, but can be temporarily ...
3
votes
1answer
239 views

passenger and apache memory usage

On a "CentOS release 6.2 (Final)" server (with Ruby 1.9.3 and Rails 3.2), and using more memory than expected. Looking at passenger-memory-stats I see a couple of HUGE httpd processes... any thoughts ...
3
votes
1answer
140 views

Application specific environment on the same server in Nginx/Passenger

I have two Rails applications (say app1 and app2) deployed using Nginx/Passenger. The server definition in nginx.conf looks like this: server { rails_env demo; client_max_body_size ...
3
votes
0answers
162 views

Rails with phusion passenger and wordpress

We had a site developed using on ruby on rails. It had Website Web services for mobile app Admin panel to manage data. We started using wordpress to manage site content. We have finished ...
3
votes
1answer
381 views

Nginx + Passenger : stop file uploads timing out after 30 seconds

I have a ruby app which runs under passenger and nginx. If i try to upload a largish file (eg 15+ meg), when it gets to 30s in, the upload restarts (according to chrome) and at the end of the next 30 ...
2
votes
3answers
2k views

Nginx + Passenger, getting truncated responses

Getting truncated responses for big attachments in Redmine, served by Nginx + Passenger. Error log says like following: [ pid=11234 thr=3070954384 file=ext/nginx/HelperAgent.cpp:568 time=2010-11-23 ...
2
votes
4answers
5k views

Curl development headers with SSL support for Phusion Passenger 3

I'm trying to install phusion passenger nginx module, but it fails # passenger-install-nginx-module * Curl development headers with SSL support... not found ... yum install curl-devel Setting up ...
2
votes
3answers
2k views

Multiple Rails apps on same subdomain?

I recently decided to try out Rails. When working with PHP, I simply had all of my PHP projects in the same directory. For example, I may have http://ubuntu/app1, http://ubuntu/app2, etc. I created a ...
2
votes
4answers
553 views

Really high load readings while the server seems indle

I was wondering if any of You encountered such an issue, that the reported load of the server is really high though none of the parameters seems to indicate that its busy at all. I would need to check ...
2
votes
5answers
1k views

Why is my Rails app under Passenger occasionally grinding to a halt?

I have a Rails 2.3.2 app running on Apache with Passenger, and recently, the strangest thing has started happening. Every so often, the app will just stop processing requests entirely and they'll all ...
2
votes
1answer
293 views

Nginx, setup https

I'm trying to setup https on my ubuntu server with NGINX ver 1.4.7 and Phusion Passenger 4.0.41. I created .key and .csr using these two commands sudo openssl genrsa -des3 -out server.key 2048 sudo ...
2
votes
1answer
6k views

Where do Passenger logs go?

I have a Rails application running on CentOS with Apache/Passenger, and I have a little problem: I don't have any logs for my Rails Application, What am I missing? This is my apache conf : ...