Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I setup CalDav and CardDav servers on my Mac to enable local 'cloud' syncing in Mavericks

I've decided to start off a new thread having initially posted on How to locally sync an iPhone with OS X Mavericks? iCloud is NOT an option.


It is clear to me that it is possible to establish syncing locally without going outside one's own home, and without internet access. I am bugged by the fact that the previous service has gone without any user focussed warning, but I am keen to find a way of solving the problem. If you are just frustrated, I'd be grateful if you can keep your annoyance off this thread.


My guess is that a CalDav and CardDav server hosted on my own Mac can be set upt to sync with my iPhone (3GS) either on a Computer-to-Computer (ad hoc) network or via my own home LAN. The trouble is I am not network/Apache savvy enough to use it.


I am reluctant to fork out an additional amount for the Mavericks server as I don't have any other foreseeable need for it, but Mavericks comes with Apache pre-loaded and there is a very light, simple and free open source CalDav and CardDav server in Baïkal. The trouble is I am not apache/network savvy enough to make use of it, and basically I am stumbling along in the near dark with terminal.


There are some good resources for setting up Apache and for setting up Virtual Hosts which would host my personal 'cloud', and Baïkal also comes with setup guides as well. The trouble is, I don't quite have enough knowledge to marry the two together. Is there anyone contributing to or watching this thread who has the know-how to do a proper step by step guide for running Baïkal on Apache as installed in the Mavericks OS, and setting up a local 'cloud'.


AFAICT the problem with the resources I have found is that the Apache stuff I've found doesn't particularly focus on running Baïkal, and the Baïkal documentation is not specific to Apache on Mavericks. Is there anyone out there who can give me some help with this?


Can anyone help - please? 😐

OS X Mavericks (10.9)

Posted on Nov 11, 2013 12:46 PM

Reply
135 replies

Nov 26, 2013 7:44 PM in response to Barney-15E

And yes, I haven't tried the instructions yet. I will do so when I'm back in The Netherlands and close to my back up system. If I need something to download or repair, it's better not to be alone with my MB in this restricted environment in China :-)) It looks like any hiccups might have been flattened out once I get to run the instructions then :-))

Nov 28, 2013 7:51 AM in response to James Richards

I have now got local syncing up and running with CalDAV and CardDAV servers on my own MacBook running Mavericks without needing internet access to enable syncing using a combination of Barney-15E's tutorial together with some adjustments for my own specific situation which I have posted on the other thread. My only outstanding problem is this:

I have some contacts and calendars which are synced through Google for others to access. Previously all this 'public' syncing was handled by my laptop, and my phone was then kept in sync with my laptop via Sync Services, which could be done even when I had no internet access. Now, however, as far as I can tell, those contacts and calendars which need to be publicly synced can only be kept in sync between my laptop and iPhone when I have internet access. Ideally I would choose to do all my syncing between phone and laptop on a local basis and then let my laptop keep the public contacts and calendars up to date when I have internet access. As far as I can see this can't be done when the local syncing goes through the CalDAV/CardDAV server method since calendars and contacts can only be answerable to one server. Does anyone have any ideas on how to solve this? Does it need a separate thread?

Nov 28, 2013 5:14 PM in response to Barney-15E

Hi Barney, can I use your instruction to install the Baikal server in Mountain Lion? I tried but came across problems. I posted the details in the long thread but here they are again:


Here are my last steps:


In Terminal:

xxxx:~ admin$ apachectl configtest

Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist

Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist

[Thu Nov 28 14:51:31 2013] [warn]

Syntax OK

xxxx:~ admin$ sudo apachectl start

xxxx:~ admin$


Your instruction:

Your server should now be running. Go to your browser and enter this address: https://localhost:8443

In Web browser:

exception 'Exception' with message 'Specific/ dir is readonly. Baïkal Admin requires write permissions on this dir.' in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/BaikalAdmin/Cont roller/Install/Initialize.php:38

Stack trace:

#0 /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Core/Rende r/Container.php(62): BaikalAdmin\Controller\Install\Initialize->execute()

#1 /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Controller /Page.php(79): Flake\Core\Render\Container->execute()

#2 /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/BaikalAdmin/WWWR oot/install/index.php(77): Flake\Controller\Page->render()

#3 {main}


I tried to change some files/folders permissions without really knowing what I was doing. This was all done in an admin account. I usually use my Mac with a standard account. When I logged back into the standard account I got the following message when trying https://localhost:8443:


Baïkal Install Tool is locked.

To unlock it, create (or re-create if it exists already) an empty file namedENABLE_INSTALL (uppercase, no file extension) in the Specific/ folder of Baïkal.


Do you see something obvious here? Thanks

Dec 1, 2013 8:04 AM in response to James Richards

Has anyone configured a PowerPC Leopard (Mac OS X 10.5.8) or PowerPC Leopard Server (10.5.8 Server) to support CardDav and CalDav syncing for Mavericks Macs? I have an old PowerPC Mac Mini that I would like to setup on the local family network as a CardDav and CalDav server to sync several family Macs, iPhones, and an iPad. The Macs will someday soon be running Mavericks.


I have a legitimate copy of Leopard Server, but unfortunately it does not include CardDav support for syncing AddressBook/Contacts. In addition, I wonder whether the Leopard Server implementation of CalDav is compatible with Mavericks.


I hate to invest too much effort to configure CardDav and CalDav services on that PowerPC Mac Mini, only to find that it won't work. Any thoughts or recommendations would be welcome.

Dec 1, 2013 1:59 PM in response to veda1

Veda1, I responded on the other thread, but it's such a mess, I'll duplicate it here.


You didn't edit the virtual host config file, httpd-vhosts.conf, correctly.

The only uncommented lines should look like this:


NameVirtualHost *:8443


<VirtualHost *:8443>

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /private/etc/apache2/ssl/ssl.crt

SSLCertificateKeyFile /private/etc/apache2/ssl/ssl.key

ServerName dav.baikal-server

DocumentRoot "/Library/WebServer/Documents/dav.baikal-server/html"

</VirtualHost>


Also, it appears you didn't set the permissions as noted in steps 4. and 5. of Installing the Server Code.

Dec 1, 2013 2:48 PM in response to Barney-15E

Thanks Barney. I had only commented out the line: NameVirtualHost *:80 as asked in your instruction. It was not obvious to me that I needed to comment out the rest. Doing it removed the first error message. I still get this one:


Baïkal Install Tool is locked.


To unlock it, create (or re-create if it exists already) an empty file named ENABLE_INSTALL (uppercase, no file extension) in the Specific/ folder of Baïkal.


There was already a file with this name in that folder. I recreated it, empty and withtout file extension, as instructed but the same message comes back.


It seems that I am getting closer but face that hurdle :-)

Dec 1, 2013 2:51 PM in response to veda1

The httpd-vhosts.conf file now looks like this:


# NameVirtualHost *:80



#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for all requests that do not

# match a ServerName or ServerAlias in any <VirtualHost> block.

#

# <VirtualHost *:80>

# ServerAdmin webmaster@dummy-host.example.com

# DocumentRoot "/usr/docs/dummy-host.example.com"

# ServerName dummy-host.example.com

# ServerAlias www.dummy-host.example.com

# ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"

# CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common

#</VirtualHost>



NameVirtualHost *:8443



<VirtualHost *:8443>

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /private/etc/apache2/ssl/ssl.crt

SSLCertificateKeyFile /private/etc/apache2/ssl/ssl.key

ServerName dav.baikal-server

DocumentRoot "/Library/WebServer/Documents/dav.baikal-server/html"

</VirtualHost>

Dec 1, 2013 3:08 PM in response to Barney-15E

I just did #5 again with same issue:


Last login: Sun Dec 1 17:14:20 on ttys000

XXX:~ XXXXX$ ls -l /Library/WebServer/Documents/dav.baikal-server/

total 128

-rw-r--r--@ 1 admin staff 106 7 Jul 10:56 ChangeLog.md

drwxr-xr-x@ 6 admin staff 204 28 Nov 14:58 Core

-rwxr-xr-x@ 1 admin staff 9223 7 Jul 10:41 INSTALL.md

-rwxr-xr-x@ 1 admin staff 35135 7 Jul 10:29 LICENSE.txt

-rwxr-xr-x@ 1 admin staff 1688 7 Jul 10:43 README.md

drwxr-xr-x@ 6 admin staff 204 1 Dec 17:38 Specific

-rwxr-xr-x@ 1 admin staff 2635 7 Jul 10:29 TROUBLESHOOTING.md

-rwxr-xr-x@ 1 admin staff 1062 7 Jul 10:29 UPGRADE.md

drwxr-xr-x@ 9 admin staff 306 28 Nov 14:58 html

drwxr-xr-x@ 6 admin staff 204 7 Jul 17:38 vendor

XXXXX:~ XXXXX $

How do I setup CalDav and CardDav servers on my Mac to enable local 'cloud' syncing in Mavericks

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.