Created
January 15, 2012 13:40
-
-
Save dsbraz/1615889 to your computer and use it in GitHub Desktop.
Servidor de Desenvolvimento: Instalação Comando-a-Comando
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache + PHP + MySQL + RVM + Ruby + Passenger | |
# Instalação comando-a-comando | |
# Apache + PHP + MySQL | |
apt-get install tasksel | |
tasksel install lamp-server | |
# RVM | |
bash -s stable < <( curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
echo '[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" # Load RVM function' >> /root/.bashrc | |
source /root/.bashrc | |
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion git-core | |
# Ruby 1.9.3 | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
gem install bundler padrino --no-ri --no-rdoc | |
# Passenger | |
passenger-install-apache2-module | |
echo '# Load passenger module' >> /etc/apache2/apache.conf | |
echo 'LoadModule /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger3-0.11/ext/apache2/mod_passenger.so' >> /etc/apache2/apache.conf | |
echo 'PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11' >> /etc/apache2/apache.conf | |
echo 'PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p0/ruby' >> /etc/apache2/apache.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment