E-Smith/SME Drupal CMS HowTo
Author:  Ruwan Jayasinghe <rjayasin**lausd.k12.ca.us>
Contributor: Darrell May , NightSpirit
Release supported: SME 5.6U4
License: GPL
Last updated: October 8, 2003
RJ
Problem:  You want to use Drupal as a CMS on your SME 5.6 Server

Solution:  Follow this Howto

STEP 1: Download and undo this tarball:
 
[root@e-smith root]# mkdir drupal
[root@e-smith root]# cd drupal
[root@e-smith drupal]# wget http://drupal.org/drupal/drupal-4.2.0.tgz
[root@e-smith drupal]# tar –xzvf drupal-4.2.0.tgz



STEP 2: Create an Ibay (Read/Write-Admin, Local Access-No Password, CGI-Yes) using E-Smith Web manager or the script below.
 
#!/bin/bash
##
##Adapted from http://www.contribs.com/contribs/nightspirit/RPM-scripts/ibays-create.txt
##
echo "creating ibay 'drupal'"
  /sbin/e-smith/db accounts set drupal ibay Name "drupal"
  minUid=$(/sbin/e-smith/db configuration get MinUid)
  let "uid=minUid+1" 
  while grep -q :$uid:$uid: /etc/passwd
  do
     let uid=uid+1
  done
  /sbin/e-smith/db accounts setprop drupal Uid $uid Gid $uid
  /sbin/e-smith/db accounts setprop drupal PublicAccess local
  /sbin/e-smith/db accounts setprop drupal UserAccess wr-group-rd-group
  /sbin/e-smith/db accounts setprop drupal PasswordSet no CgiBin enabled
  /sbin/e-smith/db accounts setprop drupal Group Admin
  /sbin/e-smith/signal-event ibay-create drupal

STEP 3: Move the extracted Drupal files to ibay
 
[root@e-smith root]# cd /home/e-smith/files/ibays/drupal/html
[root@e-smith html]# mv /root/drupal/drupal-4.2.0/* . 


STEP 4: Edit /home/e-smith/files/ibays/drupal/html/includes/conf.php
 
[root@e-smith root]# pico /home/e-smith/files/ibays/drupal/html/includes/conf.php

## In this file change db-user:password [drupal:drupal] to something else

$db_url = "mysql://drupal:drupal@localhost/drupal";

## Change baseurl to your e-smith server IP or domain

$base_url = "http://192.168.1.1/drupal"; 
##OR
$base_url = "http://www.intranet/drupal"; 
 


STEP 5: Setup Mysql
 
## Create the Mysql database
[root@e-smith root]# mysqladmin create drupal

## Set permissions for a user called "drupal" using password "drupal" (Or use what was specified in Step4)
[root@e-smith root]# mysql
mysql> GRANT ALL ON drupal.* TO drupal@localhost IDENTIFIED BY "drupal";
mysql> flush privileges;
mysql>quit;

## Setup the database structure
[root@e-smith root]#mysql drupal < /home/e-smith/files/ibays/drupal/html/database/database.mysql



STEP 6: Access Drupal
 
Try http://192.168.1.1/drupal/

## Drupal uses role based administration. Use the link below to create a user[admin]
http://192.168.1.1/drupal/?q=admin

## Setup an admin "role"
http://192.168.1.1/drupal/?q=admin/user/role

## Give all permissions to "role" admin
http://192.168.1.1/drupal/?q=admin/user/permission

## Edit admin account and change "role" to "admin"(at the bottom)
http://192.168.1.1/drupal/?q=admin/user/edit/1



Notes: On using moderators and other.
 
If you plan to let others have editorial control, create a "role" called "moderator" and set 
appropriate permissions.Now assign this role to any user who needs this facility. 

More info here.. http://drupal.org/node/view/253 

If you would like to try other CMSs' 

try, http://www.opensourcecms.com/index.php OR http://www.cmsinfo.org

## (I plan to use this in my classroom for group projects(books), Discussions, and as a general news center.)

See who's visiting this page. View Page Stats
See who's visiting this page.