The following describes how to install OpenVPMS from scratch and assumes that you have downloaded it and unpacked its zip file.
If you have not installed the other required software, see Requirements.
The headings below are:
Note that in the following the directory or folder separator character is shown as /, following unix conventions. On Windows, replace / with \. e.g. given:
<OPENVPMS_HOME>/lib
change to:
<OPENVPMS_HOME>\lib
The OpenVPMS installation has a single top-level directory named:
openvpms-release-XXX
where XXX indicates the version.
This will be referred to as <OPENVPMS_HOME> in the remainder of this document. This directory has the following sub-directories:
Name | Contents |
---|---|
bin | a number of tools used to load data into OpenVPMS |
conf | configuration files for the tools in ../bin |
db | MySQL SQL scripts to create the initial database |
import | data to import into OpenVPMS |
lib | jars used by the tools in ../bin |
reports | document templates for reporting |
update | data and scripts to migrate from earlier versions of OpenVPMS |
webapps | the OpenVPMS web applications |
The MySQL Connector/J JDBC driver needs to be downloaded from:
http://dev.mysql.com/downloads/connector/j/5.1.html
It is typically named mysql-connector-java-5.1.<x>.zip or mysql-connector-java-5.1.<x>.tar.gz where <x> represents the minor version number.
The JDBC driver in the archive is named:
mysql-connector-java-5.1.<x>-bin.jar.
This needs to be copied to:
In the above, <TOMCAT_HOME> refers to the directory where Apache Tomcat is installed. On Windows, this will be something like:
C:\Program Files\Apache Software Foundation\Tomcat 7.0
To create the OpenVPMS MySQL database, run the following in a shell prompt
> cd <OPENVPMS_HOME>/db
> mysql -u admin -p < createdb.sql
> mysql -u admin -p openvpms < db.sql
NOTES:
# GRANT ALL PRIVILEGES ON openvpms.* TO 'openvpms'@'%'
# IDENTIFIED BY 'openvpms' WITH GRANT OPTION;
To improve security, the '%' can be limited to the host that Tomcat will connect from.
Next, run the 'dataload' script. This provides two options, 'base' and 'setup'. The former loads a base database setup in preparation for data migration. The latter contains a default setup suitable for a new installation.
e.g:
> cd <OPENVPMS_HOME>/bin
> dataload setup
To install the OpenVPMS web application:
OpenVPMS uses OpenOffice to perform reporting, printing and document conversion.
Install it as per your platform's requirements and then:
C:\Program Files (x86)\OpenOffice 4\program
Windows users can find instructions for changing the PATH here.
Document templates used for invoices, payments etc., are located in:
<OPENVPMS_HOME>/reports
These need to be loaded prior to use. This can be done using the 'templateload' script. e.g:
> cd <OPENVPMS_HOME>/bin
> templateload ../reports/templates-X.xml
Where X is:
A4 to load the A4 template set
A5 to load the A5 template set
Letter to load the Letter (ie US) template set
NOTES:
After installation, templates can be updated using via Administration|Templates.
The templates need to be customised to add practice logos etc. Templates with a:
See also Introduction|Reporting, Reference|Reports and Forms, and Administration|Templates.
To test the installation, open up your Internet Browser and enter the address:
http://localhost:8080/openvpms/app
Login to OpenVPMS using user admin and password admin
OpenVPMS ships with optional data that can be loaded as required. This includes:
The basic installation grants all functionality to all users. To restrict this, load the roles.xml file
> cd <OPENVPMS_HOME>/bin
> dataload -f ../import/data/roles.xml
These are standardised codes that can be used to classify patient Problems. These can be loaded using:
> cd <OPENVPMS_HOME>/bin
> dataload -f ../import/data/VeNom-lookups.xml
These can be loaded using:
> cd <OPENVPMS_HOME>/bin
> dataload -f ../import/data/postcodesAU.xml