{{tag>[davical caldav centos]}} =====DaviCAL - CentOS 6.4===== [[http://www.davical.org/installation.php|DAViCal Installation documentation]] ====Requirements==== * AWL * Apache * PHP * PostgreSQL ====Install requirements==== yum -y install httpd mod_ssl php postgresql-server php-pdo php-pgsql perl-DBI perl-YAML.noarch libdbi-dbd-pgsql perl-DBD-Pg policycoreutils-python* chkconfig postgresql initdb chkconfig postgresql on chkconfig httpd on ====Configure database==== vi /var/lib/pgsql/data/pg_ident.conf root root postgres vi /var/lib/pgsql/data/pg_hba.conf #Add below: # TYPE DATABASE USER CIDR-ADDRESS METHOD local davical davical_app trust local davical davical_dba trust service postgresql restart su - postgres /usr/share/davical/dba/create-database.sh ====Install DAViCal==== cd /root wget http://debian.mcmillan.net.nz/packages/awl/awl-0.53.tar.gz wget http://debian.mcmillan.net.nz/packages/davical/davical-1.1.1.tar.gz tar zxvf awl-0.53.tar.gz tar zxvf davical-1.1.1.tar.gz mv awl-0.53/ davical-1.1.1/ /usr/share/ cd /usr/share ln -s davical-1.1.1 davical ln -s awl-0.53 awl ====Configure DAViCal==== mkdir /etc/davical cp /usr/share/davical/config/example-config.php /etc/config.php Edit config.php as needed. ====Configure Apache==== vi /etc/httpd/conf/httpd.conf Listen 8443 NameVirtualHost 123.4.56.78:8443 vi /etc/httpd/conf.d/davical.conf SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key DocumentRoot /usr/share/davical/htdocs DirectoryIndex index.php index.html ServerName davical.example.net ServerAlias calendar.example.net Alias /images/ /usr/share/davical/htdocs/images/ php_value include_path /usr/share/davical/inc:/usr/share/awl/inc php_value magic_quotes_gpc 0 php_value register_globals 0 php_value error_reporting "E_ALL & ~E_NOTICE" php_value default_charset "utf-8" ====Set apache rights / selinux==== chown -R apache:apache /usr/share/davical/htdocs semanage fcontext -a -t httpd_sys_content_t "/usr/share/davical-1.1.1" semanage fcontext -a -t httpd_sys_content_t "/usr/share/davical-1.1.1/htdocs(/.*)?" semanage fcontext -a -t httpd_sys_content_t "/usr/share/awl-0.53(/.*)?" restorecon -r -v /usr/share/davical-1.1.1/htdocs restorecon -r -v /usr/share/awl-0.53 restorecon -r -v /usr/share/davical ====Set PHP timezone==== vi /etc/php.ini date.timezone = Europe/Amsterdam ====Set DAViCal locale==== vi /etc/davical/config.php $c->default_locale = "nl_NL";