2010-02-09
# yum update # yum install screen sysstat vim-enhanced subversion # yum install httpd-devel # yum install mysql-server mysql-devel # yum install make # yum install zlib-devel ## for rubygems # yum install openssl-devel ## for passenger # yum install gcc-c++ ## for passenger
# cd /usr/local/src # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.bz2 # tar xjf ruby-1.8.7-p249.tar.bz2 # cd ruby-1.8.7-p249 # ./configure # make # make install
# cd /usr/local/src # wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz # tar xzf rubygems-1.3.5.tgz # cd rubygems-1.3.5 # ruby setup.rb
# gem install rails -v=2.3.5
# gem install passenger # passenger-install-apache2-module LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9 PassengerRuby /usr/local/bin/ruby <VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public # <-- be sure to point to 'public'! <Directory /somewhere/public> AllowOverride all # <-- relax Apache security settings Options -MultiViews # <-- MultiViews must be turned off </Directory> </VirtualHost>
# gem install mysql # /etc/init.d/mysql start
# cd /usr/local/src # wget http://kernel.org/pub/software/scm/git/git-1.6.6.1.tar.bz2 # tar xjf git-1.6.6.1.tar.bz2 # cd git-1.6.6.1 # ./configure --prefix=/usr # make # make install