We will use ownCloud (Open Source) for sharing files and editing documents on cloud. Run ownCloud on FreeBSD, PHP with PHP-FPM, MySQL and the current mainline versin of NGINX is used. If you prefer using the owncloud port of the port system you can skip some of the steps below. The tutorial is based on FreeBSD-10 but should mostly work with FreeBSD versions other than that too. In this tutorial binary versions of the software is installed, of course you can also compile the ports manually.
Download guide at http://wisepoint.org/node/369