Owncloud

Owncloud is free and open source, Dropbox-like file synchronization and cloud service. Since it can be setup and hosted on private servers it has no limits on storage capacity or on the number of connected users.

Features

 * File storage in conventional directory structures or via WebDAV
 * Encryption of user files
 * Synchronization of ownCloud Client running Windows (Windows XP, Vista, 7 and 8), Mac OS X (10.6 or better), or Linux
 * Calendar (also as CalDAV)
 * Task scheduler
 * Address book (also as CardDAV)
 * Music streaming (through Ampache)
 * User and group administration (via OpenID or Lightweight Directory Access Protocol)
 * Sharing of content across groups or public URLs
 * Online text editor with syntax highlighting and code folding
 * Bookmarking
 * URL shortening Suite
 * Photo gallery
 * Video viewer
 * Portable Document Format viewer (using PDF.js)
 * Viewer for OpenDocument Files (.odt, .odp, .ods)
 * Firefox Sync/Mozilla Sync hosting - If you are a Mozilla Firefox user, all history, form data, bookmarks etc. can be stored in your ownCloud server.
 * Connecting external storages (If you have accounts on Dropbox, GoogleDrive, or Amazon S3, you can mount those storages into your ownCloud installation)
 * Customizable with one-click-install apps
 * Logging Module: supports logging of file-related actions, logs, who accessed what, when and from where. (Only available in the ownCloud Business, Enterprise and Education Editions)

Requirements
We will need the following:


 * A running web server for example Apache, Lighttpd or Nginx
 * If you want to easily install Owncloud Server to an vhost directory
 * A running php version (>= 5.4.9 for owncloud-5.0.13-r1) read more here.

Building and Installation
Install :

Installing Owncloud server in your vhost directory via webapp-config
Requires the package :

If you have the vhosts USE flag enabled, than you can run:

to install the Owncloud server version 5.0.13-r1 for the domain  to the directory  which is normally located in

Make sure that this directory is added as a vhosts directory.

Updating Owncloud server in your vhost directory via webapp-config
This command will update the installed Owncloud server which is located in the directory to the version 5.0.14.

Removing Owncloud server from your vhost directory via webapp-config
This command will remove the installed Owncloud server version 5.0.14 which is located in the directory.

Activate Owncloud Cronjobs (for more information):
*/15 *  *  *  * php -f /var/www/mydomain.com/htdocs/cloud/cron.php

ENABLE APC
PHP_TARGETS="php5-4" emerge -av dev-php/pecl-apc

Then restart php-fpm /etc/init.d/php-fpm restart

If you want check if apc is working, copy apc.php in your www cp /usr/share/php/apc/apc.php /var/www/

and then open it with your preferred browser