2012-05-12 17:47:52 -04:00
|
|
|
# INSTALLING Baïkal
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
This document is a part of the Baïkal project. Baïkal is an open
|
2012-02-27 15:45:36 -05:00
|
|
|
source lightweight CalDAV and CardDAV server released under the GNU GPL. Baïkal
|
|
|
|
is copyright (c) 2012 by Jérôme Schneider.
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
Baïkal homepage is http://baikal.codr.fr
|
|
|
|
|
|
|
|
This document describes the system requirements for Baïkal and the
|
2012-02-27 15:45:36 -05:00
|
|
|
installation routine.
|
|
|
|
|
2012-05-12 12:45:43 -04:00
|
|
|
# 1 - System requirements
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
Baïkal is based on PHP 5.3.0, and uses a SQLite3 with PHP PDO. This
|
2012-02-27 15:45:36 -05:00
|
|
|
document does not cover the installation of these requirements.
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
## 1.1 - System requirements for FTP-driven hosting
|
2012-05-12 12:45:43 -04:00
|
|
|
|
2012-02-27 15:45:36 -05:00
|
|
|
The following configuration is the minimum required:
|
2012-05-12 12:45:43 -04:00
|
|
|
|
|
|
|
- an hosted webserver running apache 2 and PHP 5.3.0
|
|
|
|
|
|
|
|
- PHP 5.3.0 or newer with the following extensions:
|
|
|
|
- PDO and SQLite3
|
|
|
|
Some extensions can be optionally compiled into PHP. A list of loaded
|
|
|
|
extensions can be checked using the phpinfo() function.
|
|
|
|
|
|
|
|
- 30 MB of disk space
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
## 1.2 - System requirements for dedicated server hosting
|
2012-05-12 12:45:43 -04:00
|
|
|
|
|
|
|
The following configuration is the minimum required:
|
|
|
|
|
2012-02-27 15:45:36 -05:00
|
|
|
- an Apache2 web server capable of running PHP, and accessible thru a
|
2012-03-04 14:39:32 -05:00
|
|
|
dedicated subdomain (something like "dav.mydomainname.com")
|
2012-02-27 15:45:36 -05:00
|
|
|
NOTE: this document only covers sub-domain based installations. Other
|
2012-03-04 14:39:32 -05:00
|
|
|
installations modes are possible, though not documented (yet).
|
2012-05-12 12:45:43 -04:00
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
- root access to a command line on this server
|
2012-02-27 15:45:36 -05:00
|
|
|
NOTE: tools to create and manage users are command line only. Web-based
|
2012-03-04 14:39:32 -05:00
|
|
|
interfaces will be produced in the future.
|
2012-05-12 12:45:43 -04:00
|
|
|
|
|
|
|
- PHP 5.3.0 or newer with the following extensions:
|
2012-03-04 14:39:32 -05:00
|
|
|
- PDO and SQLite3
|
2012-02-27 15:45:36 -05:00
|
|
|
Some extensions can be optionally compiled into PHP. A list of loaded
|
2012-03-04 14:39:32 -05:00
|
|
|
extensions can be checked using the phpinfo() function.
|
2012-05-12 12:45:43 -04:00
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
- 30 MB of disk space
|
2012-05-12 12:45:43 -04:00
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
- Apache configuration that activates "FollowSymlinks"
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
# 2 - Obtaining Baïkal
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
To get Baïkal, navigate to the following location:
|
2012-02-27 15:45:36 -05:00
|
|
|
http://baikal.codr.fr/
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
# 3 - Installation
|
|
|
|
|
|
|
|
## 3.1 - Installing Baïkal on a FTP-driven hosting
|
|
|
|
|
|
|
|
To install Baïkal on a FTP-driven hosting:
|
|
|
|
* Download the "Baikal package for installation via FTP"
|
|
|
|
* Unzip the package on you computer
|
|
|
|
* Send the unzipped package on the remote host via FTP
|
|
|
|
* (optional) Rename the Baïkal folder to whatever you want
|
|
|
|
* Navigate to the HTTP URL where you just uploaded Baïkal
|
|
|
|
* Follow the instructions of the initialization web tool
|
|
|
|
|
|
|
|
## 3.2 - Installing Baïkal on a dedicated host
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
### 3.2.1 - Unpacking files
|
|
|
|
|
|
|
|
To install Baïkal on a dedicated host, download the "Baïkal package".
|
|
|
|
Unpack the source package outside of the web site root
|
2012-03-04 14:39:32 -05:00
|
|
|
directory on your server. The location must be accessible to the web server.
|
2012-02-27 15:45:36 -05:00
|
|
|
Usually, it will be something like /var/www/
|
|
|
|
|
|
|
|
# a. Enter the directory where the websites are stored
|
|
|
|
$ root:~> cd /var/www
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
Unpacking will produce a directory with a name like baikal-x.y.z, where x.y.z
|
|
|
|
correspond to the Baïkal version. For example, the Baïkal 0.2.0 source package
|
|
|
|
will create a directory named baikal-0.2.0
|
2012-02-27 15:45:36 -05:00
|
|
|
|
|
|
|
# b. Unpack the package using:
|
2012-05-12 17:47:52 -04:00
|
|
|
$ root:/var/www> tar xzf baikal-0.2.0.tgz
|
2012-02-27 15:45:36 -05:00
|
|
|
|
|
|
|
Rename the untar'd directory to the name of your baikal dedicated subdomain.
|
|
|
|
|
|
|
|
# c. Rename the directory to match your domain (good practice)
|
2012-05-12 17:47:52 -04:00
|
|
|
$ root:/var/www> mv baikal-0.2.0 dav.mydomain.com
|
2012-02-27 15:45:36 -05:00
|
|
|
|
|
|
|
# d. Enter the new Baïkal directory
|
|
|
|
$ root:/var/www> cd dav.mydomain.com
|
|
|
|
|
|
|
|
In order to grant Apache access to the files of your Baïkal installation,
|
|
|
|
you'll have to grant the user running the apache process r+w permissions on
|
|
|
|
the Baïkal files. In our example, we will suppose the linux username/usergroup
|
|
|
|
running Apache is www-data:www-data
|
|
|
|
|
|
|
|
# e. Change permissions on the files
|
2012-02-27 15:53:50 -05:00
|
|
|
$ root:/var/www/dav.mydomain.com> chown www-data:www-data . -Rf
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
### 3.2.2 - Setting up the Apache virtualhost
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
Baïkal must be bound to a domain/subdomain in order to run properly.
|
2012-02-27 15:45:36 -05:00
|
|
|
This package provides a default virtualhost configuration file for Apache 2 in
|
|
|
|
Specific/virtualhosts/baikal.apache2
|
|
|
|
|
|
|
|
To enable your host to run Baïkal, you'll have to add the Baïkal virtualhost
|
|
|
|
to your Apache environment.
|
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
In our example, we will assume that the apache2 configuration directory is:
|
2012-02-27 15:45:36 -05:00
|
|
|
/etc/apache2
|
|
|
|
|
|
|
|
# a. Enter the Apache2 configuration directory
|
|
|
|
$ root:/var/www> cd /etc/apache2
|
|
|
|
|
|
|
|
# b. Enter the sites-available directory
|
|
|
|
$ root:/etc/apache2> cd sites-available
|
|
|
|
|
|
|
|
# c. Symlink the Baïkal virtualhost file to this directory
|
|
|
|
$ root:/etc/apache2/sites-available> ln -s /var/www/dav.mydomain.com/Specific/virtualhosts/baikal.apache2
|
|
|
|
|
|
|
|
# d. Customize the virtualhost config file
|
|
|
|
$ root:/etc/apache2/sites-available> nano baikal.apache2
|
|
|
|
|
|
|
|
# e. In baikal.apache2, replace references to dav.mydomain.com with your own domain name
|
|
|
|
|
|
|
|
# f. Activate the new virtualhost
|
|
|
|
$ root:/etc/apache2/sites-available> cd ../sites-enabled
|
|
|
|
$ root:/etc/apache2/sites-enabled> ln -s ../sites-available/baikal.apache2
|
|
|
|
|
|
|
|
# h. Restart apache
|
|
|
|
$ root:/etc/apache2/sites-enabled> /etc/init.d/apache2 restart
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
### 3.2.3 - Setting up Baïkal
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
In a web browser, navigate to http://dav.mydomain.com and follow the instructions of the initialization web tool
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
# 4 - Connecting your CalDAV / CardDAV client to Baïkal
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
## 4.1 - Apple iCal:
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-03-22 17:57:31 -04:00
|
|
|
Add a new CalDAV account:
|
2012-03-22 17:58:18 -04:00
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
* username: the username you just created (in our example, jerome)
|
|
|
|
* password: the password you just defined
|
|
|
|
* In server address: http://dav.mydomain.com/cal.php/principals/jerome
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
## 4.2 - Apple Address Book:
|
|
|
|
|
2012-03-22 17:58:18 -04:00
|
|
|
Add a new CardDAV account:
|
|
|
|
|
2012-03-04 14:39:32 -05:00
|
|
|
* username: the username you just created (in our example, jerome)
|
|
|
|
* password: the password you just defined
|
|
|
|
* In server address: http://dav.mydomain.com/card.php/addressbooks/jerome/default
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
## 4.3 - Thunderbird/Lighning:
|
|
|
|
|
2012-03-22 17:57:31 -04:00
|
|
|
Add a new CalDAV account:
|
2012-03-22 17:58:18 -04:00
|
|
|
|
2012-03-22 17:57:31 -04:00
|
|
|
* Navigate to "Lightning" > "New account" > "On the network" > "URL"
|
|
|
|
* paste this URL: http://yourdomain.com/cal.php/calendars/username/default
|
|
|
|
of and replace the domain name, and the username with the correct values
|
|
|
|
* When asked, provide user/password; your CalDAV account should be up and running
|
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
# 5 - You're done
|
2012-02-27 15:45:36 -05:00
|
|
|
|
|
|
|
You may now create new calendars, new events, new visit cards :) Enjoy.
|
|
|
|
|
2012-05-12 17:59:05 -04:00
|
|
|
# 6 - Troubleshooting
|
2012-02-27 15:45:36 -05:00
|
|
|
|
|
|
|
For troubleshooting read the FAQ below. If your problem is not listed, contact
|
2012-02-29 09:12:08 -05:00
|
|
|
me after reading README.md
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:59:05 -04:00
|
|
|
# 7 - FAQ
|
2012-02-27 15:45:36 -05:00
|
|
|
|
2012-05-12 17:47:52 -04:00
|
|
|
Q: Why is the Baïkal logo a fish ?
|
|
|
|
|
|
|
|
A:The fish is an Omul. According to Wikipedia
|
2012-03-22 18:03:57 -04:00
|
|
|
(http://en.wikipedia.org/wiki/Omul): The omul, Coregonus migratorius, also
|
|
|
|
known as Baikal omul (Russian: байкальский омуль), is a whitefish species
|
|
|
|
of the salmon family endemic to Lake Baikal in Siberia, Russia. It is
|
|
|
|
considered a delicacy and is the object of one of the largest commercial
|
|
|
|
fisheries on Lake Baikal. In 2004, it was listed in Russia as an endangered
|
|
|
|
species.
|