Questions tagged [mod-rails]
48 questions
21
votes
4 answers
Rails Passenger problem with Apache2
I'm trying to setup a ruby on rails server on ubuntu10.10 with apache2 and mod_rails (Phusion Passenger).
I already installed ruby 1.9.2-p0 and rails 3.0.8 and installed Passenger with the passenger-install-apache2-module and the passenger gem…

Andre Schweighofer
- 2,759
- 1
- 26
- 25
20
votes
4 answers
modrails - rogue ruby processes consuming 100% cpu
I'm having ruby instances from mod_rails go "rogue" -- these processes are no longer listed in passenger-status and utilize 100% cpu.
Other than installing god/monit to kill the instance, can anyone give me some advice on how to prevent this? I…

lamplighter
- 303
- 3
- 7
14
votes
7 answers
is mod_rails or Phusion Passenger finally the answer to Ruby on Rails Deployment?
I read from some books that Phusion Passenger is the answer to easy Ruby on Rails deployment. But my friend said that first there was Apache + bunch of Mongrels, and then lighttpd, and then nginx, and now Passenger, and it seems endless...
he also…

nonopolarity
- 146,324
- 131
- 460
- 740
11
votes
5 answers
Passenger/mod_rails fails to initialize in Fedora 12 when starting Apache
I am in the process of setting up a server to run a Ruby on Rails application on Fedora 12, using Passenger.
I am at the stage where I've installed Passenger, set it up as prescribed, but get the following errors when I restart Apache:
[Wed Jan 13…

Diego Barros
- 2,071
- 2
- 33
- 45
10
votes
3 answers
Rails file upload size limit
Does anyone know a good solution to limit the file upload size when running a Rails application with Passenger/mod_rails. The request should immediately be declined, so that the file doesn't get transferred to the server.
The solutions I've found so…

Mato
- 830
- 2
- 9
- 21
8
votes
3 answers
Is there an easy way to run Garbage Collection outside of the request cycle in Passenger?
Unicorn has OobGC rack middleware that can be used to run GC.start after a certain number of requests.
Is there a similar sort of thing in Phusion Passenger?

eric
- 1,168
- 8
- 18
6
votes
1 answer
How to server multiple sites with nginx/passenger?
I have different websites/applications built with rails, which has different domain names. The thing is I want to serve them from a server with Nginx/passenger. I tried some techniques, but I cannot make them work, basically, I have very few…

gkaykck
- 2,347
- 10
- 35
- 52
6
votes
3 answers
mod_rails and Paperclip problem Paperclip::NotIdentifiedByImageMagickError
I am havingn troble deploying my app to a server runing ubuntu with mod_rails. Runing webrick on the server seems fine and I can save files, no problem. But runing the app thru nginx, I get this error when I try to save a file.
[paperclip] An error…

Cezar Halmagean
- 882
- 9
- 23
5
votes
4 answers
How to monitor passenger / mod_rails processes?
I searched the site already but couldn't find any suitable information. As there is always some expert around I'm sure one of guys knows exactly what I'm searching for :-)
We're on a balanced system:
Machine 1: HAProxy load balancer
Machine 2 &…

Matt
- 1,610
- 2
- 17
- 24
4
votes
1 answer
Boot Apache with Passenger/mod_rails successfully when Fedora starts up
PREMISE and PURPOSE
There is this thread about Passenger/mod_rails fails to initialize in Fedora 12 when starting Apache . Bottom line, the problem is due to the permission, and you can avoid this by calling
setenforce 0
before running
service…

barley
- 4,403
- 25
- 28
4
votes
2 answers
How do I figure out why my rails 3 app, using mod_rails, is so slow?
I've developed a small Rails app, using Rails 3.0.0 and Ruby 1.9.2. During test, on my personal computer, it's performance is fine. I put it on my VPS for production, using Apache and mod_rails, and sometimes the performance is horrible.
Here's an…

Mark Pundsack
- 186
- 1
- 4
4
votes
1 answer
How do I restart phusion passenger?
rails@george:/srv/fsg_distro$ sudo passenger-status
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p…

Tony
- 18,776
- 31
- 129
- 193
4
votes
2 answers
Mod_rails and mongrel running on the same server?
I'm currently running mongrel clusters with monit watching over them for 8 Rails applications on one server.
I'd like to move 7 of these applications to mod_rails, with one remaining on mongrel. The 7 smaller applications are low-volume, while the…

Subimage
- 4,393
- 3
- 24
- 18
3
votes
1 answer
Change the Passenger application pool size at runtime
Is it possible to change the Passenger application pool size at runtime? Ie, without restarting apache, and without disrupting active visitors?
The same time every day we have a background job run. It is very memory intensive. Since during that…

Joel
- 11,431
- 17
- 62
- 72
3
votes
1 answer
Mac OSX Lion Apache + RubyOnRails + mod_passenger
I'm trying to learn how to develop web application with Ruby On Rails but I've incurred in a silly error.
I'm trying to use Phusion Passenger aka mod_rails to use Apache instead of WEBrick; I've installed the module via gem and run the
sudo…

Nicolò Ciraci
- 678
- 5
- 23