Setup nextcloud server19 » Historie » Version 4
Jeremias Keihsler, 20.03.2021 21:04
1 | 1 | Jeremias Keihsler | h1. Install Procedure for NextCloud-Server 19.x |
---|---|---|---|
2 | |||
3 | h2. Requirements |
||
4 | |||
5 | To install NextCloud-Server 19.x you will need the following: |
||
6 | * a installed and supported operating system (e.g. Fedora 33 Workstation) |
||
7 | * root-access |
||
8 | * a fast internet connection |
||
9 | * [[setup_apache|Apache]] |
||
10 | * [[setup_mariadb|MariaDB]] |
||
11 | |||
12 | h2. Preliminary Note |
||
13 | |||
14 | this how-to assumes the machine with a vanilla Fedora 33 Workstation installation. |
||
15 | |||
16 | h2. Install |
||
17 | |||
18 | <pre><code class="shell"> |
||
19 | yum install nextcloud-httpd nextcloud-mysql |
||
20 | </code></pre> |
||
21 | |||
22 | |||
23 | h2. Setup |
||
24 | |||
25 | h3. Create nextcloud-DB |
||
26 | |||
27 | <pre><code class="shell"> |
||
28 | mysql -u root -p |
||
29 | CREATE USER 'nextuser'@'localhost' IDENTIFIED BY 'password'; |
||
30 | CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; |
||
31 | GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextuser'@'localhost'; |
||
32 | exit |
||
33 | </code></pre> |
||
34 | |||
35 | 2 | Jeremias Keihsler | h3. make nextcloud available to the outside world |
36 | |||
37 | <pre><code class="shell"> |
||
38 | ln -s /etc/httpd/conf.d/nextcloud-access.conf.avail /etc/httpd/conf.d/z-nextcloud-access.conf |
||
39 | systemctl restart httpd |
||
40 | 3 | Jeremias Keihsler | firewall-cmd --permanent --add-service=http |
41 | firewall-cmd --reload |
||
42 | 2 | Jeremias Keihsler | </code></pre> |
43 | |||
44 | 1 | Jeremias Keihsler | h3. run nextcloud-cron-job |
45 | |||
46 | <pre> |
||
47 | # JKE 2017-03-03 |
||
48 | # |
||
49 | # minute hour day month dayofweek |
||
50 | # +---------min (0-59) |
||
51 | # | +-------hour (0-23) |
||
52 | # | | +-----day of month (1-31) |
||
53 | # | | | +---month (1-12) |
||
54 | # | | | | +-day of week (0-7) sunday=0 of 7 |
||
55 | # | | | | | |
||
56 | # - - - - - |
||
57 | # m h d m d |
||
58 | # |
||
59 | */15 * * * * apache /usr/bin/php /usr/share/nextcloud/cron.php |
||
60 | </pre> |
||
61 | |||
62 | h2. Firewall |
||
63 | |||
64 | <pre><code class="shell"> |
||
65 | firewall_cmd --permanent --zone=public --add-service=http |
||
66 | firewall_cmd --permanent --zone=public --add-service=https |
||
67 | </code></pre> |
||
68 | |||
69 | h2. Test |
||
70 | |||
71 | h2. Troubleshoot |
||
72 | |||
73 | h3. can't send mail via smtp |
||
74 | |||
75 | maybe because of selinux |
||
76 | |||
77 | <pre><code class="shell"> |
||
78 | setsebool -P httpd_can_sendmail on |
||
79 | </code></pre> |
||
80 | |||
81 | 4 | Jeremias Keihsler | h3. can't access app-store |
82 | |||
83 | maybe because of selinux |
||
84 | |||
85 | <pre><code class="shell"> |
||
86 | setsebool -P httpd_can_network_connect on |
||
87 | </code></pre> |
||
88 | |||
89 | 1 | Jeremias Keihsler | h3. Blocked in Maintenance-Mode after upgrade |
90 | |||
91 | basically taken from https://github.com/owncloud/core/issues/17440 |
||
92 | |||
93 | <pre><code class="shell"> |
||
94 | cd /usr/share/owncloud |
||
95 | sudo -u apache php occ maintenance:mode --off |
||
96 | sudo -u apache php occ upgrade |
||
97 | </code></pre> |
||
98 | |||
99 | did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29) |
||
100 | |||
101 | <pre><code class="bash"> |
||
102 | sudo -u apache php occ maintenance:repair |
||
103 | </code></pre> |
||
104 | |||
105 | may be of additional help |