Problem/Motivation

When you finish installing Drupal (at least, with Standard profile but I expect it is universal), you get this message:

All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the online handbook.

There are similar messages generated elsewhere in the installation process too, if you don't have the right file permissions for the install.

The problems with this:

a) In our hook_help() we are not using the phrase "online handbook" any more. We use the term "online documentation". This is never called "handbook" on drupal.org and should not be referred to this way, hasn't been for years.

b) This is not good link text for accessibility, because it doesn't tell you where it goes.

c) The link goes to this page:
https://www.drupal.org/server-permissions
which is actually a page called "Webhosting issues". That page does not tell you how to change file permissions.

d) We don't actually have a page on drupal.org about changing file permissions, and how you would do that depends a lot on whether you have shell access, what O/S you're on, what hosting you have, etc. Generally we want our documentation to document Drupal anyway, not O/S and hosting stuff. Plus our documentation is only in English. So, even making a link here at all is problematic.

Proposed resolution

Since we do not have an appropriate place to link to, we should take out the "If you are unsure..." sentence from this message and other ones in the installation process that are currently linking to the irrelevant page. The idea would be someone gets this message, which gets across the point that they need to change file permissions, and they would then go to Google or their hosting FAQ and figure out the appropriate way to fix the permissions, rather than us first sending them to an irrelevant page in English on Durpal.org that won't answer that question.

Remaining tasks

Make a patch.

User interface changes

We won't give people irrelevant links in install messages.

API changes

No.

Data model changes

No.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because we're sending people to an incorrect page
Issue priority Major because it's part of the install process and is confusing
Unfrozen changes Unfrozen because it only changes strings
Prioritized changes The main goal of this issue is usability and it is a bug fix
Disruption None.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikebarkas’s picture

Assigned: Unassigned » mikebarkas

I will work on this to remove the "If you are unsure..." sentence.

I am a novice and could use some exercise.

harjotsingh’s picture

Priority: Major » Normal
Status: Active » Needs review
FileSize
291.01 KB

The page at https://www.drupal.org/server-permissions deals with all issues that are faced after installation.
It contains the links to the documentation about permissions on various operating systems.
Links are :
Brief intro to Unix file permissions:- https://www.drupal.org/node/34023
Modifying Linux, Unix, and Mac file permissions:- https://www.drupal.org/node/202483
Modifying Windows file permissions:- https://www.drupal.org/node/202491
The message after installation needs to be changed to :
All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are having issues, consult the online handbook.

longwave’s picture

Priority: Normal » Major
Status: Needs review » Active

No patch to review.

jhodgdon’s picture

OK. We do not want it to say "online handbook".

The link text should describe the page it is going to, like "online documentation page for xyz". Also we no longer use the term "handbook" for the online documentation. Thanks!

By the way, the reason I marked this "major" is it is the first thing people see after they install.

Also, I kind of disagree that this is a good page to link to. I think we shouldn't even have all this stuff about Unix file permissions -- why repeat this on drupal.org? It's not about Drupal, and there are better docs elsewhere, and people will have to figure out which of the 20 pages below there is the one that will solve their problem (if they don't know about file permissions, they may not even know what O/S they are hosted on).

xlin’s picture

@jhodgdon, how about this documentation page? https://www.drupal.org/node/2543580

xlin’s picture

Status: Active » Needs review
FileSize
1.56 KB
137.12 KB

Update Post-install message and link to following.

All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the online documentation page on changing file permissions.

mikebarkas’s picture

Assigned: mikebarkas » Unassigned
harjotsingh’s picture

@xq1003
We do not want to change it to "online documentation page" as it doesn't describe what the page is for also the page linked is about Webhosting issues which contains all issues but is not a dedicated permissions page.

We should either change the text to "website issues page" or we can change the link so that it goes to one of the documentation about permissions page.

I changed the link to :https://www.drupal.org/node/244924

xlin’s picture

@harjotsingh @jhodgdon
Wrong link was used in the patch. The correct link that I'm thinking is https://www.drupal.org/node/540242

jhodgdon’s picture

Status: Needs review » Needs work

Thanks for the patches and discussions!

So the text in the latest patch seems OK except it says "the the":

consult the <a href="@handbook_url">the online documentation page

However, I am not sure about linking to
https://www.drupal.org/node/540242

That page is not accurate. It says that the install script changes the permissions. If that were the case, this message would not be shown.

Also, the link text says it is "the online documentation page on changing file permissions", but really that's a small part of the page, so maybe if you're going to use that link (and maybe edit the page so it is more accurate), it should say "the online documentation page about the settings file and permissions"?

And really, someone who doesn't know how to change file permissions is not really going to figure out how to do it by reading this page...

So, again, I really think we should just take this sentence with the link out. We're telling them they need to update the file permissions. They can do a web search, check their hosting knowledge base, or read the help for the file transfer software they are using to figure out how to do this.

harjotsingh’s picture

FileSize
203.54 KB

We can remove the text and link because the installation guide has the section in Step3 which covers the Permissions after Installation.
But wouldn't that make it uneasy for users ?

harjotsingh’s picture

Status: Needs work » Needs review
FileSize
1.14 KB

The patch after removing the link and text.

jhodgdon’s picture

Status: Needs review » Needs work

Well, the problem is that we do not really have a comprehensive page on drupal.org that really explains all the possible cases of how to change file permissions. Nor do I think we should have one -- there are a ton of ways depending on your operating system, hosting control panel, whether you have shell access, etc.

My feeling is that people who don't know how to change file permissions, if they go to the proposed link, will just get confused. So I do not think this is beneficial to send them there. If instead we just tell them "you need to change the file permissions", if they don't know how, they will seek out that information for their set-up and hopefully find it. This is I think better than sending them to a link that doesn't provide that information.

Also that link is only even mildly OK for people who can read English, which is by far not the entire world.

So... that last patch takes out the entire message. All we want to remove is the part that says "If you are unsure how...".

The last submitted patch, 12: 2543580-11-update-post-install-message-and-link.diff, failed testing.

xlin’s picture

@jhodgdon, thanks for clarify. I update the patch with the link removed. Should a page be create on d.o to explain this as a sub-task?

xlin’s picture

Status: Needs work » Needs review
longwave’s picture

The same link (or a very similar one) appears in several other places. Do we need followup issues to change or remove this in those places as well?

core/includes/install.core.inc (5 instances)
core/includes/install.inc (1 instance)
core/modules/system/system.install (1 instance)

jhodgdon’s picture

Seems like we should do them all here, rather than having a bunch of similar issues with similar patches? Thanks!

And the latest patch looks good to me.

harjotsingh’s picture

Status: Needs review » Needs work

The last submitted patch, 19: 2543580-17-update-post-install-message-and-link.diff, failed testing.

harjotsingh’s picture

longwave’s picture

Status: Needs work » Needs review
FileSize
8.72 KB

This covers the 7 extra messages I mentioned in #17. One of these also mentioned INSTALL.txt, and I checked in there - we do have some instructions in there about using chmod commands to alter permissions. Not sure if we should refer to this file, or alter these instructions as well, or leave that for now as being out of scope.

jhodgdon’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

These all look fine to me. Thanks for the patch!

Updating summary...

alexpott’s picture

Are we really sure about this change? If you have installation problems https://www.drupal.org/server-permissions is a pretty great place to land. And searching d.o for help can be frustrating.

jhodgdon’s picture

I disagree that this is a good place to land for this specific problem. This message is only about "it's time to change the permissions on your settings.php file", and that page doesn't tell you how to do this, for most people, as far as I can tell. Plus, it's in English, which is OK only for a subset of people. The pages underneath don't either, really.

alexpott’s picture

Assigned: Unassigned » webchick
Issue tags: +Needs product manager review

I'm not comfortable committing this patch - it removes all links to https://www.drupal.org/files/issues/2543580-remove-handbook-links-22.patch from the installer. This handbook page has gathered together years of knowledge on getting Drupal to work in different hosting environments and it seems pertinent and good to point people to it if they are having problems installing. Tagging for product manager review and assigning to @webchick.

jhodgdon’s picture

The current message says:

so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the online handbook.

So this link is purporting to be a link to how to remove write permissions. The link does not give you that information.

I also don't think that most people who install Drupal are going to find a lot of useful things there, and why link there rather than many other pages on Drupal.org that might be more relevant to most users who install Drupal, like something that actually gets them started administering their site?

And furthermore this page is only available in English. Fine for us, but...

webchick’s picture

Assigned: webchick » Unassigned
Status: Reviewed & tested by the community » Needs work

Yeah, sorry, I can't really really get on board with leaving people up shit creek without a paddle, especially in their first 30 seconds of using Drupal.

I'd rather approach this from re-wording the error message so that when they land on https://www.drupal.org/server-permissions they are getting what they expect. The fact that the page is in English only is true of all handbook references, which are littered all over the place in core, so not sure why that would be a reason to remove the reference to the page.

Suggested rewording: change from

If you are unsure how to grant file permissions, consult the <a href="@handbook_url">online handbook</a>.

to:

The <a href="@handbook_url">Webhosting issues</a> documentation section offers help on this and other topics.

...or something like that.

And, probably even better, make a new page at https://www.drupal.org/webhost-issues that contains the current contents, and restore the old content of https://www.drupal.org/server-permissions (as a child) so that the URL actually does what it says. :P

jhodgdon’s picture

I still think that trying to write a page that covers, for all possible servers and hosting control panels and operating systems, how to modify file permissions, is a losing battle. I seriously would rather leave them without a paddle so that they don't waste their time trying to read a page that quite likely isn't going to cover what they need in the detail they might need, and let them go directly to a web search or contacting their hosting company, rather than pointing them to a page that will never cover all the possibilities.

And... Where is this old content that we need to restore, exactly?

Regarding all the links to drupal.org in Core, yeah, it's a big problem. This issue illustrates the problem nicely... and the related problem that since anyone can edit these pages at any time, we inevitably end up with some of the pages being edited into something else (like this one is), or even deleted or unpublished.

webchick’s picture

https://www.drupal.org/node/202483 (a child page of that) looks like the content I would expect from the URL. Not sure if it was originally part of that or not, but a URL called server-permissions I would expect to link to something about server permissions, not an overview page about webhost stuff.

jhodgdon’s picture

Yeah and there's a separate page for Windows right next to it in the outline. Not sure what to do.

ifrik’s picture

Issue tags: +Barcelona2015
kjay’s picture

I am working on this at the mentored sprint at Barcelona 2015. My mentor is jp.stacey. I'm going to write a patch with the text and link for approval, as per https://www.drupal.org/contributor-tasks/create-patch

kjay’s picture

Here's a patch that follows the text webchick suggested in comment 28 but doesn't go to the extent of changing the URL we're linking to as this seems to need more discussion on what to do drupal.org side.

It does seem odd that the URL for the current target page https://www.drupal.org/server-permissions hits a page titled more generically as 'Webhosting issues'. I think it could make sense to change the current page at https://www.drupal.org/server-permissions to have the url https://www.drupal.org/webhosting-issues and optionally to update this patch so that it points at the new url. This will effectively push the responsibility for providing a good user journey for finding help on this and other issues over to the drupal.org landing page. The wording in this patch implies this anyway and is probably the more future proof option.

Anyway, patch attached for comment and I think the changes need to be on drupal.org will need further discussion and can we keep them separate?

kjay’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
kjay’s picture

Redoing my work.

rumburak’s picture

I think the changes in the patch done by kjay are fine. I think it is better to link to the page https://www.drupal.org/server-permissions than to remove completely the link.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me, and I think that the objections made to earlier patches have been satisfied. Nice work! Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs product manager review

This looks like a good solution. Committed 82198fe and pushed to 8.0.x. Thanks!

  • alexpott committed 82198fe on 8.0.x
    Issue #2543580 by harjotsingh, xq1003, kjay, longwave, jhodgdon,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kay_v’s picture

Brief note to self to review this issue and cogitate on next steps. In Drupal 8.6 it really looks like the issue is unresolved. I'm also opening a documentation issue here https://www.drupal.org/project/user_guide/issues/3047315