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

'occ maintenance:install' sets 'overwrite.cli.url' to 'http://localhost' #6313

Closed
mejo- opened this issue Aug 30, 2017 · 4 comments
Closed
Labels
bug feature: install and update good first issue Small tasks with clear documentation about how and in which place you need to fix things in. low

Comments

@mejo-
Copy link
Member

mejo- commented Aug 30, 2017

Hello,

for some reason, overwrite.cli.url is always set to http://localhost after manual installation of Nextcloud via occ maintennce:install.

Steps to reproduce

  1. Download nextcloud-12.0.2.zip, unzip and move into folder
  2. php occ maintenance:install --database=mysql --database-name=nextcloud --database-user=nextcloud --database-pass=... --admin-pass=...
  3. cat config/config.php
[...]
  'overwrite.cli.url' => 'http://localhost',
[...]

Expected behaviour

overwrite.cli.url should not be set

Server configuration

Operating system: Debian 9.0 Stretch
Web server: Apache2
Database: MariaDB
PHP version: 7.0.19
Nextcloud version: 12.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: zip file

@MorrisJobke MorrisJobke added bug low good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Dec 14, 2017
@Tsuroerusu
Copy link

I just recently ran into this with Nextcloud 13.0.1, and in addition the trusted domain was also set to "localhost". I would suggest that a simple parameter for the maintenance:install sub-command to specify the hostname be added.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@enoch85
Copy link
Member

enoch85 commented Sep 9, 2018

This needs to be fixed asap as it breaks the Nextloud 14 occ installation. You can't set pretty URLs because it expects a trailing slash in the end. I fixed it in the VM but would be nice with a fix in the server as well.

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Sep 9, 2018
@kesselb
Copy link
Contributor

kesselb commented Sep 9, 2018

Ref #10678

@kesselb
Copy link
Contributor

kesselb commented Oct 3, 2018

@MorrisJobke has suggested another way here #11602 (comment)

Another approach could be setting an environment var NC_overwrite.cli.url

@kesselb kesselb closed this as completed Oct 3, 2018
@kesselb kesselb removed their assignment Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: install and update good first issue Small tasks with clear documentation about how and in which place you need to fix things in. low
Projects
None yet
Development

No branches or pull requests

9 participants