Difference between revisions of "Nextcloud"
From wiki
(Created page with "= Prerequisite = * Nginx == Install == === Add Repository === In order to get an up-to-date ownCloud, it is preferable to install it from the upstream repositories. Use...") |
(create sections) |
||
Line 1: | Line 1: | ||
= Prerequisite = | = Prerequisite = | ||
* [[Nginx]] | * [[Nginx]] | ||
+ | * [[PHP]] | ||
+ | * [[MariaDB]] | ||
== Install == | == Install == | ||
Line 23: | Line 25: | ||
$ sudo apt install owncloud | $ sudo apt install owncloud | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === Configure PHP === | ||
+ | {{TODO|msg=}} | ||
+ | |||
+ | === Configure Webserver === | ||
+ | {{TODO|msg=}} | ||
+ | |||
+ | === Configure DB === | ||
+ | {{TODO|msg=}} | ||
+ | |||
+ | === Configure Owncloud === | ||
+ | //config.php<syntaxhighlight lang="console"> | ||
+ | $ sudo tee "/usr/local/bin/occ" > /dev/null << EOF | ||
+ | > !/bin/sh | ||
+ | > sudo -u www-data /usr/bin/php /var/www/owncloud/occ "\$@" | ||
+ | > EOF | ||
+ | $ sudo chmod +x /usr/local/bin/occ | ||
+ | </syntaxhighlight>//cron | ||
+ | |||
[[Category:Debian Release]] | [[Category:Debian Release]] | ||
[[Category:Linux Server]] | [[Category:Linux Server]] |
Revision as of 15:41, 15 January 2017
Prerequisite
Install
Add Repository
In order to get an up-to-date ownCloud, it is preferable to install it from the upstream repositories.
Use the following command to install the repository and its key, plus to configure pinning to use it as the default source
$ curl -s https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key | sudo apt-key add -
OK
$ echo "deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /" | sudo tee /etc/apt/sources.list.d/owncloud.list > /dev/null
$ sudo tee "/etc/apt/preferences.d/owncloud" > /dev/null << EOF
> Package: owncloud
> Pin: origin "download.owncloud.org"
> Pin-Priority: 995
> EOF
$ sudo apt update
Install
$ sudo apt install owncloud
Configure PHP
TODO
Configure Webserver
TODO
Configure DB
TODO
Configure Owncloud
//config.php
$ sudo tee "/usr/local/bin/occ" > /dev/null << EOF
> !/bin/sh
> sudo -u www-data /usr/bin/php /var/www/owncloud/occ "\$@"
> EOF
$ sudo chmod +x /usr/local/bin/occ
//cron