Ubuntu Appliance: error updating .htaccess file

Good evening.
I installed Ubuntu Appliance + Nextcloud on a Raspberry and set up my domain.
To delete the url’s index.php I placed it in config.php
‘htaccess.RewriteBase’ => ‘/’,
‘overwrite.cli.url’ => ‘http: //domain.ext’,
but the command
sudo nextcloud.occ maintenance:update:htaccess
returns
Error updating .htaccess file, not enough permissions or "overwrite.cli.url" set to an invalid URL?

Is it possible to solve?
Thank you

Hi,
did you install nextcloud via snap?

If yes, please have a look here:

No. Nextcloud is preconfigured on Ubuntu Appliance.
You just have to configure the network to make it work.

Unfortunately, the problem does not seem to be solved yet.
Thank you.

@zetadi
Read

Remove index.php in Url on Litespeed - #2 by devnull

Your webserver/nextcloud-user must have write access to .htaccess

Or is the overwrite.cli.url wrong? Perhaps leave it empty.

Configuration Parameters — Nextcloud latest Administration Manual latest documentation

Actually, this command is a strong indicator that you are using the snap.

Removing index.php is not possible with the snap because the snap isn’t writeable.

Ubuntu Appliance is snap based.
I just meant that I didn’t install Nextcloud because it’s already preconfigured.

Sorry i do not use Snap and do not like it.

But perhaps this works. Perhaps you must first set your config.php back to the original.

sudo nextcloud.occ config:system:set htaccess.RewriteBase --value="/"
sudo nextcloud.occ maintenance:update:htaccess

https://github.com/nextcloud/nextcloud-snap/issues/412

As I said:

You can follow the discussion here:
https://github.com/nextcloud/nextcloud-snap/issues/412

@szaimen Ok. now i really hate Snap and more Nextcloud-Snap.

Perhaps someone can remove “/index.php” from all future nextcloud releases. It is so stupid.

Ok i open an issue

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.