SabreDAV is an open-source WebDAV server that allows you to easily share and store files over HTTP. It supports a variety of storage backends including local file systems, databases, Amazon S3, and more. In this tutorial, we will walk you through the steps of installing SabreDAV on Debian Latest.
Before you begin, ensure that you have:
Before installing any packages, ensure that your system is up to date with the latest packages by running the command below:
$ sudo apt-get update && sudo apt-get upgrade
SabreDAV requires an Apache2 web server and several PHP modules to function properly. Install these requirements by running the following command:
$ sudo apt-get install apache2 php-intl php-xml php-mbstring php-dom php-curl
SabreDAV is available on Debian’s official repositories. To install it, run the command below:
$ sudo apt-get install sabre-dav
After installing SabreDAV, the server configuration file will be located at /etc/sabreDav/
. Open the file sabredav.php
with your preferred text editor:
$ sudo nano /etc/sabreDav/sabredav.php
Next, you may want to customize the configuration settings to fit your needs.
The default configuration file is well documented and has all the settings you need. Some of the most important settings include the following:
'PDO' => array('dsn' => 'sqlite:/var/www/webdavDB.sqlite'),
- This sets the location and name of the SQLite database that SabreDAV will use.'auth_backend' => 'Sabre\DAV\Auth\Backend\File',
- This sets the authentication backend to use for SabreDAV. The default is file-based authentication. 'realm' => 'SabreDAV',
- This sets the realm for SabreDAV.Once you have made your changes, save and close the file.
To start the Apache2 web server, run the command below:
$ sudo systemctl start apache2
To start SabreDAV, run the command below:
$ sudo systemctl start sabredav
Once SabreDAV is running, you can access it by going to your web browser and typing the following URL:
http://your-server-ip/sabredav
SabreDAV should now be up and running on your Debian Latest machine!
In this tutorial, you learned how to install SabreDAV on Debian Latest. Now you can easily share and store files over HTTP with SabreDAV.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!