After the first try installing Nextcloud on my Mox I decided to make a new start with a second try. But nevertheless the installation has some bugs or better missing settings (and I wonder why a special Nextcloud package doesn’t set all thing right in the installation process. So I still get the following warnings and have no idea how to fix this… And the Nextcloud documentation is no help at all cause of the spcific turris settings…
(Up to now I’m very dissapointed that nearly nothing with Mox worked like expected… )
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 warnings regarding your setup.
PHP does not seem to be setup properly to query system environment variables. The test with getenv(“PATH”) only returns an empty response. Please check the installation documentation for PHP configuration notes and the PHP configuration of your server, especially when using php-fpm.
The PHP memory limit is below the recommended value of 512MB.
Accessing site insecurely via HTTP. You are strongly adviced to set up your server to require HTTPS instead, as described in the security tips .
Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation.
Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation.
No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation.
This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. imagick
Hallo @dadall - nice to hear that at least some things could be fixed. I’d be very pleased if you can give me some hints how you did this - cause I’m no linux guy so far and guess that those things can’t be done inside the Nextcloud installation folders but on other parts of the system. And I fear to crash the while system…
Replace memory_limit = 384M ; Maximum amount of memory a script may consume.
with memory_limit = 512M ; Maximum amount of memory a script may consume.
To fix PHP env :
vim /etc/php7-fpm.d/www.conf
Then uncommant the lines starting with env like that :
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp
HSTS
If you are getting this error: The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS.
My DDNS is no-ip.com but when I enter my ddns domainname (still HTTP) I see my Turris Mox choice menu and I want to see Nextcloud directly. Did you manage this also?
example:
I see on no-ip.com, section: My Services => SSL Certificates => TrustCor Standard DV / Available / +Add CSR
Quote on No-IP:
In general you have to create the CSR (Certificate Signing Request), provide the CSR to No-IP, validate ownership of the hostname, download the certificate, install the certificate on your server, enable HTTPS and SSL on your server, and open port 443 in your router.