We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Help with Installation on linux (Debian wheezy, OC: 3.1.2 we b). .

Hi Luca,
I see you have postgres 9.1 installed, which I don't think is one of the supported versions. Try version 8.3 / 8.4 (I run 8.4 on Ubuntu 11.10) and let us know how it goes.
Thanks,
Suresh
-----Original Message-----
Sent: Tuesday, March 27, 2012 2:53 PM
To: OpenClinica User ML
Subject: [Users] Help with Installation on linux (Debian wheezy,OC: 3.1.2 we b). .
Dear all
we're evaluating OC @ work, therefore i'm trying to install OC on
Debian Wheezy (home machine, it's testing not stable), but i've
encountered a few problems. I'm not that tomcat guru, so i've
found a bit hard figuring out (i hardly think it could be dued to
more up to date platform sw compared to standard installation
requirements).
The output of my http://localhost:8080/OC/ (my Openclinica
installation dir) is
HTTP Status 404 - /OC/MainMenu
type Status report
message /OC/MainMenu
description The requested resource (/OC/MainMenu) is not available.
Apache Tomcat/7.0.26
My http://localhost:8080/manager/ says that OC is running (true)
If you need more infos (than those following), please tell me.
Any help/advice/feedback would be very appreciated.
Thank you,
Luca
==========================================
Steps followed in the installation process
==========================================
apt-get install apache2 postgresql-9.1 tomcat7 tomcat7-admin
openjdk-7-jdk libpostgresql-jdbc-java pgadmin3
# -------------
# Tomcat config
# -------------
unzip OpenClinica-web-3.1.2.zip
cd OpenClinica-web-3.1.2/distribution
unzip OpenClinica.war -d OC
su
cp -r OC -t /var/lib/tomcat7/webapps/
cd /var/lib/tomcat7
chown -R tomcat7 OC
chgrp -R tomcat7 OC
/etc/init.d/tomcat7 restart
# ---------------
# Postgres config
# ---------------
su postgres
psql -c "CREATE ROLE clinica LOGIN ENCRYPTED PASSWORD
'changeme' SUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE "
psql -c "CREATE DATABASE openclinica WITH ENCODING='UTF8' OWNER=clinica"
# back to root and change datainfo.properties
exit
emacs -nw /var/lib/tomcat7/webapps/OC/WEB-INF/classes/datainfo.properties
# as follow
dbType=postgres
dbUser=clinica
dbPass=changeme
db=${WEBAPP.lower}
dbPort=5432
dbHost=localhost

Comments

  • Dear Luca,
    Also, only Apache Jakarta Tomcat 6.0.x is supported, see the requirements page:
    https://community.openclinica.com/project/openclinica#systemreqs
    Yours,
    Michael
    -----Original Message-----
    Sent: 27 March 2012 21:14
    To: '[email protected]'
    Subject: Re: [Users] Help with Installation on linux (Debian wheezy, OC: 3.1.2 we b). .
    Hi Luca,
    I see you have postgres 9.1 installed, which I don't think is one of the supported versions. Try version 8.3 / 8.4 (I run 8.4 on Ubuntu 11.10) and let us know how it goes.
    Thanks,
    Suresh
    -----Original Message-----
    Sent: Tuesday, March 27, 2012 2:53 PM
    To: OpenClinica User ML
    Subject: [Users] Help with Installation on linux (Debian wheezy,OC: 3.1.2 we b). .
    Dear all
    we're evaluating OC @ work, therefore i'm trying to install OC on Debian Wheezy (home machine, it's testing not stable), but i've encountered a few problems. I'm not that tomcat guru, so i've found a bit hard figuring out (i hardly think it could be dued to more up to date platform sw compared to standard installation requirements).
    The output of my http://localhost:8080/OC/ (my Openclinica installation dir) is
    HTTP Status 404 - /OC/MainMenu
    type Status report
    message /OC/MainMenu
    description The requested resource (/OC/MainMenu) is not available.
    Apache Tomcat/7.0.26
    My http://localhost:8080/manager/ says that OC is running (true)
    If you need more infos (than those following), please tell me.
    Any help/advice/feedback would be very appreciated.
    Thank you,
    Luca
    ==========================================
    Steps followed in the installation process ==========================================
    apt-get install apache2 postgresql-9.1 tomcat7 tomcat7-admin openjdk-7-jdk libpostgresql-jdbc-java pgadmin3
    # -------------
    # Tomcat config
    # -------------
    unzip OpenClinica-web-3.1.2.zip
    cd OpenClinica-web-3.1.2/distribution
    unzip OpenClinica.war -d OC
    su
    cp -r OC -t /var/lib/tomcat7/webapps/
    cd /var/lib/tomcat7
    chown -R tomcat7 OC
    chgrp -R tomcat7 OC
    /etc/init.d/tomcat7 restart
    # ---------------
    # Postgres config
    # ---------------
    su postgres
    psql -c "CREATE ROLE clinica LOGIN ENCRYPTED PASSWORD 'changeme' SUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE "
    psql -c "CREATE DATABASE openclinica WITH ENCODING='UTF8' OWNER=clinica"
    # back to root and change datainfo.properties exit
    emacs -nw /var/lib/tomcat7/webapps/OC/WEB-INF/classes/datainfo.properties
    # as follow
    dbType=postgres
    dbUser=clinica
    dbPass=changeme
    db=${WEBAPP.lower}
    dbPort=5432
    dbHost=localhost
This discussion has been closed.