Nextcloud » Historie » Version 9
Jeremias Keihsler, 03.12.2021 13:09
1 | 1 | Jeremias Keihsler | h1. Nextcloud |
---|---|---|---|
2 | |||
3 | 7 | Jeremias Keihsler | one variant to be tested for Fedora 33 Server: https://www.howtoforge.de/anleitung/wie-man-nextcloud-auf-fedora-32-installiert-und-konfiguriert/ |
4 | |||
5 | 1 | Jeremias Keihsler | h2. Install |
6 | |||
7 | 4 | Jeremias Keihsler | currently in EPEL-testing ... |
8 | |||
9 | |||
10 | |||
11 | 1 | Jeremias Keihsler | h3. ius-release repo |
12 | 2 | Jeremias Keihsler | |
13 | [[dw_os_cos7:repo_ius_release|IUS repository]] |
||
14 | 3 | Jeremias Keihsler | |
15 | h3. php7.1 |
||
16 | |||
17 | <code> |
||
18 | yum install php71u php71u-mysqlnd php71u-dom php71u-mbstring php71u-gd php71u-pdo php71u-json php71u-xml php71u-zip curl php71u-curl php71u-mcrypt |
||
19 | </code> |
||
20 | 5 | Jeremias Keihsler | |
21 | h2. podman based |
||
22 | |||
23 | taken from https://fedoramagazine.org/nextcloud-20-on-fedora-linux-with-podman/ |
||
24 | |||
25 | <pre><code class="shell"> |
||
26 | sudo dnf install podman |
||
27 | </code></pre> |
||
28 | |||
29 | <pre><code class="shell"> |
||
30 | podman network create nextcloud-net |
||
31 | podman network ls |
||
32 | podman network inspect nextcloud-net |
||
33 | </code></pre> |
||
34 | |||
35 | <pre><code class="shell"> |
||
36 | podman volume create nextcloud-app |
||
37 | podman volume create nextcloud-data |
||
38 | podman volume create nextcloud-db |
||
39 | </code></pre> |
||
40 | |||
41 | <pre><code class="shell"> |
||
42 | podman volume ls |
||
43 | podman volume inspect nextcloud-app |
||
44 | </code></pre> |
||
45 | |||
46 | <pre class="wrap"><code class="shell"> |
||
47 | podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10 |
||
48 | </code></pre> |
||
49 | 6 | Jeremias Keihsler | |
50 | <pre><code class="shell"> |
||
51 | podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20 |
||
52 | </code></pre> |
||
53 | |||
54 | <pre><code class="shell"> |
||
55 | podman container ls |
||
56 | </code></pre> |
||
57 | |||
58 | h3. update container |
||
59 | |||
60 | <pre><code class="shell"> |
||
61 | podman pull mariadb:10 |
||
62 | podman stop nextcloud-db |
||
63 | podman rm nextcloud-db |
||
64 | podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10 |
||
65 | </code></pre> |
||
66 | |||
67 | <pre><code class="shell"> |
||
68 | podman pull nextcloud:20 |
||
69 | podman stop nextcloud |
||
70 | podman rm nextcloud |
||
71 | podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20 |
||
72 | </code></pre> |
||
73 | 8 | Jeremias Keihsler | |
74 | h1. config.php additions |
||
75 | |||
76 | h2. automagically clear deleted files |
||
77 | |||
78 | taken from https://bayton.org/docs/nextcloud/nextcloud-hoarding-trash-how-to-force-automatic-removal-of-deleted-items/ |
||
79 | |||
80 | Nextcloud may delete files from trash as necessary but has to after 10 days latest. |
||
81 | |||
82 | <pre><code class="php"> |
||
83 | 'trashbin_retention_obligation' => 'auto, 10', |
||
84 | </code></pre> |
||
85 | |||
86 | h2. password-recovery not working, getting 'network error' on GUI |
||
87 | |||
88 | taken from https://help.nextcloud.com/t/network-error-for-new-account-at-reset-password-page/74234 |
||
89 | |||
90 | <pre><code class="php"> |
||
91 | 'overwriteprotocol' => 'https', |
||
92 | </code></pre> |
||
93 | 9 | Jeremias Keihsler | |
94 | h1. occ inside container |
||
95 | |||
96 | h2. add missing indices |
||
97 | |||
98 | as for update from NC22 to NC23 there are some indices missing. |
||
99 | |||
100 | <pre><code class="shell"> |
||
101 | podman exec -it -u www-data nc_example.com-nc /bin/sh |
||
102 | php occ db:add-missing-indices |
||
103 | exit |
||
104 | </code></pre> |