brichotomy

i have always been regretting that i was not as wise as the day i was born
–thoreau
Feb 22
Permalink
Permalink
Feb 20
Permalink
Feb 19
Permalink
Permalink

ruby 1.9.1 + rails 2.3.5 + nginx 0.7.65 on Centos 5.3 @ slicehost

$ cd ~
$ mkdir src
$ cd src
$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz
$ wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
$ tar xzvf ruby-1.9.1-p376.tar.gz
$ tar xzvf rubygems-1.3.5.tgz

MySQL < 5.1 (as of 2/19/2010):

$ sudo yum install mysql mysql-server mysql-devel

or download from mysql.com:

MySQL-client-community-5.1.43-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.43-1.rhel5.x86_64.rpm
MySQL-server-community-5.1.43-1.rhel5.x86_64.rpm

and do:

$ sudo yum install --nogpgcheck localinstall MySQL-devel-community-5.1.43-1.rhel5.x86_64.rpm
$ sudo yum install --nogpgcheck localinstall MySQL-server-community-5.1.43-1.rhel5.x86_64.rpm
$ sudo yum install --nogpgcheck localinstall MySQL-client-community-5.1.43-1.rhel5.x86_64.rpm
$ cd ruby-1.9.1-p376/
$ ./configure && make && sudo make install
$ cd ~/src/rubygems-1.3.5/
$ sudo ruby setup.rb
$ cd ~/src
$ sudo gem install rails
$ sudo gem install mysql
$ wget http://nginx.org/download/nginx-0.7.65.tar.gz
$ tar xzvf nginx-0.7.65.tar.gz
$ sudo gem install passenger
$ passenger-install-nginx-module

When asked to install nginx, if the version is less than 0.7.65, do it custom and give ~/src/nginx-0.7.65/ as path to source. When asked for prefix:

--prefix = /usr/local

Additional configuration arguments for nginx compile:

--sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid  --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --&& make --&& sudo make install
$ cd ~/src
$ wget http://kernel.org/pub/software/scm/git/git-1.7.0.tar.gz
$ tar -xzvf git-1.7.0.tar.gz
$ cd git-1.7.0/
$ ./configure && make && sudo make install
Feb 18
Permalink
Feb 17
Permalink
Jan 21
Permalink
Jan 20
Permalink
Permalink