zetadi
August 18, 2020, 5:44pm
1
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:
opened 09:27AM - 07 Jan 18 UTC
Hi,
How would I go about removing index.php from the url?
I've tried adding 'htaccess.RewriteBase' => '/', to config.php and then running sudo...
zetadi
August 19, 2020, 6:26am
3
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:
sudo nextcloud.occ
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.
zetadi
August 19, 2020, 6:41am
6
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
@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
system
Closed
September 23, 2024, 4:44pm
10
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.