I have been trying to set up drush on my linux desktop (hereafter called client) to control a remote Drupal site running on Windows using XAMPP (herafter called server).
The Drupal root on the remote server is mounted via Samba on the client at this location :
I am using the following drush alias:
$aliases['drupalserver1'] = array( 'root' => '/path/to/remote/server1/drupal', #'remote-host' => 'drupalserver1.mydomain', #'remote-user' => 'myuser', 'uri' => 'http://drupalserver1.mydomain', 'os' => 'Windows', );
Now, as I understand it, this tells drush that it is a local installation of Drupal, not a remote one since I left commented the
Drush then reads the
settings.php file on the server (via the samba mount on my client), which specifies
drupalserver1.mydomain (rather than
localhost) and the necessary other configurations.
Database connection is successful as is bootstrapping:
Site URI : http://drupalserver1.mydomain Database driver : mysql Database hostname : drupalserver1.mydomain Database username : root Database name : drupal Database : Connected Drupal bootstrap : Successful Drupal user : Anonymous Default theme : acquia_marina Administration theme : seven PHP configuration : /etc/php5/cli/php.ini /home/myuser/.drush/php.ini Drush version : 5.9 Drush configuration : Drush alias files : /home/myuser/.drush/examples_example.aliases.drushrc.php /home/myuser/.drush/myorg.aliases.drushrc.php Drupal root : /path/to/remote/server1/drupal Site path : sites/default File directory path : sites/default/files Temporary file directory path : C:\xampp\tmp
Now, both the Drupal files (/path/to/remote/server1/drupal) and the mysql DB are hosted on a Windows machine, so using
'os' => 'Windows' in the alias makes sense. I even wonder if this line is even taken into account since
remote_host is not used.
Is there any hope that the configuration I am proposing works at all ?
Using Drupal 7.