Difference between revisions of "DAViCal"

From ArchWiki
Jump to: navigation, search
(Fix some style. See Help:Style.)
m (add ja link)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Networking]]
+
[[Category:Web server]]
{{Stub}}
+
[[ja:DAViCal]]
 +
{{Related articles start}}
 +
{{Related|Kcaldav}}
 +
{{Related|AgenDAV}}
 +
{{Related|Radicale}}
 +
{{Related articles end}}
 +
 
 
[http://www.davical.org/ DAViCal] is a server implementing the CalDAV and CardDAV protocol. It's solely a server, with minimal direct user interaction, instead relying on using CalDav clients, such as Apple's iCal.app, iOS (iPhone, iPad, iPod), Thunderbird with Sunbird, or Evolution.
 
[http://www.davical.org/ DAViCal] is a server implementing the CalDAV and CardDAV protocol. It's solely a server, with minimal direct user interaction, instead relying on using CalDav clients, such as Apple's iCal.app, iOS (iPhone, iPad, iPod), Thunderbird with Sunbird, or Evolution.
  
 
==Installation==
 
==Installation==
 
===Installing pre-requisites===
 
===Installing pre-requisites===
DAViCal is written in [[PHP]] and uses the [[PostgreSQL]] database as it's backend to store the calendar information. Currently it only supports PostgreSQL, but there is work to support other databases as well.
 
 
It is available in the AUR: {{AUR|davical}}.
 
 
Install [[PHP]] and [[PostgreSQL]], along with the PHP bindings for PostgreSQL, with pacman:
 
  
# pacman -S postgresql php php-pgsql
+
DAViCal is written in [[PHP]] and uses the [[PostgreSQL]] database as its backend to store the calendar information. Currently it only supports PostgreSQL, but there is work to support other databases as well. [[Install]] {{AUR|davical}}, {{Pkg|postgresql}}, {{Pkg|php}}, and {{Pkg|php-pgsql}}.
  
DAViCal is a web application, and therefore you need a web server set up as well. For this page, [[Nginx]] will be assumed, but DAViCal can run on nearly any web server. (Some may stop processing requests when they see the CalDAV HTTP headers, and therefore DAViCal will not be able to see them.)
+
DAViCal is a web application, and therefore you need a web server set up as well. Here [[Nginx]] will be assumed, but DAViCal can run on nearly any web server (some may stop processing requests when they see the CalDAV HTTP headers, and therefore DAViCal will not be able to see them).
  
 
===Preparing PostgreSQL===
 
===Preparing PostgreSQL===
First of all, you should set up PostgreSQL so it can start up by following [[Postgresql#Installing_PostgreSQL|this guide]].
+
First of all, you should set up PostgreSQL so it can start up by following [[PostgreSQL#Installing_PostgreSQL|this guide]].
  
 
DAViCal requires two independent accounts to be set up, one for accessing the database from the web application, which will be limited in power, and another that will be used for administrating the DAViCal related tables.
 
DAViCal requires two independent accounts to be set up, one for accessing the database from the web application, which will be limited in power, and another that will be used for administrating the DAViCal related tables.
Line 33: Line 34:
 
Prepare database by running create-database.sh script as root:
 
Prepare database by running create-database.sh script as root:
  
  # /srv/http/davical/dba/create-database.sh
+
  # /usr/share/webapps/davical/dba/create-database.sh
  
 
Then run createdb as root:
 
Then run createdb as root:
 
  # createdb
 
  # createdb

Latest revision as of 14:44, 28 February 2016

Related articles

DAViCal is a server implementing the CalDAV and CardDAV protocol. It's solely a server, with minimal direct user interaction, instead relying on using CalDav clients, such as Apple's iCal.app, iOS (iPhone, iPad, iPod), Thunderbird with Sunbird, or Evolution.

Installation

Installing pre-requisites

DAViCal is written in PHP and uses the PostgreSQL database as its backend to store the calendar information. Currently it only supports PostgreSQL, but there is work to support other databases as well. Install davicalAUR, postgresql, php, and php-pgsql.

DAViCal is a web application, and therefore you need a web server set up as well. Here Nginx will be assumed, but DAViCal can run on nearly any web server (some may stop processing requests when they see the CalDAV HTTP headers, and therefore DAViCal will not be able to see them).

Preparing PostgreSQL

First of all, you should set up PostgreSQL so it can start up by following this guide.

DAViCal requires two independent accounts to be set up, one for accessing the database from the web application, which will be limited in power, and another that will be used for administrating the DAViCal related tables.

In order to do so, you will need to edit /var/lib/postgres/data/pg_hba.conf

Add the following lines:

   local   davical         davical_app                             trust
   local   davical         davical_dba                             trust

Make sure that you have a 'root' role in your database. If you don't, create it by becoming the postgres user as described on PostgreSQL page and execute the following:

$ createuser -s -U postgres --interactive
$ Enter name of role to add: root

Prepare database by running create-database.sh script as root:

# /usr/share/webapps/davical/dba/create-database.sh

Then run createdb as root:

# createdb