Setup

  1. Get packages
  2. set rights of owncloud files to HTTP user
  3. create owncloud database (on mysql or postgres server)
  4. Use owncloud console as HTTP user (sudo -u www-data php /var/www/owncloud/occ)
  5. Change rights of all files in folder as recommended on the site
  6. Add domain through which owncloud can be assessed to the config.php file

OwnCloud Command line (OCC)

adding a user:

sudo -u www-data php occ user:add --display-name="Daniel von Rhein" --group="users" --group="TLA" danrhe

OC APIs

Ref