1.1 KiB
1.1 KiB
Installing KaraDAV
- Setup your server with PHP 8.0+, and don't forget
php-sqlite3
andphp-simplexml
:) - Just download or clone this repo
- Copy
config.dist.php
toconfig.local.php
- Edit
config.local.php
and change constants to match your configuration - Create a virtual host (nginx, Apache, etc.) pointing to the
www
folder - Redirect all requests to
www/_router.php
- Go to your new virtual host, a default admin user is created the first time you access the UX, with the login
demo
and the passwordkaradavdemo
, please change it.
Example Apache vhost
<VirtualHost *:80>
ServerName karadav.localhost
DocumentRoot /home/user/git/karadav/www
</VirtualHost>
<Directory /home/user/git/karadav/www>
Options -Indexes -Multiviews
AllowOverride None
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ /_router.php [L]
</Directory>
Using Docker
docker build -t karadav .
docker run -d -t --name karadav -p 8080:8080 -v dav-data:/var/karadav/data karadav