Notes

CentOS 5.1

Installation

First boot setup

Upgrading

This should be done if the installation was not done, so it could be out-dated:

yum check-update
yum upgrade

Miscellaneous

yum install mc
yum install screen
yum install gcc
yum install gcc-c++

yum-priorities

yum install yum-priorities
mcedit /etc/yum.repos.d/CentOS-Base.repo

CentOSPlus repository

mcedit /etc/yum.repos.d/CentOS-Base.repo

RPMforge repository

wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm
mcedit /etc/yum.repos.d/rpmforge.repo

Upgrading

Apache HTTP server:

yum install httpd
chkconfig --add httpd
chkconfig --level 2345 httpd on
service httpd start

TLS/SSL

mod_perl

yum install mod_perl

PHP

yum install php
service httpd restart

PEAR

yum install php-pear

XML

yum install php-xml

SOAP

yum install php-soap

LDAP

yum install php-ldap

sablotron

yum install sablotron

nusoap

MySQL

yum install mysql-server
chkconfig --add mysqld
chkconfig --level 2345 mysqld on
service mysqld start
mysqladmin --user root password <password>

OpenLDAP client

yum install openldap-clients

OpenLDAP server

yum install openldap-servers
chkconfig --add ldap
chkconfig --level 2345 ldap on
service ldap start

phpMyAdmin

yum install phpmyadmin
mcedit /etc/httpd/conf.d/phpmyadmin.conf
mcedit /usr/share/phpmyadmin/config.inc.php
service httpd restart

phpLDAPadmin

JPackage utils

yum install jpackage-utils
wget http://www.jpackage.org/jpackage17.repo
cp jpackage17.repo /etc/yum.repos.d
mcedit /etc/yum.repos.d/jpackage17.repo

Java 1.5.0

Step 1

[obtain jdk-1_5_0_14-linux-i586-rpm.bin]
chmod +x jdk-1_5_0_14-linux-i586-rpm.bin
./jdk-1_5_0_14-linux-i586-rpm.bin

Step 2

yum install java-1.5.0-sun-compat

BerkeleyDB XML

wget http://download.oracle.com/berkeley-db/dbxml-2.3.10.tar.gz
tar -xzf dbxml-2.3.10.tar.gz
cd dbxml-2.3.10
./buildall.sh --prefix=/opt/dbxml-2.3.10 --enable-java
cd

Tocmat

yum install tomcat5
yum install tomcat5-admin-webapps
chkconfig --add tomcat5
chkconfig --level 2345 tomcat5 on
./jdk-1_5_0_14-linux-i586-rpm.bin
mcedit /etc/sysconfig/tomcat5
mcedit /usr/share/tomcat5/conf/tomcat-users.xml
service tomcat5 start

Tomcat APR

yum install apr-devel
yum install openssl-devel
wget http://hephaistos.info.uvt.ro/downloads/visp/tomcat-native-1.1.6.tar.gz
tar -xzf tomcat-native-1.1.6.tar.gz
cd tomcat-native-1.1.6-src/jni/native
export JAVA_HOME=/usr/lib/jvm/java
./configure --prefix=/opt/tomcat-native-1.1.6 --with-apr=/usr
make
make install
cd
mcedit /etc/sysconfig/tomcat5
service tomcat5 restart

Tomcat instances

ln --symbolic /etc/init.d/tomcat5 /etc/init.d/tomcat5-i1
cp /etc/sysconfig/tomcat5 /etc/sysconfig/tomcat5-i1
mcedit /etc/sysconfig/tomcat5-i1
chkconfig --add tomcat5-i1
chkconfig --level 2345 tomcat5-i1 on
service tomcat5-i1 start
service tomcat5-i1 restart

MySQL Connector

yum install mysql-connector-java
ln --symbolic /usr/share/java/mysql-connector-java.jar /usr/share/tomcat5/common/lib/mysql-connector-java.jar

Orbeon Forms

wget http://download.forge.objectweb.org/ops/ops-3.5.1.200703310056.tar.gz
tar -xzf ops-3.5.1.200703310056.tar.gz
mv ops-3.5.1.200703310056 /opt
cp /opt/ops-3.5.1.200703310056/ops.war /usr/share/tomcat5/webapps
service tomcat5 restart

ActiveBPEL

wget http://64.119.177.125/download/files/4.1/final/activebpel-4.1-bin.tar.gz
tar -xzf activebpel-4.1-bin.tar.gz
mv activebpel-4.1 /opt
rm -r -f support
cd /opt/activebpel-4.1
export JAVA_HOME=/usr/lib/jvm/java
export CATALINA_HOME=/usr/share/tomcat5
ln --symbolic /usr/share/tomcat5/server/lib/[tomcat5][catalina].jar /usr/share/tomcat5/server/lib/catalina.jar
./install.sh
cd
mkdir --parent /usr/share/tomcat5/AeBpelEngine/deployment-logs
chown --recursive tomcat:tomcat /usr/share/tomcat5/AeBpelEngine /usr/share/tomcat5/bpr
service tomcat5 restart

ActiveBPEL persistence

mcedit /opt/activebpel-4.1/dist/sql/activebpel/ddl/ActiveBPEL-MySQL.sql
mcedit /usr/share/tomcat5/conf/Catalina/localhost/active-bpel.xml
<Context>
    <Resource name="jdbc/ActiveBPELDB" type="javax.sql.DataSource"
            username="<username>" password="<password>"
            url="jdbc:mysql://localhost:3306/ActiveBPEL?autoReconnect=true" driverClassName="com.mysql.jdbc.Driver"
            validationQuery="SELECT 1" 
            maxIdle="5" maxWait="5000" maxActive="10" />
</Context>
mcedit /opt/activebpel-4.1/dist/conf/aeEngineConfig-Persistent.xml
mysql --password < /opt/activebpel-4.1/dist/sql/activebpel/ddl/ActiveBPEL-MySQL.sql
cp /opt/activebpel-4.1/dist/conf/aeEngineConfig-Persistent.xml /opt/activebpel-4.1/dist/conf/aeEngineConfig.xml
cp /opt/activebpel-4.1/dist/conf/aeEngineConfig.xml /usr/share/tomcat5/bpr
service tomcat5 restart

ActiveBPEL instances