Beta phase evaluation
| Bug | Documentation is unclear |
|---|---|
| Normal | Functionality not inhibited |
| Unfrozen changes | Documentation changes |
| Prioritized changes | The main goal of this issue is to enhance the clarity of documentation for 8.0.x/7.0.x (note this bug is tagged for backport) |
| Disruption | Change is not disruptive for core/contributed and custom modules/theme and will not require a BC break/deprecation/data model changes/an upgrade path/internal refactoring/widespread changes. |
Upgrade.txt has the following:
Sometimes an update includes changes to default.settings.php (this will be
noted in the release notes). If that's the case, follow these steps:
- Make a backup copy of your settings.php file, with a different file name.
- Make a copy of the new default.settings.php file, and name the copy
settings.php (overwriting your previous settings.php file).
- Copy the custom and site-specific entries from the backup you made into the
new settings.php file. You will definitely need the lines giving the
database information, and you will also want to copy in any other
customizations you have added.
It would be better if it read:
Sometimes an update includes changes to default.settings.php (this will be
noted in the release notes). If that's the case, follow these steps:
- Locate your settings.php file in the /sites/default folder.
- Make a backup copy of your settings.php file, with a different file name.
- Make a copy of the new default.settings.php file, and name the copy
settings.php (overwriting your previous settings.php file).
- Copy the custom and site-specific entries from the backup you made into the
new settings.php file. You will definitely need the lines giving the
database information, and you will also want to copy in any other
customizations you have added.
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | drupal-mentionlocationofsettingsphp-2507911-22.patch | 611 bytes | naveenvalecha |
| #18 | interdiff-2507911-9-11.txt | 620 bytes | naveenvalecha |
| #18 | drupal-mentionlocationofsettingsphp-2507911-11.patch | 631 bytes | naveenvalecha |
| #9 | interdiff-2507911-5-9.txt | 480 bytes | dylf |
| #9 | drupal-mentionlocationofsettingsphp-2507911-9.patch | 598 bytes | dylf |
Comments
Comment #1
jhodgdonThe settings.php file is not necessarily in the sites/default folder. It could be in a different sites/* folder. Other than that, this seems like an OK thing to do. But we would need to patch 8.x before we do 7.x.
Comment #2
mikebell_ commentedPatch attached
Comment #3
mikebell_ commentedHastily forgot to make sure that it was correctly indented, this is a much smaller patch.
Comment #4
jhodgdonThanks for the patches!
As noted above, the settings.php file may not be in that folder though -- see comment #1.
Also I do not think we normally use the word "folder", we usually use "directory" I think? But we should check on that and be consistent with the various other README-type files.
Comment #5
deepakaryan1988Address the point which is in #4
Comment #6
naveenvalecha#4
Right.I have checked in another Readme.txt file in modules folder.RTBC +1
Regarding #1
As our current documentation is for single site install. Should we also specify in another extra line about mutisite install settings.php ? and add sites/* Is this documentation is fine ?
Thanks!
Comment #7
jhodgdonRegarding folder vs. directory:
core/INSTALL.txt - uses directory everywhere, no "folder"
core/UPGRADE.txt - same (at least before this patch)
modules/README.txt - same
So yes it should definitely be "directory" not "folder", and thanks for making that change in the latest patch!
But. The latest patch still does not address #1. sites/default is not always the correct location for this file.
Comment #8
dylf commentedComment #9
dylf commentedAddressed #1.
Comment #10
kfitz commentedChanges look good, address the issue of the patch, and stay within the scope of the issue. One detail I noticed is that it may have been possible to only edit the changed line of text and not insert the newline, but the end result is the same. No major changes or functionality are introduced by this patch.
Comment #11
kfitz commentedComment #12
kfitz commentedComment #13
kfitz commentedComment #14
kfitz commentedComment #15
jhodgdonLooks good to me, thanks!
Comment #16
webchickSo while #1 is valid, the fact is that 99.9999% of Drupal sites will have the settings.php file in sites/default.
So I think we should re-word this slightly to throw people a bone. Maybe:
+ - Locate your settings.php file in the /sites/* directory. (Typically sites/default.)
Comment #17
jhodgdonGood idea.
Comment #18
naveenvalechaComment #19
dylf commentedPatch addresses #16
Comment #20
xjmThanks, this is a good improvement!
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x.
Moving to 7.x for backport.
Comment #22
naveenvalechaComment #23
dylf commentedPatch does exactly the same thing as the 8.x patch.
Comment #24
David_Rothstein commentedCommitted to 7.x - thanks!