343382a6b9
Former-commit-id: d2bf7f60f3
187 lines
No EOL
6.5 KiB
Markdown
Executable file
187 lines
No EOL
6.5 KiB
Markdown
Executable file
# INSTALLING Baïkal
|
|
|
|
This document is a part of the Baïkal project. Baïkal is an open
|
|
source lightweight CalDAV and CardDAV server released under the GNU GPL. Baïkal
|
|
is copyright (c) 2012 by Jérôme Schneider.
|
|
|
|
Baïkal homepage is http://baikal.codr.fr
|
|
|
|
This document describes the system requirements for Baïkal and the
|
|
installation routine.
|
|
|
|
# 1 - System requirements
|
|
|
|
Baïkal is based on PHP 5.3.0, and uses a SQLite3 with PHP PDO. This
|
|
document does not cover the installation of these requirements.
|
|
|
|
## 1.1 - System requirements for FTP-driven hosting
|
|
|
|
The following configuration is the minimum required:
|
|
|
|
- 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
|
|
|
|
## 1.2 - System requirements for dedicated server hosting
|
|
|
|
The following configuration is the minimum required:
|
|
|
|
- an Apache2 web server capable of running PHP, and accessible thru a
|
|
dedicated subdomain (something like "dav.mydomainname.com")
|
|
NOTE: this document only covers sub-domain based installations. Other
|
|
installations modes are possible, though not documented (yet).
|
|
|
|
- root access to a command line on this server
|
|
NOTE: tools to create and manage users are command line only. Web-based
|
|
interfaces will be produced in the future.
|
|
|
|
- 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
|
|
|
|
- Apache configuration that activates "FollowSymlinks"
|
|
|
|
# 2 - Obtaining Baïkal
|
|
|
|
To get Baïkal, navigate to the following location:
|
|
http://baikal.codr.fr/
|
|
|
|
# 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
|
|
|
|
### 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
|
|
directory on your server. The location must be accessible to the web server.
|
|
Usually, it will be something like /var/www/
|
|
|
|
# a. Enter the directory where the websites are stored
|
|
$ root:~> cd /var/www
|
|
|
|
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
|
|
|
|
# b. Unpack the package using:
|
|
$ root:/var/www> tar xzf baikal-0.2.0.tgz
|
|
|
|
Rename the untar'd directory to the name of your baikal dedicated subdomain.
|
|
|
|
# c. Rename the directory to match your domain (good practice)
|
|
$ root:/var/www> mv baikal-0.2.0 dav.mydomain.com
|
|
|
|
# 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
|
|
$ root:/var/www/dav.mydomain.com> chown www-data:www-data . -Rf
|
|
|
|
### 3.2.2 - Setting up the Apache virtualhost
|
|
|
|
Baïkal must be bound to a domain/subdomain in order to run properly.
|
|
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.
|
|
|
|
In our example, we will assume that the apache2 configuration directory is:
|
|
/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
|
|
|
|
### 3.2.3 - Setting up Baïkal
|
|
|
|
In a web browser, navigate to http://dav.mydomain.com and follow the instructions of the initialization web tool
|
|
|
|
# 4 - Connecting your CalDAV / CardDAV client to Baïkal
|
|
|
|
## 4.1 - Apple iCal:
|
|
|
|
Add a new CalDAV account:
|
|
|
|
* 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
|
|
|
|
## 4.2 - Apple Address Book:
|
|
|
|
Add a new CardDAV account:
|
|
|
|
* 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
|
|
|
|
## 4.3 - Thunderbird/Lighning:
|
|
|
|
Add a new CalDAV account:
|
|
|
|
* 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
|
|
|
|
# 5 - You're done
|
|
|
|
You may now create new calendars, new events, new visit cards :) Enjoy.
|
|
|
|
# 6 - Troubleshooting
|
|
|
|
For troubleshooting read the FAQ below. If your problem is not listed, contact
|
|
me after reading README.md
|
|
|
|
# 7 - FAQ
|
|
|
|
Q: Why is the Baïkal logo a fish ?
|
|
|
|
A:The fish is an Omul. According to Wikipedia
|
|
(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. |