1

I run a Linux server that is administered by a friend of mine, and at the moment I work with Filezilla.

I've heard that Drush is a trivial installation: it seems to require no configuration and work out of the box.

However, it looks for configuration in several places:

Drush installation directory, the home directory (as .drushrc.php), root directory of a Drupal installation, and site directory of a Drupal installation. Since the configuration files are just PHP scripts, they can contain any PHP code that you would like to have executed on startup of Drush. one could for instance call ini_set() to set the value of a PHP configuration option.

and the configuration file /opt/drush/drushrc.php with following content:

# Allow Drush to use 128 MB of memory. Use -1 for no limit. ini_set('memory_limit', '128M');

I see this is necessary because PHP's default is too low, but I'm not sure if I need higher-level privileges because of it.

Do I have to have root-level permissions on the server, or am I able to work with Drush without them?

Update: As far as i understand this, i only have to ask my admin to get some more privileges (permissions)Note according to BetaRides answer i need to have more than only the access-data that the FileZilla needs - that are provided for the filezilla! Guess so - but i don not need root-permissions.

btw - i have secure-shell-access (ssh2 access) guess that this is enough -With that i can setup a sftp-connection to the server with filezilla just lemme know - if i can use the exactly same data for the shell access (with the command line tool=?!=

3
  • If you only have FTP access (using Filezilla) drush is useless. Since drush is a command line tool, you need shell access.
    – BetaRide
    Jan 24, 2012 at 19:10
  • note - no problem. i will get shell access - it is a root-server that is administered by my friend! Question: I can take the shell access but i do not need to have the full root permissions. is this true!?
    – zero
    Jan 25, 2012 at 1:01
  • btw - i have secure-shell-access (ssh2 access) guess that this is enough -With that i can setup a sftp-connection to the server with filezilla just lemme know - if i can use the exactly same data for the shell access (with the command line tool=?!=
    – zero
    Jan 25, 2012 at 1:17

2 Answers 2

1

If you need to change php.ini settings w/out root access, put either a php.ini or a drush.ini file in your $HOME/.drush folder. See http://drupalcode.org/project/drush.git/blob/HEAD:/README.txt

0
4

You do not need root-level permissions to use Drush: it'll work as long as the user invoking it has direct access to the Drupal installation directory.

Having the the same filesystem permissions as the web user should be enough for most operations: but for things like downloading modules, you'll need write-level access to the Drupal directory as well.

1
  • 3
    You'll also need need write access to your home directory (specifically, ~/.drush). Probably not an issue, but I mention it because we ran into issues with running drush as our web user and got nothing but some pretty cryptic messages for diagnostics (our web users only have write access into htdocs style folders inside their home directory). Jan 24, 2012 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.