Changes between Version 3 and Version 4 of OpenClinicaUbuntu


Ignore:
Timestamp:
10/09/09 11:37:40 (10 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenClinicaUbuntu

    v3 v4  
    66
    77== 1. Download and install software. ==
    8 
    9 
    108
    119=== 1a. Install prerequisite software ===
     
    5452Make sure you only have one `/usr/local/oc/OpenClinica-*` directory or some of the commands below will fail.
    5553
    56 = '''DRAFT''' =
    57 
    5854== 2. Setup software ==
    5955
    6056=== 2a. PostgreSQL ===
    6157
    62 Prepare '''a strong password''' to use for the db user and run the following:
     58Prepare a '''strong password''' to use for the db user and run the following:
    6359
    6460{{{
    65 /etc/init.d/postgresql start
    66 chkconfig postgresql on
    67 # change localhost access type to "md5"
    68 sed -i 's;127.0.0.1/32          ident sameuser;127.0.0.1/32          md5;' /var/lib/pgsql/data/pg_hba.conf
    6961# switch to postgres user       
    7062su - postgres
    7163  createuser --no-superuser --no-createrole --no-createdb --pwprompt clinica
    7264  # type a strong password and note it!
    73   createdb openclinica
     65  createdb --owner=clinica openclinica
    7466  psql -d openclinica -f /usr/local/oc/OpenClinica-*/config/database/PostgreSQL/*/install/create_database_*_tables_with_data.sql
    7567exit
    76 /etc/init.d/postgresql restart
    7768# test the connection from localhost -- type your strong password
    7869psql --user clinica --host localhost openclinica
     
    8475
    8576{{{
    86 # set tomcat to start automatically on boot
    87 chkconfig tomcat5 on
    88 
    8977# install postgresql JDBC driver per OpenClinica instructions
    9078cp /usr/local/oc/OpenClinica-*/config/libraries/postgresql-8.1-405.jdbc3.jar /usr/local/tomcat/common/lib/
    91 
    92 # remove problematic impl jars; this must be done after each Red Hat tomcat update
    93 # or OpenClinica rule import will fail with "Cannot find the declaration of element 'RuleImport'"
    94 rm -f /usr/local/tomcat/common/endorsed/*
    95 # Bug: https://bugzilla.redhat.com/show_bug.cgi?id=217630
    96 wget https://staff.washington.edu/joshuadf/java/naming-factory-dbcp.jar -O /var/lib/tomcat5/common/lib/naming-factory-dbcp.jar
    97 # Open``Clinica is only compatible with Sun Java``Mail http://java.sun.com/products/javamail/
    98 wget https://staff.washington.edu/joshuadf/java/mail.jar -O /usr/share/java/mail.jar
    99 /usr/sbin/alternatives --install /usr/share/java/javamail.jar javamail /usr/share/java/mail.jar 4289
    100 /usr/sbin/alternatives --set javamail /usr/share/java/mail.jar
    10179}}}
    10280
     
    10482pass requests through an Apache httpd server, see ApacheConfig for details. Alternatively you
    10583can [http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html configure Tomcat to serve SSL requests]
    106 by editing `/etc/tomcat/server.xml`. First uncomment the `Connector port="8443"` section,
    107 then create a keystore with a self-signed certificate for Tomcat:
     84by editing `/etc/tomcat5.5/server.xml`. First uncomment the `Connector port="8443"` section,
     85then create a keystore with a self-signed certificate for Tomcat. Note that Firefox and other
     86browsers will display a "This Connection is Untrusted" error with the self-signed certificate.
    10887{{{
    10988keytool -genkey -alias tomcat -keyalg RSA -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US" -storepass changeit -keypass changeit
    11089mv /root/.keystore /usr/local/tomcat/
    11190
    112 service tomcat5 start
     91/etc tomcat5 start
    11392# verify it is now running
    11493netstat -anp |grep 8443
     
    11695}}}
    11796
     97= '''DRAFT''' =
    11898
    11999=== 2c. OpenClinica Deployment ===