crazywolf2010
asked on
Drupal DRUSH install help
Hi,
I have installed drupal 7 drush module on a shared hosting platform using http://drupal.org/node/1181480.
I have following error
# drush status
The following restricted PHP modes have non-empty values: magic_quotes_gpc. This configuration is incompatible with drush.
Please check your configuration settings in /usr/local/lib/php.ini or
in your drush.ini file; see examples/example.drush.ini for details.
PHP configuration : /usr/local/lib/php.ini
Drush version : 5.9
Drush configuration :
Thanks
I have installed drupal 7 drush module on a shared hosting platform using http://drupal.org/node/1181480.
I have following error
# drush status
The following restricted PHP modes have non-empty values: magic_quotes_gpc. This configuration is incompatible with drush.
Please check your configuration settings in /usr/local/lib/php.ini or
in your drush.ini file; see examples/example.drush.ini
PHP configuration : /usr/local/lib/php.ini
Drush version : 5.9
Drush configuration :
Thanks
ASKER
Hi,
Thanks for your response. I am new to drush. I was in wrong directory, now it is returning right data.
I have 3 different databases (Drupal, Theme, CRM) which I want DRUSH to backup, how do I do it?
# drush status
The following restricted PHP modes have non-empty values: magic_quotes_gpc. This configuration is incompatible with drush.
Please check your configuration settings in /usr/local/lib/php.ini or
in your drush.ini file; see examples/example.drush.ini for details.
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : ontheme
Database name : thegreat
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : elegantica
Administration theme : bartik
PHP configuration : /usr/local/lib/php.ini
Drush version : 5.9
Drush configuration :
Drupal root : /home/public_html/trial
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp
Thanks for your response. I am new to drush. I was in wrong directory, now it is returning right data.
I have 3 different databases (Drupal, Theme, CRM) which I want DRUSH to backup, how do I do it?
# drush status
The following restricted PHP modes have non-empty values: magic_quotes_gpc. This configuration is incompatible with drush.
Please check your configuration settings in /usr/local/lib/php.ini or
in your drush.ini file; see examples/example.drush.ini
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : ontheme
Database name : thegreat
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : elegantica
Administration theme : bartik
PHP configuration : /usr/local/lib/php.ini
Drush version : 5.9
Drush configuration :
Drupal root : /home/public_html/trial
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp
Steps:
1. cd /path/to/docroot (must be inside docroot)
2. Issue the command "drush sql-dump > filename.sql" (without quotes).
Drush should contextually determine which 'site' you're in based on where you are in the filesystem (hence step 1), and back up the file accordingly. If you have write errors when trying to create the backup, try running the following command, which would dump it into your home dir:
"drush sqldump > ~/filename.sql"
If you have any additional questions, please create new questions, vs stacking multiple in a single question on EE.
1. cd /path/to/docroot (must be inside docroot)
2. Issue the command "drush sql-dump > filename.sql" (without quotes).
Drush should contextually determine which 'site' you're in based on where you are in the filesystem (hence step 1), and back up the file accordingly. If you have write errors when trying to create the backup, try running the following command, which would dump it into your home dir:
"drush sqldump > ~/filename.sql"
If you have any additional questions, please create new questions, vs stacking multiple in a single question on EE.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Can you help me with this https://www.experts-exchange.com/questions/28150616/Drush-script-to-replicate-sites-from-Dev-Staging-Production.html
Regards
Can you help me with this https://www.experts-exchange.com/questions/28150616/Drush-script-to-replicate-sites-from-Dev-Staging-Production.html
Regards
magic_quotes_gpc = Off
You might optionally add these to it as well:
magic_quotes_runtime = Off
magic_quotes_sybase = Off
And if that doesn't work, there are reports (http://drupal.stackexchange.com/questions/57556/drush-installation-problem) indicating that updating to Drush 6 (beta 2) resolved the issue