Setup nextcloud server10 » Historie » Version 1
Jeremias Keihsler, 17.03.2017 20:24
| 1 | 1 | Jeremias Keihsler | h1. Install Procedure for NextCloud-Server 10.x |
|---|---|---|---|
| 2 | |||
| 3 | h2. Requirements |
||
| 4 | |||
| 5 | To install NextCloud-Server 10.x you will need the following: |
||
| 6 | * a installed and supported operating system (e.g. CentOS 7.x minimal) |
||
| 7 | * root-access |
||
| 8 | * a fast internet connection |
||
| 9 | * repo: [[repo_epel|EPEL]] |
||
| 10 | * [[setup_apache|Apache]] |
||
| 11 | * [[setup_mariadb|MariaDB]] |
||
| 12 | |||
| 13 | h2. Preliminary Note |
||
| 14 | |||
| 15 | this how-to assumes the machine with a vanilla CentOS 7.x minimal installation. |
||
| 16 | |||
| 17 | h2. Install |
||
| 18 | |||
| 19 | <pre><code class="bash"> |
||
| 20 | yum install wget |
||
| 21 | </code></pre> |
||
| 22 | |||
| 23 | <pre><code class="bash"> |
||
| 24 | yum install Nextcloud |
||
| 25 | </code></pre> |
||
| 26 | |||
| 27 | h2. Setup |
||
| 28 | |||
| 29 | h3. Create nextcloud-DB |
||
| 30 | |||
| 31 | <pre><code class="bash"> |
||
| 32 | mysql -u root -p |
||
| 33 | create database nextcloud; |
||
| 34 | grant all on nextcloud.* to 'nextcloud-user'@'localhost' identified by 'nextcloud-user-password'; |
||
| 35 | </code></pre> |
||
| 36 | |||
| 37 | h3. run nextcloud-cron-job |
||
| 38 | |||
| 39 | <pre> |
||
| 40 | # JKE 2017-03-03 |
||
| 41 | # |
||
| 42 | # minute hour day month dayofweek |
||
| 43 | # +---------min (0-59) |
||
| 44 | # | +-------hour (0-23) |
||
| 45 | # | | +-----day of month (1-31) |
||
| 46 | # | | | +---month (1-12) |
||
| 47 | # | | | | +-day of week (0-7) sunday=0 of 7 |
||
| 48 | # | | | | | |
||
| 49 | # - - - - - |
||
| 50 | # m h d m d |
||
| 51 | # |
||
| 52 | */15 * * * * apache /usr/bin/php /usr/share/nextcloud/cron.php |
||
| 53 | </pre> |
||
| 54 | |||
| 55 | h2. Firewall |
||
| 56 | |||
| 57 | <pre><code class="bash"> |
||
| 58 | firewall_cmd --permanent --zone=public --add-service=http |
||
| 59 | firewall_cmd --permanent --zone=public --add-service=https |
||
| 60 | </code></pre> |
||
| 61 | |||
| 62 | h2. Test |
||
| 63 | |||
| 64 | h2. Troubleshoot |
||
| 65 | |||
| 66 | h3. Blocked in Maintenance-Mode after upgrade |
||
| 67 | |||
| 68 | basically taken from https://github.com/owncloud/core/issues/17440 |
||
| 69 | |||
| 70 | <pre><code class="bash"> |
||
| 71 | cd /usr/share/owncloud |
||
| 72 | sudo -u apache php occ maintenance:mode --off |
||
| 73 | sudo -u apache php occ upgrade |
||
| 74 | </code></pre> |
||
| 75 | |||
| 76 | did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29) |
||
| 77 | |||
| 78 | <pre><code class="bash"> |
||
| 79 | sudo -u apache php occ maintenance:repair |
||
| 80 | </code></pre> |
||
| 81 | |||
| 82 | may be of additional help |