24 May 2014

ownCloud on Ubuntu


Notes

All commands require root/sudo
  1. ownCloud is installed into /var/www/owncloud
    in Apache xxx it should be in /var/www/html/owncloud
    mv -if /var/www/owncloud /var/www/html/
  2. owncloud.conf is in /etc/apache2/conf.d but it should be in /etc/apache2/conf-available/
    mv -if /etc/apache2/conf.d/owncloud.conf /etc/apache2/conf-available/
  3. ownCloud to respond to specific domain e.g. owncloud.domain.com
    vi /etc/apache2/ sitesavailable.conf
    add the following after <VirtualHost _default_:443>
    ServerName oc.coultard.net
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/owncloud
  4. Restart apache: service apache2 restart
  5. Set servername:
    echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/servername.conf
    # enable it by creating a symlink to it from the "enabled" section
    sudo a2enconf servername
    # restart the server
    sudo service apache2 restart
  6. "You are accessing the server from an untrusted domain."
    Add your ip/domain to the list of trusted domains:
    vi /var/www/html/owncloud/config/config.php
    'trusted_domains' =>
    array (
    0 => '<server ip address>',
    1 => '<owncloud.domain.com>',
    ),
  7. "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken."
    Re-create SSL certificate or apply a new one: https://www.startssl.com

No comments:

Post a Comment