I´ve read many questions about drush in a multisite configuration. This case isn't a multisite, but several different installations in a single VPS. Something like a reseller account. They are all my sites, but I don't want to mess them up. I need drush commands to be applied to a single site each time.
I´ve installed drush using my root access, under home/root/drush. So when I try to access ssh using one of my site´s credentials (not the root user, but one of the site´s admin), it doesn´t recognize drush commands.
Should I install drush in every single account, right outside /public_html, or should I edit the .bashrc file in any way? And in that case, how may I prevent the commands to affect other sites when I try to do something with a single specific installation?
I'm using Drupal 7 and Drush 5.x because of my php version (5.2.17).
I understand that I should have (inside the drush folder?) a file called aliases.drushrc.php, with something like this.
$aliases['site1'] = array( 'uri' => 'mysite1.com', 'root' => '/home/site1username/public_html', 'remote-user' => 'site1username', ); $aliases['site2'] = array( 'uri' => 'mysite2.com', 'root' => '/home/site2username/public_html', 'remote-user' => 'site2username', );
Is this correct? And how may I access drush only to a specific site?