Aktuelle Version |
Dein Text |
Zeile 1.134: |
Zeile 1.134: |
| Fix broken values of calendar objects | | Fix broken values of calendar objects |
| Done | | Done |
| -->
| |
| 0/0 [----->----------------------] 0% | | 0/0 [----->----------------------] 0% |
| <!--
| |
| Updated <dav> to 1.15.0 | | Updated <dav> to 1.15.0 |
| Updating <files_sharing> ... | | Updating <files_sharing> ... |
Zeile 1.954: |
Zeile 1.952: |
| : <code>su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'</code> | | : <code>su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'</code> |
| <pre> | | <pre> |
| Following columns will be updated:
| |
|
| |
| * filecache_extended.fileid
| |
|
| |
| This can take up to hours, depending on the number of files in your instance!
| |
| Continue with the conversion (y/n)? [n] y
| |
| </pre>
| |
|
| |
| https:///index.php/settings/admin/overview
| |
| <pre>
| |
| Security & setup warnings
| |
|
| |
| It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.
| |
| There are some errors regarding your setup.
| |
|
| |
| Last background job execution ran 1 hour ago. Something seems wrong. Check the background job settings
| |
| </pre>
| |
| <pre></pre>
| |
|
| |
| https:///index.php/settings/admin#backgroundjobs
| |
| <pre>
| |
| Background jobs
| |
|
| |
| Some jobs didn’t execute since 5 months ago. Please consider switching to system cron.
| |
|
| |
| For optimal performance it's important to configure background jobs correctly. For bigger instances 'Cron' is the recommended setting. Please see the documentation for more information.
| |
| Pick background job setting
| |
|
| |
|
| |
| Execute one task with each page loaded
| |
|
| |
|
| |
| cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP.
| |
|
| |
|
| |
| Use system cron service to call the cron.php file every 5 minutes. The cron.php needs to be executed by the system user "www-data".
| |
| </pre>
| |
| <pre>
| |
| [O] AJAX
| |
| [ ] Webcron
| |
| [ ] Cron
| |
| </pre>
| |
| <pre>
| |
| [ ] AJAX
| |
| [ ] Webcron
| |
| [O] Cron
| |
| </pre> | | </pre> |
| https:///index.php/settings/admin/overview
| |
| <pre></pre>
| |
|
| |
|
| <!-- | | <!-- |
Zeile 2.023: |
Zeile 1.973: |
|
| |
|
| == [[FreeBSD]] == | | == [[FreeBSD]] == |
|
| |
| == [[NixOS]] ==
| |
|
| |
| ; Rahmenbedingungen:
| |
| :; Container: PVE (Version 7)
| |
| :; Version NixOS: 21.11 (stable)
| |
| :; Netzwerk: eingerichtet
| |
| ::* (leider nur IPv4 only)
| |
| ::* Eintrag für DNS für ''test.nextcloud.nix.stura-dresden.de''
| |
|
| |
| ; erst einmal nur notwendigste für Nextcloud einrichten:
| |
|
| |
| Das bedeutet bei NixOS
| |
| :* die Verwendung vom Dienst web server mit der Anwendung nginx
| |
| :* die Verwendung vom Dienst database mit der Anwendung SQLite
| |
| .
| |
|
| |
| Erstellen einer Datei (an beliebigen Ort und mit beliebigen Namen) für ein beliebiges Passwort
| |
| : <code>$EDITOR /tmp/nixos_configuration.nix_services.nextcloud.adminpassFile</code>
| |
| <pre>
| |
| password4nextcloud
| |
| </pre>
| |
|
| |
| : <code>$EDITOR /etc/nixos/configuration.nix</code>
| |
| <pre>
| |
| { config, pkgs, ... }:
| |
|
| |
| {
| |
| imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| networking.firewall.allowedTCPPorts = [ 80 ];
| |
| services.nextcloud.enable = true;
| |
| ## services.nginx.enable = true;
| |
| services.nextcloud.hostName = "test.nextcloud.nix.stura-dresden.de";
| |
| ## services.nextcloud.config.dbtype = "sqlite";
| |
| ## services.nextcloud.config.adminuser = "root";
| |
| services.nextcloud.config.adminpassFile = "/tmp/nixos_configuration.nix_services.nextcloud.adminpassFile";
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| }
| |
| </pre>
| |
|
| |
| ; Verschlüsslung für http dazu hinzufügen:
| |
|
| |
| : <code>$EDITOR /etc/nixos/configuration.nix</code>
| |
| <pre>
| |
| { config, pkgs, ... }:
| |
|
| |
| {
| |
| imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| # networking.firewall.allowedTCPPorts = [ 80 ];
| |
| networking.firewall.allowedTCPPorts = [ 80 443 ];
| |
| services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".enableACME = true;
| |
| security.acme.email = "cert@stura.htw-dresden.de";
| |
| security.acme.acceptTerms = true;
| |
| services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".forceSSL = true;
| |
| services.nextcloud.https = true;
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| }
| |
| </pre>
| |
|
| |
| ; Umstellung beim Dienst database zur Anwendung PostgreSQL:
| |
|
| |
| : <code>$EDITOR /etc/nixos/configuration.nix</code>
| |
| <pre>
| |
| { config, pkgs, ... }:
| |
|
| |
| {
| |
| imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| services.postgresql.enable = true;
| |
| services.postgresql.ensureDatabases = [ "database4nextcloud" ];
| |
| services.postgresql.ensureUsers = [
| |
| {
| |
| name = "nextcloud";
| |
| ensurePermissions."DATABASE database4nextcloud" = "ALL PRIVILEGES";
| |
| }
| |
| ];
| |
|
| |
| systemd.services."nextcloud-setup".requires = ["postgresql.service"];
| |
| systemd.services."nextcloud-setup".after = ["postgresql.service"];
| |
|
| |
| services.nextcloud.config.dbtype = "pgsql";
| |
| services.nextcloud.config.dbname = "database4nextcloud";
| |
| services.nextcloud.config.dbhost = "/run/postgresql";
| |
| services.nextcloud.config.dbuser = "database4nextcloud";
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| }
| |
| </pre>
| |
|
| |
|
| |
| ; Festlegen einer (vom Standard, nämlich einer Version vor der neusten Version) bestimmten Version der Anwendung Nextcloud:
| |
|
| |
| : <code>$EDITOR /etc/nixos/configuration.nix</code>
| |
| <pre>
| |
| { config, pkgs, ... }:
| |
|
| |
| {
| |
| imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| services.nextcloud.package = pkgs.nextcloud23;
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| }
| |
| </pre>
| |
|
| |
| :; Siehe auch: https://pro.stura.htw-dresden.de/issues/1160
| |
|
| |
| ==== Hinweise zu [[NixOS]] ====
| |
|
| |
| ; Benutzen vom Befehl ''occ'':
| |
|
| |
| : <s><code>php occ</code></s>
| |
|
| |
| : <code>which nextcloud-occ</code>
| |
| <pre>
| |
| /run/current-system/sw/bin/nextcloud-occ
| |
| </pre>
| |
| : <code>ls -l $(which nextcloud-occ)</code>
| |
|
| |
| : <code>nextcloud-occ</code>
| |
| : <code>nextcloud-occ -h</code>
| |
|
| |
| : <code>nextcloud-occ status</code>
| |
| <pre>
| |
| - installed: true
| |
| - version: 23.0.0.10
| |
| - versionstring: 23.0.0
| |
| </pre>
| |
| <pre></pre>
| |
|
| |
| ; brutales schnelles Löschen von Daten von Anwendungen (, etwa bei Fehlermeldungen bei der Installation):
| |
|
| |
| : <code>systemctl stop nginx.service && systemctl stop phpfpm-nextcloud.service && rm -rf /var/lib/nextcloud/</code>
| |
|
| |
| : <code>systemctl stop postgresql.service && rm -rf /var/lib/postgresql/</code>
| |
|
| |
| ; anschauen von verwendeten (und wohl anpassbaren) Dateien für die Konfiguration der Anwendung Nextcloud:
| |
|
| |
| : <code>less /var/lib/nextcloud/config/override.config.php</code>
| |
|
| |
| : <code>less /var/lib/nextcloud/config/config.php</code>
| |
|
| |
|
| == Aktualisierung == | | == Aktualisierung == |