Nextcloud » Historie » Version 13
Jeremias Keihsler, 07.09.2024 08:27
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 | 10 | Jeremias Keihsler | <pre><code class="shell"> |
47 | 5 | Jeremias Keihsler | 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 | 1 | Jeremias Keihsler | </code></pre> |
93 | 10 | Jeremias Keihsler | |
94 | h2. default phone region not set |
||
95 | |||
96 | taken from https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html |
||
97 | |||
98 | <pre><code class="php"> |
||
99 | 'default_phone_region' => 'DE', |
||
100 | </code></pre> |
||
101 | |||
102 | 12 | Jeremias Keihsler | h2. remove 'Nextcloud'-Link from shared files |
103 | |||
104 | taken from https://help.nextcloud.com/t/how-to-remove-link-to-nextcloud-from-shared-files/50912 |
||
105 | |||
106 | <pre><code class="php"> |
||
107 | 'simpleSignUpLink.shown' => false, |
||
108 | </code></pre> |
||
109 | 9 | Jeremias Keihsler | |
110 | h1. occ inside container |
||
111 | |||
112 | h2. add missing indices |
||
113 | |||
114 | as for update from NC22 to NC23 there are some indices missing. |
||
115 | |||
116 | <pre><code class="shell"> |
||
117 | podman exec -it -u www-data nc_example.com-nc /bin/sh |
||
118 | php occ db:add-missing-indices |
||
119 | exit |
||
120 | </code></pre> |
||
121 | 11 | Jeremias Keihsler | |
122 | 13 | Jeremias Keihsler | h2. add missing mimetyped |
123 | |||
124 | as for update to NC29.0.6 there are some mimetypes missing. |
||
125 | |||
126 | <pre><code class="shell"> |
||
127 | podman exec -it -u www-data nc_example.com-nc /bin/sh |
||
128 | php occ maintenance:repair --include-expensive |
||
129 | exit |
||
130 | </code></pre> |
||
131 | |||
132 | 11 | Jeremias Keihsler | h2. add missing BigInt (64bit) identifiers |
133 | |||
134 | https://docs.nextcloud.com/server/25/admin_manual/configuration_database/bigint_identifiers.html |
||
135 | |||
136 | <pre><code class="shell"> |
||
137 | podman exec -it -u www-data nc_example.com-nc /bin/sh |
||
138 | php occ db:convert-filecache-bigint |
||
139 | exit |
||
140 | </code></pre> |