Updating OwnCloud Debian_8.0 owncloud-files-10.0.6-1.1 ====================================================== wget -nv https://download.owncloud.org/download/repositories/10.0/Debian_8.0/Release.key -O Release.key apt-key add - < Release.key ---------------------------------- echo 'deb http://download.owncloud.org/download/repositories/10.0/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list apt-get update apt-get install owncloud-files ---------------------------------- copy the owncloud files across to a web server directory - in this case the target www is NginX's base directory *** You may need to delete a previous test version first !! (rm -r /srv/dev-disk-by-label-dataH1/www/owncloud) cp -r /var/www/owncloud/ /srv/dev-disk-by-label-dataH1/www Make a share of this folder and give www-data:www-data rwx access + none to others Installing OwnCloud =================== Debian_8.0 owncloud-files-10.0.4-1.1 You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). Run the following shell commands as root to trust the repository: wget -nv https://download.owncloud.org/download/repositories/production/Debian_8.0/Release.key -O Release.key apt-key add - < Release.key Run the following shell commands as root to add the repository and install from there. echo 'deb http://download.owncloud.org/download/repositories/production/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list apt-get update apt-get install owncloud-files ---------------------------------- Install the PHP GD, curl, intl & apcu packages apt-get install php5-gd php5-curl php5-intl php5-apcu ---------------------------------------------------------------------------------------------------------------- copy the owncloud files across to a web server directory - in this case the target www is NginX's base directory *** You may need to delete a previous test version first !! (rm -r /srv/dev-disk-by-label-dataH1/www/owncloud) cp -r /var/www/owncloud/ /srv/dev-disk-by-label-dataH1/www Make a share of this folder and give www-data:www-data rwx access + none to others ---------------------------------------------------------------------------------------------------------------- Add owncloud user to mySQL and create a owncloud1 database ------------------------------------------------------------------------------------------------------------------------- Create a virtual site in NginX for owncloud pointing at this directory as its base and using user:group www-data:www-data When creating the NginX server for ownCloud you must copy the following (between ---start--- & ---end---) to the "Extra Options" section ---start--- client_max_body_size 10G; # set max upload size fastcgi_buffers 64 4K; rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect; rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect; rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect; index index.php; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ ^/(data|config|\.ht|db_structure\.xml|README) { deny all; } location / { # The following 2 rules are only needed with webfinger rewrite ^/.well-known/host-meta /public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; rewrite ^/.well-known/carddav /remote.php/carddav/ redirect; rewrite ^/.well-known/caldav /remote.php/caldav/ redirect; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; } location ~ ^(.+?\.php)(/.*)?$ { try_files $1 = 404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_param PATH_INFO $2; fastcgi_param HTTPS on; fastcgi_pass $socket; } # Optional: set long EXPIRES header on static assets location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; # Optional: Don't log access to assets access_log off; } # NS Security option add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; ---end--- When creating the above server - you should select a pool for PHP and add the following extra option... env[PATH] = /usr/local/bin:/usr/bin:/bin ------------------------------------------------------------------------------------------------------------------------------------- Add the following to www/owncloud/config/config.php 'memcache.local' => '\OC\Memcache\APCu', 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\APCu', 'redis' => [ 'host' => 'localhost', 'port' => 6379, 'timeout' => 0.0, 'password' => '', // Optional, if not defined no password will be used. ], ------------------------------------------------------------------------------------------------------------------------------------- To enable owncloud users to use samba you should install the client s/w and later in owncloud / admin / settings /storage turn on SMB apt-get install smb-client