Changes between Version 4 and Version 5 of OpenClinicaCentOS


Ignore:
Timestamp:
08/11/11 15:28:21 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenClinicaCentOS

    v4 v5  
    11= OpenClinica Quick Install on CentOS 6 = 
    22 
    3 This "quickstart" guide is a condensed version of the verbose instructions found in the OpenClinica download at install-docs/linux/install.txt. It should allow you to get OpenClinica installed on a fully updated install of CentOS 6 or Red Hat Enterprise Linux 6. This was last tested with Red Hat Enterprise Linux 6 Update 1 (EL6.1) in August 2011. 
     3This "quickstart" guide is a condensed version of the verbose instructions found at https://docs.openclinica.com/ OpenClinica. It should allow you to get OpenClinica installed on a fully updated install of CentOS 6 or Red Hat Enterprise Linux 6. This was last tested with Red Hat Enterprise Linux 6 Update 1 (EL6.1) in August 2011. 
    44 
    55'''Note:''' For Sun Java, you may need to add the channel "RHEL Supplementary" in the RHN web interface, or separately install and configure a JDK as described in the OpenClinica instructions.  
     
    6868# switch to postgres user        
    6969su - postgres   
    70   createuser --superuser --no-createrole --no-createdb --pwprompt clinica 
    71   # type a strong password and note it! 
    72   createdb --owner=clinica openclinica  
     70  # replace 'clinica' with a strong password and note it, or later run "ALTER USER clinica WITH PASSWORD 'XXXX';" 
     71  psql -U postgres -c "CREATE ROLE clinica LOGIN ENCRYPTED PASSWORD 'clinica' SUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE" 
     72  psql -U postgres -c "CREATE DATABASE  openclinica WITH ENCODING='UTF8' OWNER=clinica" 
    7373exit 
    7474# test the connection from localhost -- type your strong password  
     
    7878=== 2b. Tomcat === 
    7979 
    80 Below are several small Tomcat configuration changes: 
    81 {{{ 
    82 chkconfig tomcat6 on 
    83 # install postgresql JDBC driver per OpenClinica instructions 
    84 cp /usr/local/oc/OpenClinica-*/config/libraries/postgresql-8.1-405.jdbc3.jar /usr/local/tomcat/lib/ 
    85 }}} 
    86  
    8780By default, Tomcat is not configured for encrypted (HTTPS) requests. If you want to pass requests through an Apache httpd server, see ApacheConfig for details. Alternatively you can [http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html configure Tomcat to serve SSL requests] by editing /etc/tomcat/server.xml. First uncomment the `Connector port="8443"` section, then create a keystore with a self-signed certificate for Tomcat:  
    8881 
     
    9083keytool -genkey -alias tomcat -keyalg RSA -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US" -storepass changeit -keypass changeit 
    9184mv /root/.keystore /usr/local/tomcat/ 
     85cp /usr/local/oc/OpenClinica-3*/distribution/OpenClinica.war /usr/local/tomcat/webapps  
     86chown -R tomcat:tomcat /usr/local/tomcat 
    9287 
     88chkconfig tomcat6 on 
    9389service tomcat6 start 
    9490# verify it is now running