Installing Drush on VentraIP

  1. Install composer
    cd ~ && mkdir bin && curl -sS https://getcomposer.org/installer | php -- --install-dir=/home2/YOU_SITE_NAME/bin --filename=composer
  2. Install Drush
    composer global require drush/drush:6.*
  3. php -i | grep php.ini and then copy the default php.ini into ~/.drush - Make ~/.drush folder if it does not exist.
  4. Remove exec and any other functions drush uses from the disabled_func line in php.ini
  5. Ensure the Composer bin folder is in your $PATH.
    export PATH=/path/to/home/.composer/vendor/bin:$PATH
  6. Ensure you have the path to drush in your aliases.drushrc.php file.

Example aliases.drushrc.php File

 '@single-site-install',
  'root' => '/home/ACCOUNT/public_html',
  'uri' => 'example.com',
  'remote-user' => 'REMOTE_USER',
  'remote-host' => 'REMOTE_HOST_SETUP_IN ~/.SSH/CONFIG',
  'ssh-options' => '-p 2683',
  'path-aliases' => array(
    '%drush-script' => '/home/ACCOUNT/bin/drush',
   ),
);

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.