|
Installation
InstallationTo use SabreDAV you'll need a recent version of PHP 5. At a minimum you currently need the DOM and simplexml extensions. In most cases this is installed by default, but if this is not the case, you might have to go to pecl. SabreDAV has been tested with:
Nginx is not recommended, as it's not compatible with the Finder client. For more information, read the Finder page. Apache with mod_php is currently the best choice. Lighttpd also has issues. It has a hardcoded list of HTTP methods it allows, and it doesn't include MKCALENDAR and ACL (any many others, but these two are actually used in SabreDAV). So unless you don't expect to use these methods, Lighttpd may not be an option. this issue has a patch that will allow support for MKCALENDAR. SabreDAV is supported on PHP versions 5.2.6 and higher. Support for PHP 5.2 will eventually drop. Running on PHP 5.1 has been done, but this is unsupported. Some hackery is required. For more info check the PHP5.1 documentation. You can install SabreDAV through PEAR, or manually. PEAR installationIf you don't have a working PEAR installation yet, head over the the PEAR installation instructions. If you have PEAR up and running, install with the following command: pear channel-discover pear.sabredav.org pear install sabredav/Sabre_DAV If you also want to install CalDAV support, simply add: pear channel-discover pear.sabredav.org pear install sabredav/Sabre_CalDAV Manual installationYou can also download the latest package manually. This package is distributed as a zip file, and contains all the files for all the pear packages. This will create a Sabre_DAV-x.x.x directory with all the required files. Likely the only directory you really need is the lib/ directory, which is where all the php files are. If you want to use Sabre_DAV, just include lib/Sabre/autoload.php and you're off. Next stepsFor more information on how to use SabreDAV, head over to the GettingStarted page. | |