You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Dec 1, 2013 5:14 PM in response to Barney-15E

I followed your instruction while in Admin account and got the error message. Yes, the sudo command can only be done in Admin account. Some commands can be done in Standard mode. I usually use my computer in Standard mode.


Yes, triple-click the line, Cmd-C to copy, then Cmd-V in Terminal as per your instruction :-). You can see the command in my last post. Does it look OK?

Dec 1, 2013 6:50 PM in response to Barney-15E

I did the commands again in Admin account and got:


Last login: Sun Dec 1 21:21:12 on console

XXXX:~ admin$ sudo chown -Rf www:www /Library/WebServer/Documents/dav.baikal-server

Password:

XXXX:~ admin$ ls -l /Library/WebServer/Documents/dav.baikal-server/

total 128

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

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

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

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

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

drwxr-xr-x@ 6 _www _www 204 Dec 1 19:10 Specific

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

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

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

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

XXXX:~ admin$


I still get the same error message when accessing: https://localhost:8443

Dec 2, 2013 4:50 AM in response to Barney-15E

Thanks Barney for your kind and patient support. This operation did the trick and let me in the initialization wizard. I entered a 4 number password, saved and got new error messages. I thought I went over the hurdle but it's feel more like an obstacle course :-)


Warning: stripslashes() expects parameter 1 to be string, array given in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 117

Warning: stripslashes() expects parameter 1 to be string, array given in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 117

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework. php:117) in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 183

Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework. php:117) in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Controller/ Page.php on line 75




Baïkal initialization wizard


Configure your new Baïkal 0.2.6 installation.

Editing StandardBaïkal Settings

Validation error

Admin password is required.










Dec 2, 2013 7:02 AM in response to veda1

If I refresh the already open browser page (https://localhost:8443/admin/install/), I get:


Warning: stripslashes() expects parameter 1 to be string, array given in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 117

Warning: stripslashes() expects parameter 1 to be string, array given in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 117

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework. php:117) in /Library/WebServer/Documents/dav.baikal-server/Core/Frameworks/Flake/Framework.p hp on line 183

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.



If I open a new page with https://localhost:8443 (leads to https://localhost:8443/admin/install/), I get:


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.

Dec 2, 2013 7:36 AM in response to veda1

I just realized that the result of the 2nd part of my last post is due to the dissapearance of the ENABLE_INSTALL file. Re-installing the file replicates the first part of my last post. I don't know how the ENABLE_INSTALL file dissapeared. I couln'd replicate the dissapearance of the ENABLE_INSTALL file by refreshing or accessing (https://localhost:8443) the browser page. Still stuck with the error messages in the initialization wizard page. Strange indeed...

Dec 2, 2013 4:07 PM in response to veda1

veda1 wrote:


The ENABLE_INSTALL file vanished again and I still don't know how and why. It may have happened after several reloading of the initialization wizard page.

That's how it disables the Install mode. The file must be present to run the Install routine. Once done, the file is deleted to prevent anyone from being able to re-run the install.


I don't know what those errors are. They are look like errors releated to the php implementation or the Baikal server. I can't remember, but were you using a different php implementation? If so, that could be the issue.

Dec 3, 2013 2:27 AM in response to James Richards

After this summer's news and having alway avoided syncing with icloud my datas, i have decided to set up a claim to the french (sorry i'm french) cnil (national commission for computing and freedom so that they officially investigate that matter, and at the same time to the european council.


I was considering buying both new mac an iphone in a close future but without having back the ability to sync directly bewtween my computer and my phone without sharing over the internet i will surely not do so and go back to windows and some other phone building company that will garantee the total privacy of these datas.


so long apple!


Ps: maybe, we, foreign users of apple products should contact our representatives and governments to counterfight this behaviours, as well as our own journalists to have it known by our fellow citizens, especially in this days of christmas gifts, i'm sure apple will react to a market share loss.

Dec 3, 2013 8:04 AM in response to veda1

Others have experienced this problem with Baïkal. My guesses about what it all means aren't worth hearing.


When I got into difficulties I followed the steps on this thread to restore my original Apache configuration and then started again. I was (fairly) confident to do that because I knew I hadn't been tweaking Apache to do anything other than run Baïkal, so I didn't think I had anything to lose by going back to the original Apache configuration.

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 Account.