Questions tagged [phusion-passenger]
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 webservers and is written in C++.
480
questions
12
votes
1
answer
1k
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 ...
11
votes
1
answer
25k
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 :
<...
10
votes
3
answers
4k
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 ...
9
votes
3
answers
3k
views
Is it possible to use Shibboleth 2 with Nginx + Passenger?
Do you know if it is possible to use Nginx with Shibboleth?
8
votes
2
answers
3k
views
What are the pros and cons of using Nginx over Apache with Rails when using Passenger
Passenger recently got support for Nginx, what are the pros and cons of it over Apache as a web server for Rails applications?
7
votes
2
answers
6k
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 ...
7
votes
2
answers
11k
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 into ...
7
votes
1
answer
2k
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 ...
7
votes
3
answers
5k
views
Proper Passenger + Apache Permissions to fix error "No such file or directory - config/environment.rb"
I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb.
I have searched the web ...
6
votes
1
answer
9k
views
Apache Passenger Resolve Symlinks stopped working | Invalid command
I have a Ubuntu Server (16.04.3 LTS) with Apache 2.4.18 and redmine installed, following this installation guide.
Therefor I edited the ssl.conf in my apache2/sites-available and added those lines:
&...
6
votes
2
answers
2k
views
Elastic Beanstalk Rails - Modify passenger config passenger_max_pool_size
I need to increase the passenger_max_pool_size for my Rails application running on passenger.
I have used Elastic beanstalk for deployment. Any idea, how to go about this? Is there an optionsetting or ...
6
votes
1
answer
1k
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 ...
6
votes
2
answers
7k
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 ...
6
votes
2
answers
13k
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
2
answers
4k
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
1
answer
598
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 ...
5
votes
1
answer
3k
views
Apache+Passenger not serving the root of the Sinatra application
Since the last Fusion Passenger update, all my Sinatra applications have stopped working on the following env: Apache (2.4.17), Phusion Passenger (5.0.21). Everything was working as expected before ...
5
votes
2
answers
15k
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 Passenger 2....
5
votes
1
answer
18k
views
Cannot checkout session because a spawning error occurred
I'm trying to get my Rails app working on my VPS. I've deployed my project, created the database and migrated it. But when I visit the page I get a message:
We're sorry, but something went wrong.
We'...
5
votes
1
answer
5k
views
Setting passenger with Apache virtual hosts?
I am setting up a new server which I intend to host multiple Ruby on Rails applications on.
The server is running Ubuntu 10.04 LTS and I have set the Apache virtual hosts up so each application has ...
5
votes
1
answer
10k
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 ...
5
votes
1
answer
2k
views
Out-of-order chef recipes causing apt package install to fail
I'm writing a Chef recipe to install among other things nginx and Phusion Passenger. The short summary is that the recipes on my run list are not executing in the order I expect, and that's causing an ...
5
votes
2
answers
5k
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 to ...
5
votes
1
answer
5k
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 unix:/...
5
votes
0
answers
4k
views
Unable to apt-get install nginx-extras package on top of nginx 1.7.9
I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website.
I have Nginx installed and running already, version is 1.7.9-1~trusty.
I ...
5
votes
2
answers
2k
views
How to setup Proxy Cache with Nginx and Passenger
I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application.
I don't know what wrong with my configuration....
4
votes
5
answers
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
1
answer
611
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 ...
4
votes
1
answer
2k
views
Elastic Beanstalk with Passenger Standalone: working configuration?
I'm trying to migrate an elastic beanstalk app from Puma to Phusion Passenger. However, Passenger fails at startup with the error:
/opt/elasticbeanstalk/support/conf/nginx_config.erb:48:in `block ...
4
votes
1
answer
1k
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 ...
4
votes
2
answers
4k
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
5
answers
9k
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 ...
4
votes
1
answer
2k
views
Creating a stable, auto-scaling app server cluster
I have two servers, each running anywhere from 50-100 different legacy webapps, written in languages ranging from PHP to Python to Ruby-on-rails to NodeJS.
We're wanting to kill off these machines ...
4
votes
2
answers
9k
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
2
answers
17k
views
passenger-status - ERROR: Phusion Passenger doesn't seem to be running
My server is:
Server version: Apache/2.2.11 (Ubuntu)
Server built: Aug 16 2010 17:44:11
My ruby version ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux].
I've installed passenger 3.0.7 ...
4
votes
1
answer
3k
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 ...
4
votes
1
answer
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
server ...
4
votes
1
answer
2k
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 ...
4
votes
2
answers
3k
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 ...
4
votes
5
answers
4k
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
1
answer
3k
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 ...
4
votes
1
answer
2k
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 ...
4
votes
1
answer
679
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
1
answer
313
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
4
answers
12k
views
puppet master REST API returns 403 when running under passenger works when master runs from command line
I am using the standard auth.conf provided in puppet install for the puppet master which is running through passenger under Nginx. However for most of the catalog, files and certitifcate request I get ...
3
votes
3
answers
12k
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 I'...
3
votes
2
answers
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
4
answers
4k
views
Set environment variables for rails app hosted in nginx/passenger
How do I set environment variables so that they are available to my rails app hosted inside nginx/passenger?
3
votes
1
answer
3k
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
3
answers
9k
views
Redmine install not working and displaying directory contents - Ubuntu 10.04
I've gone through the steps to set up and install the redmine project tracking web app on my VPS with Apache2 but I'm running into a situation where instead of displaying the redmine app, I just see ...