$$CalDAV$$

||include||style.htm||
||include||body.htm||

### CalDAV Calendaring This provides surgemail standalone CalDAV calendaring support (with shared calendars) for mobile devices and desktop clients, and access by surgeweb.
||ifdef||cmd_tellmail||
To monitor installation progress, DO NOT RELOAD PAGE ||endif|| ||ifdef||cmd_caldav||
    ||do_tellmail||
||endif|| ||if(not(istrue(caldav_installed)))||
Installation status: $$NOT INSTALLED$$ |  |
||else|| ||iftrue(caldav_should_upgrade)||
Newer version of SabreDAV / PHP is available, upgrade by pressing "update current install" button below. This will: Upgrade your calendaring database to use the file: scripts/data/caldb_v2.sqlite instead of scripts/data/caldb.sqlite Use Sabredavb version 3.1.1 instead of 1.6.2 Use php 7+. On windows this will be automatically installed. On unix configurations you will need to install this yourself and update g_web_php_exe to point at the new php-cgi 7+ binary if there are any issues with the upgrade, you can restore your previous configuration by removing the setting: g_calendar_version "2" ||else|| ||iftrue(caldav_should_upgrade_minor)||
Newer version of SabreDAV / PHP is available, upgrade by pressing "update current install" button below. This will: Update the surgemail/phplib/* files ||endif|| ||endif||
#### Installation status: $$INSTALLED$$
CalDAV already installed and enabled, to test the interface connect to: 1. Verify php is running test php (if not, on unix you may need to point g_web_php_exe at the system php-cgi executable. eg "/usr/local/bin/php-cgi"; or on windows install the VS2015 redistributables) 2. Verify SabreDAV environment is valid test php (you may need additional php modules) 3. Verify authentication integration test php (need to login with full "user@domain.com") 4. Connect using surgeweb or mobile client (eg iOS device) ||endif||
Display of caldav calendars within surgeweb is configurable at the bottom of surgeweb customisation page If there are any problems getting the calendaring to work see documentation installation walkthrough. NOTE: On windows the installer will install a standalone running php-cgi install in the surgemail/php directory. On unix you will need to make sure you have PHP 7.0+ (with the modules: PDO, PDO_SQLITE, PHP_IMAP) installed and g_web_php_exe points to this. ||if(istrue(caldav_installed))||
Troubleshoot Calendars: ||fixcal_results|| Check for events with faulty date formatting ||endif||