轻量级的 NextCloud 兼容 WebDAV 服务器
This is a simple and lightweight WebDAV server, allowing to easily set up a file sharing server compatible with WebDAV and NextCloud clients. It has no dependencies and good performance.
It is written in PHP (8+). The only dependency is SQLite3 for the database.
Its original purpose was to serve as a demo and test for the KD2 WebDAV library, which we developed for Paheko, our non-profit management solution, but it can also be used as a simple but powerful file sharing server.
If you are looking for an even lighter WebDAV server, try also our other server, PicoDAV. It isn't compatible with NextCloud/ownCloud/OpenCloud clients, but it is a single file that you can drop anywhere in your document root, nothing to install!
HEAD requests (only MD5 is supported so far)PROPPATCH and Win32LastModifiedTime or {DAV:}lastmodified propertiesContent-MD5 with PUT requests, see dCache documentation for details.trash folder before being deleted completelyKaraDAV is compatible with ownCloud, OpenCloud and NextCloud clients, because on Android there is not much nice WebDAV clients, and on desktop their clients allow for two-way sync, which no other WebDAV client provides.
The following specific (not part of WebDAV) features are supported:
X-OC-MTime header to set file modification time (also supported by rclone)OC-Checksum header to verify file upload integrityREADME.md displayed on top of directory listing on Android app) and workspace notes editingKaraDAV is not a drop-in replacement for NextCloud. It is not intended to be. It is just focused on files.
| Feature | KaraDAV | NextCloud | OCIS/OpenCloud |
|---|---|---|---|
| License | AGPL | AGPL | AGPL |
| Language | PHP (no framework) | PHP | Go |
| Ease of setup | Easy | Easy | Very complex |
| Speed | Fast | Sloooow | Average? |
| Package size | 800 MB | ~200 MB | |
| Lines of code | ~7500 lines | ~2,200,000 lines | ~3,150,000 lines |
| WebDAV library | KD2 | SabreDAV | gowebdav/Radicale |
| WebDAV compliance | 3/5 | 4/5 | 4/5 |
| Linux clients | ✅ | ✅ | ✅ |
| Windows clients | ✅ | ✅ | ✅ |
| Mac clients | ✅ | ✅ | ✅ |
| Android clients | ✅ | ✅ | ✅ |
| iOS clients | Untested | ✅ | ✅ |
| Trashbin | ✅ | ✅ | ✅ |
| Chunked upload of large files | ✅ | ✅ | ✅ |
| Notes | ✅ | ✅ | ✅ |
| File versioning | Planned | ✅ | ✅ |
| File sharing | Planned | ✅ | ✅ |
| File searching | Planned | ✅ | ✅ |
| Calendar | ❌ | ✅ | ✅ |
| Contacts | ❌ | ✅ | ✅ |
| Install other apps | ✅¹ | ✅ | ✅ |
| 2FA | ❌ | ✅ | ✅ |
| LDAP | ✅ | ✅ | ✅ |
| Database | SQLite | SQLite, PostgreSQL, MySQL | Filesystem |
| Web UI | Minimal | Advanced, but clunky | Basic |
| Commercial support | ❌ | ✅ | ✅ |
This server should be compatible with ownCloud and NextCloud synchronization clients (desktop, mobile, CLI).
We recommend the ownCloud or OpenCloud apps, as they are more stable and lighter :)
Note that even though it has been tested with NC/OC clients, KaraDAV might stop working at any time with these clients if their publishers decide so.
| Client | Type | Working? | Notes |
|---|---|---|---|
| ownCloud | Files sync | ✅ | Recommended |
| ownCloud CLI | Files sync | ✅ | |
| NextCloud | Files sync | ✅ | |
| NextCloud CLI | Files sync | ✅ | make sure to pass options before parameters |
| OpenCloud | Files sync | ? | Untested. Should work (ownCloud fork). |
| Iotas (GNOME App) | Notes | ✅ | Available in Debian stable (Trixie) |
| qOwnNotes | Notes | ❌ | No support for NextCloud Notes API, requires a custom PHP app on the server |
| Client | Type | Working? | Notes |
|---|---|---|---|
| ownCloud | Files sync | ✅ | Recommended |
| OpenCloud | Files sync | ✅ | Recommended (ownCloud fork) |
| NextCloud | Files sync | ✅ | Will consume a lot of battery on some phones |
| NextCloud Notes | Notes | ✅ | Requires the NextCloud Android app |
| MyOwnNotes | Notes | ✅ | Requires the ownCloud Android app |
| Quillpad | Notes | ✅ | |
| LesPas | Photo gallery | ✅ | |
| Yaga | Photo gallery | ? | Not sure how this app is supposed to work? |
| Memories Android | Photo gallery | ❌ | Requires a custom PHP app on the server |
The NextCloud and ownCloud iOS clients have issues. They are currently blocked in KaraDAV, to make sure they can't delete any data by error.
I don't own an Apple device. If someone with an Apple device wants to do some testing and suggest a patch, please change BLOCK_IOS_APPS to false in config.local.php (see configuration doc).
NextCloud as the WebDAV vendor to enable advanced sync features.use_locks=0 in the config. Other recommended options are gui_optimize=1 and delay_upload=0. See manpage for details.http with owncloud, and https with ownclouds in URL, eg. csync /home/username/sync ownclouds://karadav.example/files/username/KaraDAV has been tested successfully with:
See the roadmap.
See specific install documentation.
This depends on the KD2\WebDAV and KD2\WebDAV_N
暂无开放 Issues,或尚未同步最近议题。