install

Install Ruby 1.9 on CentOS

Unfortunately, CentOS 5.5 comes with a very old version of Ruby: 1.8.5. Even the latest rubygems require at least 1.8.6 to install. To make things more dire, centos-test and rpmforge yum repos do not carry a more up-to-date Ruby version.

If you are fine upgrading to just 1.8.6, and want to use Yum, see my blog post: Installing Ruby 1.8.6 on CentOS with Yum, otherwise following is how to install Ruby 1.9.2 from sources:

Tutorial: Installing Django 1.1. on CentOS 5.4

This step-by-step tutorial walks you through the installation of Django 1.1 with Apache and MySQL. on CentOS 5. The example VPS used during the walk-through is the popular SliceHost from RackSpace ™ The steps involved should be quite similar for any properly installed CentOS 5.x (or RedHat EL 5.x).

We use the latest stable version of Python: 2.6 and mod_wsgi (far superior alternative to mod_python), in this tutorial. Django is not, yet, compatible with Python 3.x branch (few things are).

Installing Webmin Securely with SSL on CentOS 5.2

# yum install openssl
# yum install openssl-devel
# yum install perl
# yum install perl-Net-SSLeay perl-Crypt-SSLeay
# rpm --import http://www.webmin.com/jcameron-key.asc

Create the /etc/yum.repos.d/webmin.repo file containing :

[webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=0

Then run:

# yum --enablerepo=webmin install webmin

Check installation success with:

/etc/init.d/webmin status

If everything is good and webmin is running access it via:
https://yourdomain.com:10000/

CCK Import During Install

We've blogged about hardcore Drupal Form Manipulations using CCK Node Types and hooks. If it is part of your module (as it should) you need to install CCK type during module setup. In the .install file of that module you can import CCK definition with a code like:

function ourmodule_CCK_install() {

	$modulepath = drupal_get_path ('module', 'ourmodule');	
	$cck_definition_file = $modulepath."/custom.cck";

  $values['type_name'] = '<create>';
  $values['macro'] = file_get_contents($cck_definition_file);
  
  include_once( drupal_get_path('module', 'node') .'/content_types.inc');
  include_once( drupal_get_path('module', 'content') .'/content_admin.inc');
  
  drupal_execute("content_copy_import_form", $values); 
}

where custom.cck under your module folder is the file that you can export from CCK if you have cck_content_copy module installed.

Syndicate content