FreeBSD

From DAViCal Wiki

Jump to: navigation, search

Tutorial using the ports collection

There is an updated port for davical. As it resolves all dependencies, it's the best way to get davical working.

cd /usr/ports/www/davical
make install clean

After this, to complete the installation of DAViCal:

  • Create the database user:
createuser -U pgsql -S --no-createdb --no-createrole general
  • Create DAViCal's database
su pgsql /usr/local/share/doc/davical/dba/create-database.sh
  • Fix permissions
psql -U pgsql davical -c "grant all on \
awl_db_revision, caldav_data, calendar_item, collection, \
dav_resource, dav_resource_type, freebusy_ticket, \
group_member, locks, principal, principal_type, privilege, \
property, relationship, relationship_type, role_member, \
roles, session, supported_locales, time_zone, tmp_password, \
usr, usr_setting, dav_id_seq, dav_resource_type_resource_type_id_seq, \
principal_principal_id_seq, principal_type_principal_type_id_seq, \
relationship_type_rt_id_seq, roles_role_no_seq, \
session_session_id_seq, usr_user_no_seq \
to general;"
psql -U pgsql davical -c "grant all on database davical to general;"
  • Copy and edit your config file
cp /usr/local/www/davical/config/example-config.php /usr/local/www/davical/config/config.php
  • Enable in apache by copying the httpd-davical.conf from the documentation directory to the Apache Include directory and restart Apache.
cp /usr/local/share/doc/davical/httpd-davical.conf /usr/local/etc/apache22/Includes/

This tutorial was tested using:

  • FreeBSD 7.2-RELEASE or 8.0
  • PostgreSQL 8.2.13
  • Apache 2.2.13
  • PHP 5.2.11
  • DAViCal 0.9.7.6
  • awl 0.38
Personal tools