James Richards

Q: 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:50 PM

Close

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

  • All replies
  • Helpful answers

first Previous Page 5 of 10 last Next
  • by Barney-15E,

    Barney-15E Barney-15E Dec 1, 2013 5:03 PM in response to veda1
    Level 9 (50,893 points)
    Mac OS X
    Dec 1, 2013 5:03 PM in response to veda1

    It won't work in a standard account and you must use sudo while logged in as admin.

     

    Are you typing it in or triple-click the line, Cmd-C to copy, then Cmd-V in Terminal/

  • by veda1,

    veda1 veda1 Dec 1, 2013 5:14 PM in response to Barney-15E
    Level 1 (0 points)
    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?

  • by Barney-15E,

    Barney-15E Barney-15E Dec 1, 2013 5:16 PM in response to veda1
    Level 9 (50,893 points)
    Mac OS X
    Dec 1, 2013 5:16 PM in response to veda1

    You can see the command in my last post. Does it look OK?

    That is the command to list the directory, not to change the owner. This is step 5.

    1. sudo chown -Rf www:www /Library/WebServer/Documents/dav.baikal-server

    You check it with the command you posted.

  • by veda1,

    veda1 veda1 Dec 1, 2013 6:50 PM in response to Barney-15E
    Level 1 (0 points)
    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

  • by Barney-15E,

    Barney-15E Barney-15E Dec 2, 2013 3:44 AM in response to veda1
    Level 9 (50,893 points)
    Mac OS X
    Dec 2, 2013 3:44 AM in response to veda1

    Delete the ENABLE_INSTALL file and run this command:

    sudo touch /Library/WebServer/Documents/dav.baikal-server/Specific/ENABLE_INSTALL

  • by veda1,

    veda1 veda1 Dec 2, 2013 4:50 AM in response to Barney-15E
    Level 1 (0 points)
    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.

     

     

     

     

     

     

     

     

     

  • by veda1,

    veda1 veda1 Dec 2, 2013 7:02 AM in response to veda1
    Level 1 (0 points)
    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.


  • by veda1,

    veda1 veda1 Dec 2, 2013 7:36 AM in response to veda1
    Level 1 (0 points)
    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...

  • by veda1,

    veda1 veda1 Dec 2, 2013 8:29 AM in response to veda1
    Level 1 (0 points)
    Dec 2, 2013 8:29 AM in response to veda1

    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.

  • by Barney-15E,

    Barney-15E Barney-15E Dec 2, 2013 4:07 PM in response to veda1
    Level 9 (50,893 points)
    Mac OS X
    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.

  • by veda1,

    veda1 veda1 Dec 2, 2013 8:57 PM in response to Barney-15E
    Level 1 (0 points)
    Dec 2, 2013 8:57 PM in response to Barney-15E

    OK, it makes sense. I don't recall to have made changes in php implementation.

  • by Cuadro,

    Cuadro Cuadro Dec 3, 2013 2:27 AM in response to James Richards
    Level 1 (0 points)
    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.

  • by petermac87,

    petermac87 petermac87 Dec 3, 2013 2:42 AM in response to Cuadro
    Level 5 (7,409 points)
    Dec 3, 2013 2:42 AM in response to Cuadro

    They will miss your patronage dearly. Good luck with the investigation.

     

    So long.

     

    Pete

  • by Barney-15E,

    Barney-15E Barney-15E Dec 3, 2013 4:37 AM in response to veda1
    Level 9 (50,893 points)
    Mac OS X
    Dec 3, 2013 4:37 AM in response to veda1

    Those errors are internal to Baikal server. I don't know what they mean and have never seen them.

  • by veda1,

    veda1 veda1 Dec 3, 2013 7:11 AM in response to Barney-15E
    Level 1 (0 points)
    Dec 3, 2013 7:11 AM in response to Barney-15E

    Thanks for the effort Barney. I guess I am out of luck :-)

first Previous Page 5 of 10 last Next