Installing Drush on VentraIP
Submitted by benjy on Monday, August 26, 2013 - 21:41.
- Install composer
cd ~ && mkdir bin && curl -sS https://getcomposer.org/installer | php -- --install-dir=/home2/YOU_SITE_NAME/bin --filename=composer
- Install Drush
composer global require drush/drush:6.*
- php -i | grep php.ini and then copy the default php.ini into ~/.drush - Make ~/.drush folder if it does not exist.
- Remove exec and any other functions drush uses from the disabled_func line in php.ini
- Ensure the Composer bin folder is in your $PATH.
export PATH=/path/to/home/.composer/vendor/bin:$PATH
- 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