2010-05-31 07:50:37 +00:00
|
|
|
|
Antville needs Helma Object Publisher to be installed on the desired machine.
|
|
|
|
|
If not already done so please download Helma via http://helma.org/download and
|
|
|
|
|
follow the installation instruction at http://helma.org/download/installation.
|
|
|
|
|
|
2010-06-04 21:04:37 +00:00
|
|
|
|
Furthermore, Antville needs an SQL database to be installed as well. Currently
|
|
|
|
|
supported products are PostgreSQL and MySQL. If not already done so please
|
|
|
|
|
install the desired database before you continue.
|
2010-05-31 07:50:37 +00:00
|
|
|
|
|
2010-06-04 21:04:37 +00:00
|
|
|
|
For connecting Antville to the database the corresponding JDBC driver is also
|
2010-05-31 07:50:37 +00:00
|
|
|
|
necessary. If not already done so please copy the driver to the directory
|
|
|
|
|
“lib/ext” of Helma’s installation directory. As of writing this installation
|
|
|
|
|
guide the drivers could be downloaded via the following URLs:
|
|
|
|
|
|
|
|
|
|
* http://jdbc.postgresql.org/download.html
|
|
|
|
|
* http://dev.mysql.com/downloads/connector/j/
|
|
|
|
|
|
2010-05-31 16:33:47 +00:00
|
|
|
|
Of course you can also use a packet manager like aptitude or MacPorts if the
|
2010-06-17 19:40:05 +00:00
|
|
|
|
JDBC driver is available from there. However, you then need to create a
|
|
|
|
|
symbolic link to the driver from within Helma’s “lib/ext” directory.
|
2010-05-31 07:50:37 +00:00
|
|
|
|
|
|
|
|
|
Now unpack the Antville distribution package. Move the resulting directory
|
|
|
|
|
“antville” into the directory “apps” of your Helma installation.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
Inside the directory “antville” you will find a directory called “db”. This
|
|
|
|
|
directory contains all database-related files, ie. several SQL scripts for
|
|
|
|
|
creating the database needed by the application. Change to that directory.
|
|
|
|
|
|
2010-06-17 19:40:05 +00:00
|
|
|
|
Antville currently comes with scripts for PostgreSQL (postgre.sql) and for
|
|
|
|
|
MySQL databases (my.sql).
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
2010-06-04 21:04:37 +00:00
|
|
|
|
NOTE: Antville is preconfigured for PostgreSQL out of the box but it is easy
|
|
|
|
|
to modify the configuration to be compatible with MySQL.
|
2010-05-31 07:50:37 +00:00
|
|
|
|
|
2010-05-31 16:33:47 +00:00
|
|
|
|
Each of these SQL scripts creates the tables, indexes and initial records and
|
2010-05-31 07:50:37 +00:00
|
|
|
|
also the account used by the application to communicate with the database.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
The default password of this account is “antville”, so you should change it if
|
|
|
|
|
you want to secure your installation. Open the desired SQL script and scroll
|
2010-04-24 14:27:31 +00:00
|
|
|
|
down to the “create user” (for PostgreSQL) or “grant user” (for MySQL)
|
|
|
|
|
statement. Search for “password” (PostgreSQL) or “identified by” (MySQL) and
|
|
|
|
|
change the trailing value in quotes to the password of your choice.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
2010-06-04 21:04:37 +00:00
|
|
|
|
Please refer to the documentation of your database on how to run the
|
|
|
|
|
appropriate script. Afterwards you will have to tell Antville how it can
|
|
|
|
|
access your database. This is done in a configuration file named
|
|
|
|
|
“db.properties” which is located in the “code” directory, or – if you are going
|
|
|
|
|
for MySQL – in the “db/my.compat” directory.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
2010-05-31 07:50:37 +00:00
|
|
|
|
Open the desired file and ensure that the line beginning with “antville.url”
|
|
|
|
|
points to the server that runs the database. By default, this is the local
|
|
|
|
|
machine aka “localhost” which will be right in most cases.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
2010-04-24 14:27:31 +00:00
|
|
|
|
Check that the password is set accordingly to the one you entered in the SQL
|
2010-05-31 07:50:37 +00:00
|
|
|
|
script and save the file.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
Finally, you need to tell Helma about the new application. This is done by
|
|
|
|
|
adding the contents of the file “apps.properties” in the “extra” directory to
|
|
|
|
|
the file “apps.properties” located in Helma’s installation directory.
|
|
|
|
|
|
2010-05-31 07:50:37 +00:00
|
|
|
|
NOTE: If you are using MySQL you need to edit and enable line 5 (the one
|
|
|
|
|
defining “antville.repository.1”) of the file by removing the leading comment
|
|
|
|
|
symbol “#”.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
Now start up Helma and point your browser to
|
|
|
|
|
|
2010-06-17 19:57:20 +00:00
|
|
|
|
http://localhost:8080
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
(assuming that Helma is running on the same machine and uses port 8080).
|
2010-05-31 07:50:37 +00:00
|
|
|
|
|
2010-05-31 16:33:47 +00:00
|
|
|
|
You should see Antville’s start page where you can create a first user account
|
|
|
|
|
that automatically has system administration rights to your Antville
|
|
|
|
|
installation.
|
2010-02-03 11:18:08 +00:00
|
|
|
|
|
|
|
|
|
Have fun!
|
|
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
|
|
TL;DR
|
|
|
|
|
|
2010-05-31 07:50:37 +00:00
|
|
|
|
1. Install Helma if not already done so
|
2010-06-04 21:04:37 +00:00
|
|
|
|
2. Install PostgreSQL or MySQL database if not already done so
|
2010-05-31 07:50:37 +00:00
|
|
|
|
3. Install corresponding JDBC driver in helma/lib/ext
|
|
|
|
|
4. Unpack Antville distribution file
|
|
|
|
|
5. Move antville directory into helma/app directory
|
|
|
|
|
6. Run the desired script in antville/db for either PostgreSQL or MySQL
|
|
|
|
|
7. Copy contents of antville/extra/apps.properties to helma/apps.properties
|
|
|
|
|
8. If necessary, enable MySQL compatibility in apps.properties
|
2010-02-03 11:18:08 +00:00
|
|
|
|
9. Start up Helma and browse to http://localhost:8080/antville
|