The following are the basic machine configuration options for the front end nodes for the webserver.#

Added directory structure to hold the data and binaries /webdata, note that in the live server /webdata is a mount point to an nfs share

/webdata/data/
/webdata/binaries/
/webdata/data/version_1/
/webdata/data/current/
/webdata/binaries/version_1/
/webdata/binaries/current/

Add a user for the mysql instance, note that the mysql instance for live is on bioinf5

added user mysql

added this line to /etc/my.conf

max_allowed_packet=20M

open ports for rails and the backend

-A RH-Firewall-1-INPUT -m state --state NEW -p udp --dport 3000 -s 128.16.0.0/255.255.240.0 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 3000 -s 128.16.0.0/255.255.240.0 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p udp --dport 8083 -s 128.16.0.0/255.255.240.0 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 8083 -s 128.16.0.0/255.255.240.0 -j ACCEPT

raised ulimit -n to 8192

Install the following packages:

1) ImageMagick (don't forget to /sbin/ldconfig, must be installed to /usr/)
2) Install libyaml

# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
3) Install Ruby 1.9.x 4) Update gems
# sudo gem install rubygems-update
5) check out newpred3
# svn checkout svn+ssh://USERNAME@bioinfdev.cs.ucl.ac.uk/svndata/NewPred3/trunk NewPred3
# cd NewPred3
6) install ruby bundle
# sudo gem install bundle
7) install railties
# sudo gem install railties
8) Install all the sever gems
# cd NewPred3
# sudo bundle install
You may have to install rmagick from source, if so don't forget to run bundle install again
http://rmagick.rubyforge.org/install2-linux.html
http://superuser.com/questions/361435/i-have-compiled-imagemagick-on-my-centos-and-rmagick-wont-install
If you do install rmagick from source you'll also have to add the gem path to the NewPred3 Gemfile something like
gem 'rmagick', '2.13.2', :path => '/usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/'

Now you can reboot the machine

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 21-Mar-2013 16:42 by UnknownAuthor