Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overwrite.cli.url requires a trailing "/" in NC 14.0.0 #863

Closed
mmccarn opened this issue Sep 14, 2018 · 5 comments
Closed

overwrite.cli.url requires a trailing "/" in NC 14.0.0 #863

mmccarn opened this issue Sep 14, 2018 · 5 comments

Comments

@mmccarn
Copy link

mmccarn commented Sep 14, 2018

NC 14 seems to require a trailing slash in the specification of overwrite.cli.url in config/config.php

sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess

Without a trailing slash:

Error updating .htaccess file, not enough permissions or "overwrite.cli.url" set to an invalid URL?

With a trailing slash:

.htaccess has been updated

If this is a permanent situation, then these two files need updating:

@nickvergessen
Copy link
Member

We should additionally fix this, to allow both.

@b3
Copy link

b3 commented Oct 8, 2018

On my 14.0.1.1 installed version none of the two (with or without trailing slash) work. Using the maintenance:update:htaccess command of occ always gives me the cited error.

Pretty URL are not working anymore at that stage.

@Linutux
Copy link

Linutux commented Oct 10, 2018

I also have this problem with and without a trailing slash. File .htaccess is owned by the right user, permissions are OK, but problem persists. Nextcloud 14.0.1.1.

No pretty URLs are working for me too (file not found).

@juliusknorr
Copy link
Member

This has been fixed with nextcloud/server#11446.

@b3
Copy link

b3 commented Oct 11, 2018

My trouble was due to the ownership of the .htaccess file (owned by root and in the webserver user group instead of owned by the webserver user) because I still used/fixed access granting through a script created when I installed Nextcloud 9.
That was my mistake (did not reread full documentation when upgrading).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants