Created
December 7, 2011 22:32
-
-
Save rtacconi/1445034 to your computer and use it in GitHub Desktop.
Install Percona Server, Apache and Passenger on Ubuntu 10.04
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
#!/bin/bash | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A | |
gpg -a --export CD2EFD2A | sudo apt-key add - | |
echo 'deb http://repo.percona.com/apt lucid main' >> /etc/apt/sources.list | |
echo 'deb-src http://repo.percona.com/apt lucid main' >> /etc/apt/sources.list | |
apt-get update | |
apt-get -y install percona-server-server-5.5 | |
apt-get install -y apache2-prefork-dev libapr1-dev apache2 | |
apt-get install -y libcurl4-openssl-dev | |
gem install passenger | |
passenger-install-apache2-module | |
echo " " >> /etc/apache2/apache2.conf | |
echo 'LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/ext/apache2/mod_passenger.so' >> /etc/apache2/apache2.conf | |
echo 'PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11' >> /etc/apache2/apache2.conf | |
echo 'PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p0/ruby' >> /etc/apache2/apache2.conf | |
apt-get install -y libmysql-ruby libmysqlclient-dev | |
gem install bundler | |
gem install capistrano | |
gem install mysql2 | |
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment