Archive for the tag 'Centos'

CentOS Cpanel Quick Install CD ISO Images & kickstart file

CentOS-5.4-i386-cPanel.iso (Wed Feb 24 22:31:12 2010)
CentOS-5.4-x86_64-cPanel.iso (Wed Feb 24 22:32:13 2010)

Sample kickstart file for automated CentOS Linux installs:

http://httpupdate.cpanel.net/cpanel-ks.cfg

SBDavid

Installing Ruby on Centos with Yum

Installing Ruby on Centos with Yum

Ruby on Rails is an open-source web framework that’s optimizied for programmers happiness and sustainable productivity.

How to upgrade to the minimal requirement.

The below instructions are for 32-bit architecture.

#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
#rpm -Uvh http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm
#yum install ruby ruby-shadow ruby-ri ruby-rdoc gcc gcc-c++ ruby-devel -y
#ruby -v

RubyGems

You can download and then install RubyGems from:

http://rubyforge.org/projects/rubygems/

You will see a list of all files for the project.

#wget http://rubyforge.org/frs/?group_id=126&release_id=43601
#tar xzvf rubygems-1.3.7.tgz
#cd cd rubygems-1.3.7
#sudo ruby setup.rb
#gem –version

CentOS Quick Install CD ISO Images from Cpanel

The ISO files can be downloaded from:

http://layer1.cpanel.net/CentOS-5.4-i386-cPanel.iso

http://layer1.cpanel.net/CentOS-5.4-x86_64-cPanel.iso

Sample kickstart file for automated CentOS Linux installs: http://httpupdate.cpanel.net/cpanel-ks.cfg

How to upgrade Mysql on Plesk with CentOS Linux

The procedure for upgrade of Mysql is quite simple.

wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh

How to upgrade:

yum –enablerepo=atomic-testing upgrade mysql

–enablerepo=repoidglob
Enables specific repositories by id or glob that have been disabled in the configuration file using the enabled=0 option.

To upgrade php run ‘yum upgrade php

With the above methods mysql will be upgraded to latest release.

Ruby on Rails and rubygems install on CentOS

Ruby on Rails install on CentOS

Once you have the development tools package installed. You can go ahead and install Ruby on Rails. The main ruby packages and dependencies will be installed using the ‘yum’ package manager, but rubygems will be installed from source. Rubygems is not readily available through the repositories in yum.

Install ruby.

Main Ruby on Rails packages can be installed using the below method.

sudo yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri

Once done, we can have a look at the Ruby version.

$ ruby -v
ruby 1.8.8dev (2010-02-11) [i686-linux]

Installing rubygems for Rails installation.

Download from: http://rubyforge.org/projects/rubygems/

wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz

Now unpack it and move into the newly created folder.

Now we can go through the simple process of compiling it:

sudo ruby setup.rb

Once done, we can check the gem version with a:

$ gem -v
1.3.7

NOTE:

http://rubygems.org is now the default source for downloading gems.

* `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a matching one couldn’t be found.

Next »