Changes between Version 3 and Version 4 of OpenClinicaCentOS


Ignore:
Timestamp:
08/10/11 10:21:50 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenClinicaCentOS

    v3 v4  
    5858chkconfig postgresql on 
    5959/etc/init.d/postgresql initdb 
     60# allow local JDBC connections 
     61sed -i 's;127.0.0.1/32.*;127.0.0.1/32          md5;' /var/lib/pgsql/data/pg_hba.conf 
    6062/etc/init.d/postgresql start 
    6163}}} 
     
    6567{{{ 
    6668# switch to postgres user        
    67 su - postgres 
    68    
    69   sed -i 's;127.0.0.1/32.*;127.0.0.1/32          md5;' /var/lib/pgsql/data/pg_hba.conf 
     69su - postgres   
    7070  createuser --superuser --no-createrole --no-createdb --pwprompt clinica 
    7171  # type a strong password and note it! 
     
    7878=== 2b. Tomcat === 
    7979 
     80Below are several small Tomcat configuration changes: 
    8081{{{ 
    81 # pre-deploy the WAR; we will edit some files before restarting Tomcat 
    82 cp /usr/local/oc/OpenClinica-3*/distribution/OpenClinica.war /usr/local/tomcat/webapps  
     82chkconfig tomcat6 on 
     83# install postgresql JDBC driver per OpenClinica instructions 
     84cp /usr/local/oc/OpenClinica-*/config/libraries/postgresql-8.1-405.jdbc3.jar /usr/local/tomcat/lib/ 
     85}}} 
     86 
     87By 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:  
     88 
     89{{{ 
     90keytool -genkey -alias tomcat -keyalg RSA -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US" -storepass changeit -keypass changeit 
     91mv /root/.keystore /usr/local/tomcat/ 
     92 
     93service tomcat6 start 
     94# verify it is now running 
     95netstat -anp |grep 8443 
     96# tcp        0      0 :::8443                     :::*                        LISTEN      581/java    
    8397}}} 
    8498 
     
    90104rsync -az $PROP /usr/local/oc/datainfo.properties.orig 
    91105nano $PROP # change your clinica DB password and other settings 
    92 /etc/init.d/tomcat6-jsvc stop 
    93 /etc/init.d/tomcat6-jsvc start 
     106/etc/init.d/tomcat6 stop 
     107/etc/init.d/tomcat6 start 
    94108}}} 
    95109