Skip to content

Instantly share code, notes, and snippets.

@linkanp
Last active December 24, 2018 04:01
Show Gist options
  • Save linkanp/f45d912335ff144d08e13384476c96e8 to your computer and use it in GitHub Desktop.
Save linkanp/f45d912335ff144d08e13384476c96e8 to your computer and use it in GitHub Desktop.
Drupal Environment Setup

Drupal Environment on Ubuntu 16.04

Installation List

Installation Drush 8.x (Compatible with Drupal 7 or 8)

Install composer globally:

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Install drush globally (for your user), you can specify the version:

$ composer global require drush/drush:8.*

This will install in the directory: ~/.composer/vendor/drush/drush, so we will have to set path.

sudo ln -s /home/<linux user name>/.composer/vendor/drush/drush /usr/bin/drush
export PATH="$PATH:/home/<linux user name>/.composer/vendor/drush/drush:/usr/local/bin"

Run "drush status" to see if drush has been installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment