Tips for Using Nextcloud on a Gandi Web Hosting

The following page gives some tips on how to manage Nextcloud on your Gandi Web Hosting.

Update Nextcloud from the Command Line

You have the possibility to use the occ tool (for OwnCloud Console) provided by Nextcloud to manage your installation via the emergency console of your Web Hosting.

You will find a list of all commands available via the official Nextcloud documentation.

Once the emergency console of your web hosting has been activated and you are connected to it, go to the root directory of your website:

cd /srv/data/web/vhosts/

Start the Nextcloud update procedure with the following command:

php occ upgrade

If necessary, deactivate the maintenance mode at the end of the upgrade operation:

php occ maintenance:mode --off

Security & Setup Warnings

In the administration section of Nextcloud you will see some security and setup warnings. The following sections list these warnings and explains how to address them.

You can access the adminstration section of Nextcloud at https://[]/settings/admin/overview, where you replace [] with the domain where you access Nextcloud.

The PHP memory limit is below the recommended value of 512MB.

For Web Hostings, this value is set to 128M for Small pack web hostings, 192M for the Medium pack, 256M for the Large pack, and 512M for the XXL pack. You can find more information about this on our documentation page on editing your PHP configuration file.

However, this will have no impact on the functionality of your NextCloud web hosting.

Unsecured access to the site via HTTP. It is strongly recommended that you configure your server to require HTTPS instead.

You can modify the SSL strategy of your website via its management page to force the use of HTTPS only protocol.

The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds.

The HTTP header “Strict-Transport-Security” can be forced by editing the .htaccess file of your site and adding the following lines:

<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"

The PHP OPcache is not properly configured.

The opcache values can be set by editing the php.ini file, as indicated on the page of our documentation page on editing your PHP configuration file.

You will then need to add the following lines:


Since the value of opcache.memory_consumption is defined according to the size of your web hosting, the message about opcache will remain displayed, since it is not possible to define exactly 128.

However, again, this does not affect the performance of your NextCloud web hosting.