Mitwirkender: Vinayan Ruby enterprise edition can be installed on the server using the following steps : $ wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz
$ tar -zxvf ruby-enterprise-1.8.7-2010.01.tar.gz PS: Make sure that the patch is installed on the server. If it doesn’t exist then install it via yum.
$ yum install patch
$ ./ruby-enterprise-1.8.7-2010.01/installer Once the ruby enterprise edition is installed , the following message will appear : “Ruby Enterprise Edition is successfully installed!”
Apache module for passenger can be installed on the server by executing the following command : $ /opt/ruby-enterprise-1.8.7-2010.01/bin/passenger-install-apache2-module Add the following entries in an include file (say, /usr/local/apache/conf/mod_rails.conf) to load the mod_passenger.so file. LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.soPassengerRoot /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
PassengerMaxPoolSize 30
PassengerMaxInstancesPerApp 1
PassengerPoolIdleTime 60
RailsAutoDetect off PS: PassengerMaxPoolSize can be set to 30 for a sever which is having a minimum RAM of 2GB. Also, include the mod_rails.conf to the apache configuration file by adding the following line to it : Include “/usr/local/apache/conf/mod_rails.conf” Reference: http://www.modrails.com/documentation/Users guide.html After restarting the apache webserver you can see the passenger process running under the user root:
root 31908 0.0 0.1 3640 1484 ? Sl 00:40 0:00 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/ApplicationPoolServerExecutable 0 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/bin/passenger-spawn-server /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /tmp/passenger.5338 Configuring a rails app under Passenger It can be done by adding the following entries to the virtual host entry of the domain corresponding to the rails app :
RailsBaseURI /
PassengerAppRoot /home/username/railsapp Also, make sure that the DocumentRoot is pointing to the public folder of the app.
Nehmen Sie Kontakt mit uns auf.