Skip to content

fix(docs): list config.php keys to review when migrating servers#14852

Open
skjnldsv wants to merge 1 commit into
masterfrom
fix/migration-config-keys-review
Open

fix(docs): list config.php keys to review when migrating servers#14852
skjnldsv wants to merge 1 commit into
masterfrom
fix/migration-config-keys-review

Conversation

@skjnldsv
Copy link
Copy Markdown
Member

@skjnldsv skjnldsv commented May 14, 2026

☑️ Resolves

What changed and why

The migration guide told users to copy config/config.php to the new server and only said "if you change any paths, adapt them in config.php". That is not enough — several keys are server-specific and will silently be wrong after a copy, causing startup errors or data corruption:

  • datadirectory — path should not change (only on specific very rare cases)
  • dbhost / dbname / dbuser / dbpassword — new DB instance = new credentials
  • trusted_domains — must include the new hostname
  • overwrite.cli.url — must reflect the new URL
  • memcache.* / redis connection params — cache host may differ
  • logfile — log path may differ

Added an important admonition in step 4 (the file-copy step) that explicitly lists each of these keys and explains the consequence of leaving them stale.

🖼️ Screenshots

image ### ✅ Checklist
  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

📖 Documentation Preview

🔍 Open preview →

📄 2 changed documentation pages

Last updated: Fri, 15 May 2026 07:25:02 GMT

@nickvergessen
Copy link
Copy Markdown
Member

nickvergessen commented May 14, 2026

Changing data directory is not supported and should be avoided at any cost.
In theory a change of oc_storage entry is also needed and things like that

@skjnldsv
Copy link
Copy Markdown
Member Author

Changing data directory is not supported and should be avoided at any cost. In theory a change of oc_storage entry is also needed and things like that

We indeed have a dedicated section about this. https://docs.nextcloud.com/server/stable/admin_manual/issues/general_troubleshooting.html#troubleshooting-data-directory

@skjnldsv
Copy link
Copy Markdown
Member Author

Done @nickvergessen

@skjnldsv skjnldsv enabled auto-merge May 14, 2026 16:40
@skjnldsv
Copy link
Copy Markdown
Member Author

Updated screenshot too

Comment thread admin_manual/maintenance/migrating.rst
@skjnldsv skjnldsv force-pushed the fix/migration-config-keys-review branch from e005493 to 750b122 Compare May 15, 2026 07:18
@skjnldsv skjnldsv requested a review from susnux May 15, 2026 07:19
@skjnldsv skjnldsv force-pushed the fix/migration-config-keys-review branch from 750b122 to 5482718 Compare May 15, 2026 10:50
After copying config.php to a new machine, server-specific values
(datadirectory, DB credentials, trusted_domains, etc.) silently stay
wrong and cause startup errors or data corruption. The docs only said
"adapt the paths" without being specific.

Add an explicit important admonition listing every key that must be
reviewed and updated before starting Nextcloud on the new server.

Fixes #12919

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the fix/migration-config-keys-review branch from 5482718 to 8fcb323 Compare May 15, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy config.php for "Migrating to a different server"?

3 participants