Monday, January 25, 2010

Installation

Mainly used instructions from https://help.ubuntu.com/community/RubyOnRails

Some problems with installing and using RubyGems. Followed direction from http://railsforum.com/viewtopic.php?id=34044, which states that I should install from source. Again, ubuntu site had such instructions (wget, tar, etc)

Edit apache config file, /etc/apache2/apache2.conf:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger
-2.2.9/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9
PassengerRuby /usr/bin/ruby1.8

Create new file in /etc/apache2/sites-available/larrychang.dyndns.org:

ServerName ror.myhost.com
DocumentRoot /home/myuser/www/mynewapp/public
RailsEnv development


sudo a2enmod rewrite
sudo a2ensite ror.myhost.com
sudo apache2ctl restart

other notes:
http://httpd.apache.org/docs/2.0/vhosts/examples.html#port
file is at /etc/apache2/apache2.conf
/etc/apache2/sites-available

No comments:

Post a Comment