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
As I said:
You can follow the discussion here:
opened 09:27AM - 07 Jan 18 UTC
feature
Hi,
How would I go about removing index.php from the url?
I've tried addin⌠g `'htaccess.RewriteBase' => '/',` to `config.php` and then running `sudo nextcloud.occ maintenance:update:htaccess`, but I get the following error:
```
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Error updating .htaccess file, not enough permissions?
```
@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