Projekt

Allgemein

Profil

Setup nextcloud server19 » Historie » Version 2

Jeremias Keihsler, 20.03.2021 18:48

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
</code></pre>
41
42 1 Jeremias Keihsler
h3. run nextcloud-cron-job
43
44
<pre>
45
# JKE 2017-03-03
46
#
47
# minute hour day month dayofweek
48
# +---------min (0-59)
49
# | +-------hour (0-23)
50
# | | +-----day of month (1-31)
51
# | | | +---month (1-12)
52
# | | | | +-day of week (0-7) sunday=0 of 7
53
# | | | | |
54
# - - - - -
55
# m h d m d
56
#
57
	*/15	*	*	*	*	apache	/usr/bin/php /usr/share/nextcloud/cron.php 
58
</pre>
59
60
h2. Firewall
61
62
<pre><code class="shell">
63
firewall_cmd --permanent --zone=public --add-service=http
64
firewall_cmd --permanent --zone=public --add-service=https
65
</code></pre>
66
67
h2. Test 
68
69
h2. Troubleshoot 
70
71
h3. can't send mail via smtp
72
73
maybe because of selinux
74
75
<pre><code class="shell">
76
setsebool -P httpd_can_sendmail on
77
</code></pre>
78
79
h3. Blocked in Maintenance-Mode after upgrade
80
81
basically taken from https://github.com/owncloud/core/issues/17440
82
83
<pre><code class="shell">
84
cd /usr/share/owncloud
85
sudo -u apache php occ maintenance:mode --off
86
sudo -u apache php occ upgrade
87
</code></pre>
88
89
did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29)
90
91
<pre><code class="bash">
92
sudo -u apache php occ maintenance:repair
93
</code></pre>
94
95
may be of additional help