1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team-Mitglieder
    4. Trophäen
    5. Mitgliedersuche
  4. Tutorial Bereich
  • Deutsch
  • Anmelden
  • Registrieren
  • Suche
CMS
  1. Informatik Forum
  2. Lexikon
  3. Webentwicklung
  4. CMS

Nextcloud installation on keyhelp host

  • PixelPatron
  • 21. Juni 2024 um 18:15
  • 9. Januar 2025 um 18:28
  • 821 mal gelesen
  • Nextcloud installation in keyhelp

    I had a lot of difficulties with Nextcloud settings in conjunction with Keyhelp. I don't want to make a statement about the two software(s), it's just the reason why you have to read this crap. This tutorial describes individual paths and not an entire process. Depending on the system, a step may be missing or added. So if you have problems with your Nextcloud instance despite the instructions, feel free to open a relevant topic in the forum here ;)

    1 Nextcloud installation in keyhelp

    I had a lot of difficulties with Nextcloud settings in conjunction with Keyhelp. I don't want to make a statement about the two software(s), it's just the reason why you have to read this crap. This tutorial describes individual paths and not an entire process. Depending on the system, a step may be missing or added. So if you have problems with your Nextcloud instance despite the instructions, feel free to open a relevant topic in the forum here :winking_face:

    1.1 Setup keyhelp domain/user

    To begin with, it is enough to create a new domain in Keyhelp. Personally, I recommend having your own user for the Nextcloud instance as you have to make some custom settings.

    Add "Security settings / SSL settings:

    Spoiler anzeigen

    Enable SSL support
    Set HSTS to 15552000 seconds (or 180 days)

    Add "Additional php configuration" with the below settings:

    Spoiler anzeigen
    Code
    opcache.enable_cli=1
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.memory_consumption=128
    opcache.save_comments=1
    opcache.revalidate_freq=1

    Edit php‘s disable_functions

    default

    apache_child_terminate, apache_note, apache_setenv, curl_multi_exec, define_syslog_variables, dl, exec, link, openlog, passthru, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, stream_socket_sendto, symlink, syslog, system

    and we enable all posix features

    posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,

    after:

    apache_child_terminate, apache_note, apache_setenv, curl_multi_exec, define_syslog_variables, dl, exec, link, openlog, passthru, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, stream_socket_sendto, symlink, syslog, system

    2 Setup nextcloud

    2.1 Install nextcloud

    Download nextcloud web installer (community project)

    https://download.nextcloud.com/server/installer/setup-nextcloud.php

    (Use Keyhelp's built-in file manager to upload the "setup-nextcloud.php" to the designated folder with the new user (from step 1))

    You should also give the file “occ” the rights 744.

    Now navigate to

    https://www.domain.de/nextcloud-setup.php

    in your browser and let the Nextcloud assistant guide you through the rest of the process.

    Personally, I advise you to put the "data" directory not in the www but in the files folder

    3 Setup memcache & redis

    3.1 Install APCU for php

    Code
    sudo apt install php-apcu

    3.2 Install redis server

    Code
    sudo apt install redis-server php-redis

    Now open redis configuration

    Change port 6379 to port 0
    Change # unixsocket /var/run/redis/redis-server.sock to unixsocket /var/run/redis/redis-server.sock
    From the line below make unixsocketperm 770

    Now we're adding your new keyhelp domain user to the redis group

    Code
    sudo usermod -a -G redis <yourKeyhelpDomainUser>

    Restart your redis & apache2 server

    Code
    sudo service redis-server restart
    sudo service apache2 restart

    Last but not least edit your nextcloud config.php stored in config directory of your nextcloud installation

    Code
    'memcache.local' => '\\OC\\Memcache\\APCu',
    'filelocking.enabled' => 'true',
    'memcache.locking' => '\\OC\\Memcache\\Redis',
    'redis' => array (
        'host' => '/var/run/redis/redis-server.sock',
        'port' => 0,
    ),

    As already mentioned at the beginning: If you encounter any problems, I would be happy to read from you here soon :red_heart:

    Best regards
    Alexander

    Sorry Blacksonny for the delay :red_heart:

    • keyhelp
    • nextcloud
    • vhost

Teilen

  • Änderungsprotokoll
  • PDF

Inhaltsverzeichnis

  • 1 Nextcloud installation in keyhelp
    • 1.1 Setup keyhelp domain/user
  • 2 Setup nextcloud
    • 2.1 Install nextcloud
  • 3 Setup memcache & redis
    • 3.1 Install APCU for php
    • 3.2 Install redis server

Kategorien

  1. Programmierung 0
  2. Webentwicklung 1
    1. Frontend 0
    2. Backend 0
    3. Full Stack 0
    4. CMS 1
  3. Netzwerk und Sicherheit 2
  4. Systemadministration 4
  5. Hardware 0
  6. Software Entwicklungstools 0

Rechtliches

Impressum

Datenschutzerklärung

  • Alles
  • CMS
  • Seiten
  • Forum
  • Lexikon
  • Erweiterte Suche
  • Deutsch
  • English
Zitat speichern