Add requirement error if Apache does not have mod_rewrite enabled

Created on 8 June 2023, about 1 year ago
Updated 8 November 2023, 8 months ago

Problem/Motivation

Apache installs appear to require mod_rewrite, but no requirements warning/error is displayed

Steps to reproduce

Install Drupal on Apache without mod_rewrite enabled.
No warning is displayed on Reports->Status Report, but image styles do not work.
Enable mod_rewrite and restart Apache.
Image styles now work.

Proposed resolution

Display a requirements error if the web server is Apache and mod_rewrite is not installed. (Check for Apache specifically as other web servers may not have mod_rewrite to check against)

Remaining tasks

Note that mod_rewrite is still a requirement on 🐛 Regression fix: allow Drupal 8 to work without Apache mod_rewrite Fixed which indicates that it is not, though it is indicated as a requirement on Web server requirements and #2733233: Image styles require mod_rewrite indicates the issue is fixed but no requirements error has been added.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

Display a requirements error on Status Report page if Apache is installed without mod_rewrite enabled.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Image system 

Last updated about 4 hours ago

Created by

🇺🇸United States diamondsea

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024