ownCloud is a PHP-based file sync and share solution. It can be extended with apps for Contacts, Calendars and Tasks.
To use both CalDAV and CardDAV in the same account and just using the host name as URL, configure well-known URLs (recommended).
OwnCloud 8 and below:
For CalDAV use:
For CardDAV use:
Contact group method: groups are per-contact categories
User name and password: same as in ownCloud
(LDAP authentication may cause problems with certain OwnCloud apps)