2010-05-23 23:36:30 +02:00
|
|
|
===========================================================================
|
2010-11-13 01:27:24 +01:00
|
|
|
$NetBSD: MESSAGE,v 1.4 2010/11/13 00:27:24 jym Exp $
|
2010-05-23 23:36:30 +02:00
|
|
|
|
|
|
|
For pkgsrc installations, DAViCal's package is installed in non-default
|
|
|
|
locations:
|
|
|
|
|
|
|
|
Document root: ${DAVICALDIR}/htdocs
|
|
|
|
Configuration file: ${PKG_SYSCONFDIR}/config.php
|
|
|
|
|
2010-11-13 01:27:24 +01:00
|
|
|
If you are upgrading from a previous version, see
|
|
|
|
|
|
|
|
http://wiki.davical.org/w/Release_Notes
|
|
|
|
|
|
|
|
for how to perform a database upgrade.
|
|
|
|
|
2010-05-23 23:36:30 +02:00
|
|
|
To complete the installation of DAViCal, follow these steps:
|
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
1. Create DAViCal's app (application) and dba (database admin) acounts.
|
|
|
|
Depending on your PostgreSQL setup, this could be done in different
|
|
|
|
ways, like:
|
2010-05-23 23:36:30 +02:00
|
|
|
|
|
|
|
$ su pgsql
|
|
|
|
$ createuser -D -R -S --pwprompt davical_app
|
|
|
|
<enter davical_app passwd>
|
|
|
|
$ createuser -D -R -S --pwprompt davical_dba
|
|
|
|
<enter davical_dba passwd>
|
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
Consider editing pg_hba.conf file to grant access for both accounts
|
|
|
|
to the soon to be created 'davical' database.
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
2. Adapt DAViCal's configuration files to your setup:
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
${PKG_SYSCONFDIR}/administration.yml (used for davical_dba)
|
|
|
|
${PKG_SYSCONFDIR}/config.php (used for davical_app)
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
Look for 'pg_connect', 'system_name', 'admin_email', and 'default_locale'
|
|
|
|
in config.php.
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
3. To ease DAViCal's database creation, you can use the following script:
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
${DAVICALDIR}/dba/create-database.sh
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
To work properly, it needs to be executed with a PostgreSQL's superuser
|
|
|
|
account, and requires access to administration.yml file (see step 2.).
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
At the end, the script will output the password of the www 'admin'
|
|
|
|
account for DAViCal. Keep it in mind, it will be used at step 5.
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
4. You will need to make DAViCal accessible through your HTTP server.
|
2010-05-23 23:36:30 +02:00
|
|
|
If you are running Apache and ap-php, you can use the following file:
|
|
|
|
|
|
|
|
${PKG_SYSCONFDIR}/davical.conf
|
|
|
|
|
|
|
|
and add an Include directive directly within Apache configuration:
|
|
|
|
|
|
|
|
Include ${PKG_SYSCONFDIR}/davical.conf
|
|
|
|
|
2010-11-12 20:13:53 +01:00
|
|
|
then restart Apache. Note that Davical requires the following PHP
|
|
|
|
extensions to be loaded: pdo.so, pdo_pgsql.so, pgsql.so, iconv.so and
|
|
|
|
gettext.so.
|
2010-05-23 23:36:30 +02:00
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
5. You should now be able to access DAViCal through the URL configured
|
|
|
|
at step 4. At login page, enter the following credentials:
|
2010-05-23 23:36:30 +02:00
|
|
|
|
|
|
|
Login: admin
|
|
|
|
Password: <the one obtained in step 3.>
|
|
|
|
|
|
|
|
Validate, then follow the steps to create user accounts. See DAViCal
|
|
|
|
online documentation for further information:
|
|
|
|
|
2010-06-03 01:27:56 +02:00
|
|
|
${HOMEPAGE}
|
2010-05-23 23:36:30 +02:00
|
|
|
|
|
|
|
===========================================================================
|