Drupal 8 runs on all of our hosting packages. To install Drupal 8 on CiviHosting:

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction

where you can replace some-dir with whatever directory you want. If you are in /www/www/ then you could use just a dot: ..

If you now try to run Drush, it will fail however. ๐Ÿ™

That is due to a PHP version issue. By default, the command line executes PHP with the 5.6 interpreter. To work around this, you can run drush like this:

php7.cli /usr/local/bin/drush 

Alternatively, you can set the following alias in the .bashrc file:

alias drush='php7.cli /usr/local/bin/drush'

and then drush will work.

Leave a Reply

Your email address will not be published. Required fields are marked *