Setup nextcloud server10 » Historie » Version 3
Jeremias Keihsler, 18.03.2017 16:31
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 | 2 | Jeremias Keihsler | yum install nextcloud-httpd nextcloud-mysql |
25 | 1 | Jeremias Keihsler | </code></pre> |
26 | |||
27 | 3 | Jeremias Keihsler | if you want https:// |
28 | <pre><code class="bash"> |
||
29 | yum install mod_ssl |
||
30 | </code></pre> |
||
31 | |||
32 | |||
33 | 1 | Jeremias Keihsler | h2. Setup |
34 | |||
35 | h3. Create nextcloud-DB |
||
36 | |||
37 | <pre><code class="bash"> |
||
38 | mysql -u root -p |
||
39 | create database nextcloud; |
||
40 | grant all on nextcloud.* to 'nextcloud-user'@'localhost' identified by 'nextcloud-user-password'; |
||
41 | </code></pre> |
||
42 | |||
43 | h3. run nextcloud-cron-job |
||
44 | |||
45 | <pre> |
||
46 | # JKE 2017-03-03 |
||
47 | # |
||
48 | # minute hour day month dayofweek |
||
49 | # +---------min (0-59) |
||
50 | # | +-------hour (0-23) |
||
51 | # | | +-----day of month (1-31) |
||
52 | # | | | +---month (1-12) |
||
53 | # | | | | +-day of week (0-7) sunday=0 of 7 |
||
54 | # | | | | | |
||
55 | # - - - - - |
||
56 | # m h d m d |
||
57 | # |
||
58 | */15 * * * * apache /usr/bin/php /usr/share/nextcloud/cron.php |
||
59 | </pre> |
||
60 | |||
61 | h2. Firewall |
||
62 | |||
63 | <pre><code class="bash"> |
||
64 | firewall_cmd --permanent --zone=public --add-service=http |
||
65 | firewall_cmd --permanent --zone=public --add-service=https |
||
66 | </code></pre> |
||
67 | |||
68 | h2. Test |
||
69 | |||
70 | h2. Troubleshoot |
||
71 | |||
72 | h3. Blocked in Maintenance-Mode after upgrade |
||
73 | |||
74 | basically taken from https://github.com/owncloud/core/issues/17440 |
||
75 | |||
76 | <pre><code class="bash"> |
||
77 | cd /usr/share/owncloud |
||
78 | sudo -u apache php occ maintenance:mode --off |
||
79 | sudo -u apache php occ upgrade |
||
80 | </code></pre> |
||
81 | |||
82 | did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29) |
||
83 | |||
84 | <pre><code class="bash"> |
||
85 | sudo -u apache php occ maintenance:repair |
||
86 | </code></pre> |
||
87 | |||
88 | may be of additional help |