Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:owncloud:owncloud_setup_and_configuration [2016/08/09 15:29]
smayr
systems:owncloud:owncloud_setup_and_configuration [2017/12/08 15:51] (current)
smayr [Upgrading]
Line 10: Line 10:
  
 Add the ownCloud repository as follows: Add the ownCloud repository as follows:
-  $ ### sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"+  $ ### sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
   $ sh -c "echo 'deb http://download.owncloud.org/download/repositories/9.0/Ubuntu_16.04/ /' >> /etc/apt/sources.list.d/owncloud.list"   $ sh -c "echo 'deb http://download.owncloud.org/download/repositories/9.0/Ubuntu_16.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
  
 Update the package database and install ownCloud: Update the package database and install ownCloud:
-  $ sudo apt-get update +  $ apt-get update 
-  $ sudo apt-get install owncloud+  $ apt-get install owncloud
      
 == Configuration == == Configuration ==
  
 Install Mariadb (or Mysql) to get the configurations as follows: Install Mariadb (or Mysql) to get the configurations as follows:
-  $ sudo apt-get install mariadb-server+  $ apt-get install mariadb-server
  
 It will ask for password input, just enter your desired password there. It will ask for password input, just enter your desired password there.
  
 We will be configuring our ownCloud server to take advantage of the more robust MySQL database instead of the SQLite default implementation. To do so, we must configure MySQL first as: We will be configuring our ownCloud server to take advantage of the more robust MySQL database instead of the SQLite default implementation. To do so, we must configure MySQL first as:
-  $ sudo mysql -u root -p+  $ mysql -u root -p
  
 Put the mariadb password which you selected before, & create a database for ownCloud in Mariadb prompt: Put the mariadb password which you selected before, & create a database for ownCloud in Mariadb prompt:
Line 50: Line 50:
  
 Open browser and visit domain name such as ''http://www.example.com/owncloud''. Open browser and visit domain name such as ''http://www.example.com/owncloud''.
 +
 +== Upgrading ==
 +  * Upgrade with your OS package manager so that it install the latest OwnCloud package. In Ubuntu: <code bash>$ apt-get update
 +$ apt-get upgrade</code>
 +  * Go to command line and manually run ''occ upgrade'': <code bash>$ cd /var/www/owncloud
 +$ sudo -u www-data php occ upgrade</code>
 +  * After upgrade, switch off maintenance mode: <code bash>$ cd /var/www/owncloud
 +$ sudo -u www-data php occ  maintenance:mode --off</code>
 +
  
 == References == == References ==
   * [[http://www.howtoforge.com/how-to-install-owncloud-7-on-ubuntu-14.04|How to Install ownCloud 7 on Ubuntu 14.04]]   * [[http://www.howtoforge.com/how-to-install-owncloud-7-on-ubuntu-14.04|How to Install ownCloud 7 on Ubuntu 14.04]]
   * [[http://owncloud.org/install/#|ownCloud Install]]   * [[http://owncloud.org/install/#|ownCloud Install]]
 +  * [[https://owncloud.org/blog/upgrading-owncloud-on-debian-stable-to-official-packages/|Upgrading ownCloud]]
 +  * [[https://doc.owncloud.org/server/9.0/admin_manual/maintenance/manual_upgrade.html|ownClould 9.0 Manual Upgrade]]
 +  * [[http://download.owncloud.org/download/repositories/9.0/owncloud/|Download Repositories]]