Install Apache2 PHP + RVM/Passenger Ruby in Ubuntu 12.04 (Linode)

Read this in order to start well

Install Apache + PHP

Install nginx stuff as root

apt-get update

apt-get install curl git-core python-software-properties

add-apt-repository ppa:nginx/stable

apt-get install update

sudo apt-get install build-essential git-core curl libmysqlclient16-dev nodejs

To install Apache (with PHP if you want to)

Create a deployer user and add a group admin (sudoers)

addgroup admin

Add user as a deployer:

adduser deployer

adduser deployer admin

su deployer

Install mercurial (if needed)

apt-get install mercurial

Install mysql

apt-get install mysql-server

Install RVM

sudo bash -s stable < <(curl -s

reload config

source /etc/profile.d/

Check requirements and install missing packages

rvm requirements

Install RVM

rvm install 1.9.3
rvm –default use 1.9.3

source /usr/local/rvm/scripts/rvm rvm –default use 1.9.3
ruby -v

Install Rails

gem install rails
gem install mysql

Before installing passenger:

sudo apt-get install libcurl4-openssl-dev apache2-prefork-dev libapr1-dev  libaprutil1-dev

Install passenger:

gem install passenger

passenger-install-apache2-module — (follow instructions)

sudo adduser deployer rvm

Deploy with capistrano

cap deploy:check
cap deploy:setup — (first time)
cap deploy:cold — (to install the DB)
cap deploy:migrate –(installs migrations)
cap deploy — normal behaviour


4 responses to “Install Apache2 PHP + RVM/Passenger Ruby in Ubuntu 12.04 (Linode)

  1. I blog as well and I’m crafting a thing comparable to this particular article,
    “Install Apache2 PHP + RVM/Passenger Ruby in Ubuntu 12.
    04 (Linode) | php commit”. Do you really mind in the event I actuallyutilise a little of your suggestions?
    Thanks a lot ,Carley

  2. I am really enjoying the theme/design of your web site. Do you ever run into any web
    browser compatibility problems? A small number of my blog readers have complained about my website
    not operating correctly in Explorer but looks great in Chrome.
    Do you have any solutions to help fix this issue?

  3. Povenmire started with all the season two episode, “Road to Rhode Island”.

    re putting on an act; and would most likely prefer the real you.
    Considering there are obviously no live or big named
    actors to spend, this makes family guy quite a profitable venture,
    and thus we need to see more and more from it in the future.

  4. What if I told you there was a wonderfully legitimate means to
    get free Nintendo Points. However not all cases of domestic abuse have
    happy endings. This was something was not that has been acceptable towards the producers in the show, this also laid ground for the tiffs that were
    to carry on for a really very long time, together and Biel.

Leave a Reply to cartoon Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s