Projekt

Allgemein

Profil

Setup nextcloud server10 » Historie » Version 4

Jeremias Keihsler, 20.03.2021 16:09

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 4 Jeremias Keihsler
<pre><code class="shell">
20 1 Jeremias Keihsler
yum install wget
21
</code></pre>
22
23 4 Jeremias Keihsler
<pre><code class="shell">
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 4 Jeremias Keihsler
<pre><code class="shell">
29 3 Jeremias Keihsler
yum install mod_ssl
30
</code></pre>
31
32
33 1 Jeremias Keihsler
h2. Setup 
34
35
h3. Create nextcloud-DB
36
37 4 Jeremias Keihsler
<pre><code class="shell">
38 1 Jeremias Keihsler
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 4 Jeremias Keihsler
<pre><code class="shell">
64 1 Jeremias Keihsler
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 4 Jeremias Keihsler
h3. can't send mail via smtp
73
74
maybe because of selinux
75
76
<pre><code class="shell">
77
setsebool -P httpd_can_sendmail on
78
</code></pre>
79
80 1 Jeremias Keihsler
h3. Blocked in Maintenance-Mode after upgrade
81
82
basically taken from https://github.com/owncloud/core/issues/17440
83
84 4 Jeremias Keihsler
<pre><code class="shell">
85 1 Jeremias Keihsler
cd /usr/share/owncloud
86
sudo -u apache php occ maintenance:mode --off
87
sudo -u apache php occ upgrade
88
</code></pre>
89
90
did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29)
91
92
<pre><code class="bash">
93
sudo -u apache php occ maintenance:repair
94
</code></pre>
95
96
may be of additional help