Created
February 7, 2011 16:38
-
-
Save DixcomWeb/814679 to your computer and use it in GitHub Desktop.
Most of the necessary installs and configurations for setting up a News Cloud EC2 instance
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
# Update and install packages | |
sudo aptitude update | |
sudo aptitude safe-upgrade | |
sudo aptitude install apache2 build-essential libapache2-mod-passenger linux-headers-generic git-core zlib1g-dev libmysqlclient-dev | |
# Install Latest Ruby | |
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p136.tar.gz | |
tar -xzf ruby-1.9.2-p136.tar.gz | |
rm -f ruby-1.9.2-p136.tar.gz | |
cd ruby-1.9.2-p136/ | |
sudo ./configure | |
sudo make && sudo make install | |
cd ext/zlib | |
sudo ruby extconf.rb | |
sudo make && sudo make install | |
# Initialize ruby gems | |
sudo gem update --system | |
sudo gem install bundler | |
# Prepare server for News Cloud | |
# in /etc/apache2/sites-available/000-default | |
#<VirtualHost *:80> | |
# ServerAdmin webmaster@localhost | |
# DocumentRoot /srv/www/newscloudcms/current/public | |
# ErrorLog /srv/www/newscloudcms/shared/log/error.log | |
# CustomLog /srv/www/newscloudcms/shared/log/access.log combined | |
# LogLevel warn | |
# | |
# <IfModule mod_passenger.c> | |
# PassengerEnabled On | |
# RailsEnv development | |
# PassengerHighPerformance On | |
# PassengerMaxPoolSize 20 | |
# PassengerPoolIdleTime 0 | |
# </IfModule> | |
# | |
# <Directory /> | |
# Options FollowSymLinks | |
# AllowOverride None | |
# </Directory> | |
# | |
# <Directory /srv/www/> | |
# Options Indexes FollowSymLinks MultiViews | |
# AllowOverride None | |
# Order allow,deny | |
# allow from all | |
# </Directory> | |
# | |
#</VirtualHost> | |
sudo mkdir -p /srv/www/newscloudcms | |
sudo chown ubuntu:ubuntu /srv/www/newscloudcms | |
# set up capistrano and run deploy:setup and cap deploy | |
# you will likely need to setup shared keys for GitHub | |
# and will need to make a request from the console of | |
# the server manually so the remote host fingerprint | |
# can be added to the known hosts file | |
sudo apache2ctl graceful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment