Fix installation with read-only settings.php

Created on 9 March 2021, over 3 years ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

The installer stops if settings.php is not writable, even if nothing needs to be written.

This had been fixed before: See Installing Drupal without making settings.php writable now requires the config directory to be manually specified | Drupal.org

Steps to reproduce

- Deploy to a host with write protected file system.
- `drush site-install` (or install manually)

Proposed resolution

- Only require writable settings.php if needed.
- Optionally, make the requirements message more explicit.

Remaining tasks

Do it.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Installing Drupal without making settings.php writable now is possible, iff $databases, $settings['config_sync_directory'], and $settings['hash_salt'] are provided.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Install 

Last updated 2 days ago

No maintainer
Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024