Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.0 KiB

(For detailled configuration and administration instructions, see the
DAViCal Wiki on <http://wiki.davical.org/w/Main_Page>.)
CREATE THE DATABASE BACKEND
After installing the package, you must run the dba/create-database.sh
script to automatically create the PostgreSQL database needed by
DAViCal. PostgreSQL must have been compiled with Perl support (that
should be the case if you used the ap/postgresql SlackBuild), and the
Perl packages YAML and DBD::Pg must be installed.
Assuming the master user of PostgreSQL is `postgres' and that it can
connect to the local cluster without a password, run the script as
follows:
$ PGUSER=postgres /usr/share/davical/dba/create-database.sh
This will create a database named `davical' and two users `davical_dba'
and `davical_app'. Note the auto-generated password for the `admin'
user, you'll need it to log yourself on the DAViCal web interface.
HTTPD/PHP CONFIGURATION
It is not necessary anymore to use a VirtualHost dedicated to DAViCal
(although you can still do so). The easiest setup is to add the
following lines in /etc/httpd/httpd.conf:
Alias /cal/ "/usr/share/davical/htdocs/"
<Directory "/usr/share/davical/htdocs">
Order allow,deny
Allow from all
php_value include_path "/usr/share/awl/inc"
</Directory>
(or include the /etc/httpd/extra/httpd-davical.conf file provided with
this package).
You must then enable the PostgreSQL extension for PHP, if you have not
already done so. See the README_PHP.txt file in the ap/postgresql
SlackBuild directory.
Restart your httpd server and you may now connect to
http://yourserver/cal/, and DAViCAL should warn you that it needs to be
configured. Create a configuration file in /etc/davical, named after the
FQDN of your host (yourserver-conf.php).
That's it. DAViCal is ready. Use the web interface to create an user,
and configure your client to access an user's calendar at the following
address:
http://yourserver/cal/caldav.php/username/home/
(note that some clients, such as Evolution, use `caldav://' instead of
`http://').