Part of the unix-cloud project.
A fully featured webdav server integrated with unix users and mainly based on Sabre/DAV.
It is also dependant on PHP-FPM which allows to easily have one process per user with the correct ownership.
Using Apache and LDAP auth for now.
- Debian dependencies:
sudo apt install apache2 php-fpm php-pgsql composer
- Build all:
make
sudo make setupdb [dbuser=webdav_user] [dbname=webdav] [pguser=postgres]
- copy and edit vhost file:
sudo cp apache.conf /etc/apache2/sites-available/vhost.conf
- enable ldap modules:
sudo a2enmod ldap authnz_ldap
- enable vhost:
sudo a2ensite vhost.conf
- reload apache:
sudo systemctl reload apache2
- for each user, create a pool based on
fpm-pool.conf
- reload fpm:
sudo systemctl reload php7.4-fpm
getent passwd | awk -F: '($3 >= 1000 && $3 < 2000) { printf "\t%d => \047%s\047,\n", $3, $1 }'