Clarify that settings.php is set to RO on install

ChrisKennedy - December 27, 2006 - 03:02
Project:Drupal
Version:5.x-dev
Component:base system
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Sepeck brought up in #drupal that it can be disconcerting to find out later that drupal has transparently changed settings.php to read-only. This patch adds a notification of the read-only change to the post-install page; Steven also helped with the text of the message.

AttachmentSize
install_settingsmsg.patch896 bytes

#1

ChrisKennedy - December 27, 2006 - 03:22
Title:Clarify that settings.php is set to read-only on install» Clarify that settings.php is set to RO on install

Shorten title.

#2

KarenS - December 29, 2006 - 21:05

I'll confirm that it is very disconcerting to find out that this file is write-protected. The message looks OK to me except that I'd also add a message at the top of the settings.php file itself that says that the file is write-protected for security, and that it is OK to make changes to it but it should be immediately re-protected. That is because the person who runs the install might not be the same as the person who later tries to edit the file (or they might be the same person but have forgotten about the warning).

#3

Dries - December 30, 2006 - 08:27
Status:needs review» fixed

Patch looks good. Committed to CVS HEAD.

Karen: how about we add a line at the top of settings.php itself? Or how about we add something to INSTALL.txt too?

#4

KarenS - December 30, 2006 - 11:23

How about something like this for the settings.php file:

AttachmentSize
settings.php_2.patch 940 bytes

#5

KarenS - December 30, 2006 - 11:26

Yes, maybe it would be good to add it to the install.txt file too. Maybe something like this:

AttachmentSize
INSTALL.txt_2.patch 1.11 KB

#6

Morbus Iff - December 30, 2006 - 13:55
Status:fixed» needs review

Minor changes: in some cases, the installer will fail to set the permissions on the file, so it's a "may", not "has".

AttachmentSize
settings.php_2_0.patch 946 bytes

#7

Morbus Iff - December 30, 2006 - 13:57

Same thing.

AttachmentSize
INSTALL.txt_2_0.patch 1.09 KB

#8

Morbus Iff - December 30, 2006 - 14:11

Combined patch.

AttachmentSize
_105368_ro.txt 1.88 KB

#9

KarenS - December 30, 2006 - 15:05

Looks good to me.

#10

Dries - December 30, 2006 - 15:14
Status:needs review» fixed

Looks great. Committed! Thanks folks.

#11

Anonymous - January 13, 2007 - 15:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.