Projekt

Allgemein

Profil

Setup nextcloud server19 » Historie » Version 1

Jeremias Keihsler, 20.03.2021 18:22

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
h3. run nextcloud-cron-job
36
37
<pre>
38
# JKE 2017-03-03
39
#
40
# minute hour day month dayofweek
41
# +---------min (0-59)
42
# | +-------hour (0-23)
43
# | | +-----day of month (1-31)
44
# | | | +---month (1-12)
45
# | | | | +-day of week (0-7) sunday=0 of 7
46
# | | | | |
47
# - - - - -
48
# m h d m d
49
#
50
	*/15	*	*	*	*	apache	/usr/bin/php /usr/share/nextcloud/cron.php 
51
</pre>
52
53
h2. Firewall
54
55
<pre><code class="shell">
56
firewall_cmd --permanent --zone=public --add-service=http
57
firewall_cmd --permanent --zone=public --add-service=https
58
</code></pre>
59
60
h2. Test 
61
62
h2. Troubleshoot 
63
64
h3. can't send mail via smtp
65
66
maybe because of selinux
67
68
<pre><code class="shell">
69
setsebool -P httpd_can_sendmail on
70
</code></pre>
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="shell">
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