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
2 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.
1) Add "Security settings / SSL settings:
Spoiler anzeigen
Enable SSL support
Set HSTS to 15552000 seconds (or 180 days)
2) Add "Additional php configuration" with the below settings:
Spoiler anzeigen
3 3) Edit php‘s disable_functions
default
4 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, systemand we enable all posix features
posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,
5 after:
6 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, systemSetup nextcloud instance
7 Install nextcloud
1) 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.
2) 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
8 Setup memcache & redis
1) Install APCU for php
2) Install redis server
3) 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
4) Now we're adding your new keyhelp domain user to the redis group
4) Restart your redis & apache2 server
5) Last but not least edit your nextcloud config.php stored in config directory of your nextcloud installation
'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
Best regards
Alexander
Sorry Blacksonny for the delay