Drupal with Composer, on hosting environment like GoDaddy

Submitted by fishfin on Sat, 01/12/2019 - 03:49

I am a big fan of using Composer to manage Drupal 8. This type of Drupal installation uses "web" directory from which the Drupal index.php, and the rest of the code (core, modules, libraries) is served. However, a GoDaddy hosting space uses "public_html" as the document root for the GoDaddy primary domain. To make the composer installation work with this, the fix is rather simple.

The Fix

Follow these steps in the same order: