Problem/Motivation
For projects on a limited budget, shared hosting is often used, due to its ease of use and reasonable pricing.
The recommended method for Drupal's file structure is using a relocated web root, but on shared hosting you often cannot update Apache settings, nor easily Set DocumentRoot via settings.
Until Drupal 11.4 the workaround in #2612160: .htaccess redirect on shared hosting error: Redirects to external URLs are not allowed by default worked well, but stopped working due to Symfony-changes in Drupal.
Steps to reproduce
Need hosting for Drupal 11.4 and find it difficult to find a host which supports easily changing root from public_html to public_html/web.
Proposed resolution
We could share any good hosts we have personal experience with in this issue, which fulfill these Drupal requirements:
- Run Composer via SSH
- Easily set DocumentRoot via settings
Hosting and Scalahosting fulfill the demands, and Hetzner seem to support setting DocumentRoot as well (Setting up a Drupal 11 website on Hetzner) but it would be nice with a confirmation.
Conversely, bluehost, SiteGround, and Hostinger seem to not support changing DocumentRoot easily.
Remaining tasks
Find a handful of good shared hosts with Composer via SSH, and DocumentRoot setting options, and share them here.
Comments