Contents
- Notes
- CentOS 5.1
- CentOSPlus repository
- RPMforge repository
- Upgrading
- Apache HTTP server:
- TLS/SSL
- mod_perl
- PHP
- PEAR
- XML
- SOAP
- LDAP
- sablotron
- nusoap
- MySQL
- OpenLDAP client
- OpenLDAP server
- phpMyAdmin
- phpLDAPadmin
- JPackage utils
- Java 1.5.0
- BerkeleyDB XML
- Tocmat
- Tomcat APR
- Tomcat instances
- MySQL Connector
- Orbeon Forms
- ActiveBPEL
- ActiveBPEL persistence
- ActiveBPEL instances
Notes
- for switching as root user use su - and not su;
CentOS 5.1
Installation
- skip media test;
- choose the language (english), keyboard (us);
- create partition table (if necessary);
- use custom partition layout:
- one primary partition (ext3) for root (/);
- one swap primary partition (at least double than RAM);
- choose GRUB (no additional parameters, no password, installed on MBR);
- configure network card (enable IPv4);
- assign host name manually;
- choose UTC for system clock;
- choose GMT as time zone;
- choose no package / tasks;
- choose customize packages and deselect everything;
First boot setup
- authentication: default options, no modification;
- firewall: disabled;
- selinux: disabled;
- network: no modifications;
- services: enabled only:
- ip6tables;
- iptables;
- network;
- sshd;
- syslog;
Upgrading
This should be done if the installation was not done, so it could be out-dated:
yum check-update yum upgrade
Miscellaneous
- mc:
yum install mc
- screen:
yum install screen
- gcc
- required for BerkeleyDB XML and Tomcat APR;
yum install gcc
- gcc-c++
- required for BerkeleyDB XML and Tomcat APR;
yum install gcc-c++
yum-priorities
- package: yum-priorities, 1.0.4<
- installation:
yum install yum-priorities
- configuration:
- add the property priority=100 to each section (namely base and updates) (except addons, extras, centosplus, contrib);
- add the property priority=200 to each other section (see above);
mcedit /etc/yum.repos.d/CentOS-Base.repo
CentOSPlus repository
- site: http://wiki.centos.org/Repositories/CentOSPlus;
- installation: installed by default;
- configuration:
- modify the property enabled from 0 to 1 into the centosplus section;
mcedit /etc/yum.repos.d/CentOS-Base.repo
RPMforge repository
- site: http://wiki.centos.org/Repositories/RPMForge;
- installation:
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
- configuration:
- add the property priority=300 to rpmforge section;
mcedit /etc/yum.repos.d/rpmforge.repo
- note: use http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm for x86_64;
Upgrading
- follow the procedure Upgrading described in the CentOS section.
Apache HTTP server:
- package: httpd, 2.2.3;
- installation:
yum install httpd
- enabeling:
chkconfig --add httpd chkconfig --level 2345 httpd on
- starting:
service httpd start
TLS/SSL
- package: installed by default;
mod_perl
- package: mod_perl, 2.0.2;
- installation:
yum install mod_perl
PHP
- package: php, 5.1.6;
- installation:
yum install php
- restarting:
service httpd restart
PEAR
- package: php-pear, 1.4.9;
- installation:
yum install php-pear
XML
- package: php-xml, 5.1.6;
- installation:
yum install php-xml
SOAP
- package: php-soap, 5.1.6;
- installation:
yum install php-soap
LDAP
- package: php-ldap, 5.1.6;
- installation:
yum install php-ldap
sablotron
- package: sablotron 1.0.3;
- installation:
yum install sablotron
nusoap
- package: not available;
- site: http://dietrich.ganx4.com/nusoap;
MySQL
- package: mysql-server, 5.0.22;
- installation:
yum install mysql-server
- enabeling:
chkconfig --add mysqld chkconfig --level 2345 mysqld on
- starting:
service mysqld start
- change root password:
mysqladmin --user root password <password>
OpenLDAP client
- packages: openldap-clients, 2.3.27;
- installation:
yum install openldap-clients
OpenLDAP server
- packages: openldap-servers, 2.3.27;
- installation:
yum install openldap-servers
- enabeling:
chkconfig --add ldap chkconfig --level 2345 ldap on
- starting:
service ldap start
phpMyAdmin
- package: phpmyadmin, 2.11.1.2
- installation:
yum install phpmyadmin
- configuration:
- add the line Allow from 172.20.1.0/24 just after Allow from 127.0.0.1:
mcedit /etc/httpd/conf.d/phpmyadmin.conf
- configuration:
- modify the line $cfg['blowfish_secret'] = '$$ random string $$':
- you could obtain a random string from: http://random.org/strings/?num=30&len=20&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new;
- or, you could use an UUID generated by uuidgen command line tool;
- modify the line $cfg['blowfish_secret'] = '$$ random string $$':
mcedit /usr/share/phpmyadmin/config.inc.php
- restarting:
service httpd restart
phpLDAPadmin
- package: not available;
- site: http://phpldapadmin.sourceforge.net/;
JPackage utils
- package: jpackage-utils, 1.7.3;
- installation:
yum install jpackage-utils wget http://www.jpackage.org/jpackage17.repo cp jpackage17.repo /etc/yum.repos.d
- configuration:
- modify the property enabled from 0 to 1 into the jpackage-generic-nonfree section;
- add the property priority=90 to all sections;
mcedit /etc/yum.repos.d/jpackage17.repo
- follow the procedure Upgrading described in the CentOS section.
Java 1.5.0
Step 1
- download rpm from: http://java.sun.com/javase/downloads/index_jdk5.jsp;
- installation:
[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
- note: use jdk-1_5_0_14-linux-amd64-rpm.bin for x86_64;
Step 2
- package: java-1.5.0-sun-compat, 1.5.0.14;
- installation:
yum install java-1.5.0-sun-compat
BerkeleyDB XML
- package: not available;
- site: http://www.oracle.com/database/berkeley-db/xml;
- archive: http://download.oracle.com/berkeley-db/dbxml-2.3.10.tar.gz;
- installation:
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
- package: tomcat5, 5.5.23;
- installation:
yum install tomcat5 yum install tomcat5-admin-webapps
- enabeling:
chkconfig --add tomcat5 chkconfig --level 2345 tomcat5 on
- quirk: reinstall JDK:
./jdk-1_5_0_14-linux-i586-rpm.bin
- configuration:
- find the line JAVA_OPTS="-Djava.library.path=...", and add the following line after it JAVA_OPTS="$JAVA_OPTS -Xmx2048m -Xms1024m -XX:MaxPermSize=128m":
mcedit /etc/sysconfig/tomcat5
- configuration:
- create the manager and admin role;
- add the manager and admin role for the user tomcat;
- delete the role role1 and users role1 and both;
mcedit /usr/share/tomcat5/conf/tomcat-users.xml
- starting:
service tomcat5 start
Tomcat APR
- package: not available;
- site: http://tomcat.apache.org/;
- archive: http://hephaistos.info.uvt.ro/downloads/visp/tomcat-native-1.1.6.tar.gz;
- installation:
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
- configuration:
- find the line JAVA_OPTS="-Djava.library.path=...", and add the following line after it JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/opt/tomcat-native-1.1.6/lib":
mcedit /etc/sysconfig/tomcat5
- restarting:
service tomcat5 restart
Tomcat instances
- installation:
ln --symbolic /etc/init.d/tomcat5 /etc/init.d/tomcat5-i1 cp /etc/sysconfig/tomcat5 /etc/sysconfig/tomcat5-i1
- configuration:
- replace the value for CATALINA_HOME, JASPER_HOME, CATALINA_TMPDIR and JAVA_ENDORSED_DIRS from "/usr/share/tomcat5/..." to "/usr/share/tomcat5-i1/...";
- replace the value for CATALINA_PID from "/var/run/tomcat5.pid" to "/var/run/tomcat5-i1.pid";
- uncomment CONNECTOR_PORT and increase the value by 1;
mcedit /etc/sysconfig/tomcat5-i1
- apply configuration for Tomcat APR;
- enabeling:
chkconfig --add tomcat5-i1 chkconfig --level 2345 tomcat5-i1 on
- starting:
service tomcat5-i1 start
- apply updates for roles and users;
- restarting:
service tomcat5-i1 restart
MySQL Connector
- package: mysql-connector-java, 5.0.8
- installation:
yum install mysql-connector-java
- install the jar for every tomcat instance:
ln --symbolic /usr/share/java/mysql-connector-java.jar /usr/share/tomcat5/common/lib/mysql-connector-java.jar
Orbeon Forms
- package: not available;
- site: http://www.orbeon.com/;
- archive: http://download.forge.objectweb.org/ops/ops-3.5.1.200703310056.tar.gz;
- installation:
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
- restarting:
service tomcat5 restart
ActiveBPEL
- package: not available;
- site: http://www.active-endpoints.com/active-bpel-engine-overview.htm;
- archive: http://64.119.177.125/download/files/4.1/final/activebpel-4.1-bin.tar.gz;
- installation:
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
- restarting:
service tomcat5 restart
ActiveBPEL persistence
- configuration:
- replace all occurences of ${database.name} with ActiveBPEL;
mcedit /opt/activebpel-4.1/dist/sql/activebpel/ddl/ActiveBPEL-MySQL.sql
- configuration:
- replace the document with (don't forget to adjust username and password accordingly):
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>
- configuration:
- replace all occurences of ${database} with mysql;
mcedit /opt/activebpel-4.1/dist/conf/aeEngineConfig-Persistent.xml
- installation:
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
- restarting:
service tomcat5 restart
ActiveBPEL instances
- create Tomcat instance;
- install MySQL Connector;
- install ActiveBPEL instance;
- install ActiveBPEL persistence (just replace the MySQL database name from ActiveBPEL to ActiveBPEL_t);