Tuesday, July 29, 2008

OpenACS Configuration

  1. Install JDK
    # apt-get install sun-java5-jdk
  2. Install mysql
    # apt-get install mysql-server



  1. Install Java database (JDBC) driver
    # apt-get install libmysql-java

  2. Setting up the user to use JDBC
    # export CLASSPATH=$CLASSPATH:/usr/share/java/mysql.jar

  3. Install JBOSS (JBOSS installation guide) either way:
    a) download and unzip jboss-4.2.3-GA.zip
    b) download jboss-4.2.3-GA-src.tar.gz and built it using Apache ANT
    c) use jems-installer:
    # java -jar jems-installer-1.2.1.CR4.jar

  4. Test the JBOSS installation
    # run.sh
    Make sure the followed:
    a) $JBOSS_HOME, $PATH are correctly configured in bashrc file
    b) /etc/hostname can be correctly resolved
    $JBOSS_HOME/server/default/log would be helpful to see what's wrong with the configurations

  5. Make sure JDBC driver mysql-connector-java.jar is located in $JBOSS_HOME/server/default/lib

  6. Download and unpack OpenACS binary
    # unzip openacs-bin-0.02.zip

  7. Create an mysql account and database for OpenACS
    # mysql -p
    mysql> create database ACS;
    mysql> grant all on ACS.* to openacs_user identified by ‘openacs_pw’

  8. Deploy OpenACS
    # cp openacs/openacs-ds.xml $JBOSS_HOME/server/default/deploy/
    # cp openacs/acs.ear $JBOSS_HOME/server/default/deploy/
    # cp openacs/openacs-service.xml $JBOSS_HOME/server/default/deploy/jms/
    Modify connection-url, user-name, password in openacs-ds.xml

  9. Run JBOSS
    # run.sh
    Disable JBOSS CREATE_TABLES_ON_STARTUP if getting an error "java.sql.SQLException: Table already exists"
    file: $JBOSS_HOME/server/default/deploy/jms/hsqldb-jdbc2-service.xml

  10. Web interface is accessible at http://your.server.ip:8080/openacs/index.jsf.

8 comments:

Anonymous said...

Dear Winfred,
I got source code for Open ACS. If u have any document related to Open ACS project plz send it to me. my mail id:krishnaprasadhg@gmail.com

Anonymous said...

Hi,

Please send me some documents related to Openacs project to my mail id kars@aol.in

Panchdev said...

hi winfred!
do u have some documnetation on how to write the configuration scripts for the openacs

if u have something then please mail to
panchdevsingh@gmail.com

regards

Anonymous said...

Do you have some documnetation on how to write the configuration scripts for the openacs

if you have something then please mail to rvazquez@mexico.org

Anonymous said...

hi winfred!
do u have some documnetation on how to write the configuration scripts for the openacs.
If u have any document related to Open ACS project plz send it to me. my mail : p11s@cmaxwireless.com

landiary said...

hi Winfred, Thanks for your entry.
I installed succesfully openacs server but the cpe didn't connect with the OpenAcs.
I haven't write configuration scripts for OpenAcs yet. Could you plz send me some document on how to write the configuration scripts for the OpenAcs. Or if you can, could you send me your configuration scripts for Openacs.
My email is: kechienbai_smile@yahoo.com
Thankyou very much!

Anonymous said...

hi Winfred,
I installed succesfully openacs server but I´d like some documentation to operate OpenAcs and write configuration scripts. Could you plz send me some document of Openacs.
My email is: sbstella869@gmail.com

Anonymous said...

hi Winfred,
I installed succesfully openacs server. Could you plz send me some document on how to write the configuration scripts for the OpenAcs. chilh@msn.com