Solved

Drupal DRUSH install help

Posted on 2013-05-24
5
816 Views
Last Modified: 2013-06-07
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
0
Comment
Question by:crazywolf2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:scifikillr
ID: 39194556
You need to add the following lines to your php.ini (make sure it's the same one Drush is using, if it's a shared space; you may need to consult with your hosting provider if you're not sure).

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
0
 

Author Comment

by:crazywolf2010
ID: 39195123
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
0
 
LVL 9

Expert Comment

by:scifikillr
ID: 39206084
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.
0
 
LVL 9

Accepted Solution

by:
scifikillr earned 500 total points
ID: 39206089
Also, if you have the 'Backup and Migrate' module installed, you can back up with drush using:

drush bam-backup (replace the drush sqldump command from this comment.
0
 

Author Comment

by:crazywolf2010
ID: 39228689
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Drupal url_alias partially change 3 352
Drupal Custom View 1 142
How to hide main menu in admin panel [Drupal-7] 5 236
Drupal 7 Adding a View or Block on page.tpl.php 2 94
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question