Coppermine Photo Gallery on 
E-Smith/SME HowTo
Author:  Ruwan Jayasinghe <rjayasin**lausd.k12.ca.us>
Contributor: Darrell May 
Release supported: SME 5.6U4
License: GPL
Last updated: January 29th, 2004
RJ
Problem:  You want to use Coppermine Photo Gallery on your SME 5.6 Server

Solution:  Follow this Howto

STEP 1: Download and undo this tarball:
 
[root@e-smith root]# mkdir cpg
[root@e-smith root]# cd cpg
[root@e-smith drupal]# wget http://easynews.dl.sourceforge.net/sourceforge/coppermine/cpg1.2.0final.zip
[root@e-smith drupal]# unzip cpg1.2.0final.zip



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 'cpg'"
  /sbin/e-smith/db accounts set cpg ibay Name "cpg"
  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 cpg Uid $uid Gid $uid
  /sbin/e-smith/db accounts setprop cpg PublicAccess local
  /sbin/e-smith/db accounts setprop cpg UserAccess wr-group-rd-group
  /sbin/e-smith/db accounts setprop cpg PasswordSet no CgiBin enabled
  /sbin/e-smith/db accounts setprop cpg Group Admin
  /sbin/e-smith/signal-event ibay-create cpg

STEP 3: Move the extracted CPG files to ibay
 
[root@e-smith root]# cd /home/e-smith/files/ibays/cpg/html
[root@e-smith html]# mv /root/cpg/cpg1.2.0final/* . 



STEP 4: Setup Mysql
 
## Create the Mysql database

[root@e-smith root]# mysqladmin create cpg

## Set permissions for a user called "cpg" using password "cpgpasswd" (Use your own password)

[root@e-smith root]# mysql

mysql> GRANT ALL ON cpg.* TO cpg@localhost IDENTIFIED BY "cpgpasswd";
mysql> flush privileges;
mysql>quit;



STEP 6: Complete web based install script
 
Try http://192.168.1.1/cpg/install.php

USER                : admin
Passwd             : adminpasswd
DatabaseServer : localhost
DatabaseName  : cpg
DatabasePasswd: cpgpasswd



Notes: Open Main Coppermine iBay Page and Login
 
Now try, 

http://192.168.1.1/cpg/

Login using admin/adminpasswd

For more info and later downloads try http://coppermine.sourceforge.net/


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