Skip to content

Instantly share code, notes, and snippets.

@v1nc3ntlaw
Created August 13, 2010 05:42
Show Gist options
  • Select an option

  • Save v1nc3ntlaw/522367 to your computer and use it in GitHub Desktop.

Select an option

Save v1nc3ntlaw/522367 to your computer and use it in GitHub Desktop.
arch linux nginx ror
# reference
# http://github.com/jnstq/rails-nginx-passenger-ubuntu
$ sudo pacman -S base-devel openssl readline zlib
$ mkdir pkgs && cd pkgs
$ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
$ tar zxf ruby-enterprise-1.8.7-2010.02.tar.gz
$ cd ruby-enterprise-1.8.7-2010.02
$ sudo ./installer
$ Enter
$ /opt/ruby-enterprise Enter
$ Enter
$ sudo vi /etc/profile
PATH="/opt/ruby-enterprise/bin:/bin:/usr/bin:/sbin:/usr/sbin"
$ sudo /opt/ruby-enterprise/bin/passenger-install-nginx-module
$ Enter
$ 1
$ /opt/nginx
$ Enter
# Run once more add --with-http_ssl_module --with-http_stub_status_module
$ sudo /opt/ruby-enterprise/bin/passenger-install-nginx-module
$ Enter
$ 2
$ /tmp/nginx-0.7.6
$ /opt/nginx
$ --with-http_ssl_module --with-http_stub_status_module
$ yes
$ Enter
$ sudo pacman -S imagemagick
$ sudo gem install rmagick
# clone ubuntu nginx startup script and modify it
$ git clone http://github.com/jnstq/rails-nginx-passenger-ubuntu.git
$ sudo vi /etc/rc.conf
DAEMONS=(syslog-ng network netfs crond sshd ntpd nginx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment