Setting up fedora first
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*
sudo yum update
sudo yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp gcc gcc-c++
Install Ruby
sudo yum install ruby ruby-devel rdoc irb
Install rubygems
Download from http://rubyforge.org/frs/?group_id=126
tar xzvf rubygems*.tgz
cd rubygems*
sudo ruby setup.rb
Install Rails
sudo gem install rails
Install postfix and svn
sudo yum install postfix subversion
Install MySQL
sudo yum install mysql mysql-devel mysql-server
chkconfig –levels 235 mysqld on
sudo /etc/init.d/mysqld start
sudo /sbin/service mysqld start
sudo mysqladmin -u root password ‘new-password’
sudo yum install libmysql-ruby1.8
sudo gem install mysql
Install Nginx
sudo yum install nginx
sudo /etc/init.d/nginx start
Install Thin
sudo gem install eventmachine
sudo gem install thin
sudo thin install
sudo /sbin/chkconfig –level 345 thin on
Install Git
sudo yum install git
After trying out various web control panels, I finally settled on webmin.
I was looking for an open source / free web control panel that would allow users easily set up websites via virtual hosts and ftp accounts
Here are the steps to get it up and running quickly. This has to be done on a fresh new slice and not one that is already hosting other websites.
That’s all! You’ll be able to view your site via https://xxx.xxx.xxx.xxx:10000
http://ispconfig.com/manual_installation.htm
http://www.howtoforge.com/perfect-server-ubuntu8.04-lts
If you hit some errors, u probably forgot some of this:
http://www.howtoforge.com/forums/showthread.php?t=9582&
rm /bin/sh (or if you want to be safe: mv /bin/sh /bin/sh.dash)
ln -s /bin/bash /bin/sh
aptitude install libmysql++-dev
aptitude install mysql-server mysql-client libmysqlclient15-dev
aptitude install libhtml-parser-perl libdb-file-lock-perl libnet-dns-perl
/etc/ftpd.conf
enable local_umask = 022
To uninstall (if you hit errors and need to reinstall)
rm -rf /root/ispconfig
rm -rf /home/admispconfig
Setting up your domains to point correctly
http://www.howtoforge.com/ispconfig_dns_providerdomain_schlund
use everydns.com if you need to
Proftpd
DefaultRoot ~
IdentLookups off
ServerIdent on “FTP Server ready.”
http://blog.caboo.se/articles/2007/2/23/adding-timezone-to-your-rails-app
http://weblog.redlinesoftware.com/2007/6/18/rails-timezone-s
For rails 2.1 onwards, just change environment.rb
eg.
config.time_zone = ‘Singapore’
sudo aptitude install imagemagick
sudo aptitude install libmagick9-dev
sudo gem install rmagick
sudo gem install mini_magick
Install RMagick on OSX
http://benr75.com/articles/2008/03/16/install-rmagick-on-mac-os-x-leopard-from-source
Tags: Rails