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
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:
Display Spoiler
Enable SSL support
Set HSTS to 15552000 seconds (or 180 days)
Add "Additional php configuration" with the below settings:
Display Spoiler
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
3.2 Install redis server
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
Restart your redis & apache2 server
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