Having problem with Drush

Events happening in the community are now at Drupal community events on www.drupal.org.
mkmagu's picture

I'm having a problem with drush downloading modules, I've set up a VPS on Linode using Ubuntu 10.4 and Apache. I'm installing a new site with Drupal 7 and when trying to add modules I'm getting the following:

mkmagu@mail:/srv/www/webdesignbymary.com/public_html$ drush dl admin_menu advanced_help backup_migrate cck views ctools mollom token views_slideshow page_title imageapi pathauto

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/idn.ini on line 1 in Unknown on line 0

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

Destination directory [error]

/srv/www/webdesignbymary.com/public_html/sites/all/modules is not

writable.

Project admin_menu (7.x-3.0-rc1) could not be downloaded to [error]

/srv/www/webdesignbymary.com/public_html/sites/all/modules/admin_menu.

Destination directory [error]

/srv/www/webdesignbymary.com/public_html/sites/all/modules is not

writable.

Project advanced_help (7.x-1.0-beta1) could not be downloaded to [error]

/srv/www/webdesignbymary.com/public_html/sites/all/modules/advanced_help.

Destination directory [error]

/srv/www/webdesignbymary.com/public_html/sites/all/modules is not

I have chmod the sites all modules & themes folders to be 755 but still can't get drush to download the modules. Getting this VPS up and running has been a big learning curve for me and I imagine I'm missed something. Right now I can install the modules one by one with the wget command.
Any help would be greatly appreciated

Comments

same issue here.. Ubuntu

anon's picture

same issue here..

Ubuntu 10.10

Has to be permissions...

himerus's picture

The error message definitely lends to the error on permissions.... My first step would have been the chmod you attempted...

If you go to the sites/all directory and (on the terminal) do a ls -l, what is the username/group that has ownership of the files? usually it'll be something like mary/admin or admin/admin or www/something...

It could be (didn't you mention that it was a one click install for the setup you have??) that the install assigned those files as an ownership by a system user other than your account, thus making it problematic for some simple commands to modify/write to the filesystem under those directories...

Could potentially be several things, but this is my first thought.

Ubuntu php5 bug

j2parker's picture

For comments you can replace '#' with ';' in the offending .ini files.

See https://bugs.launchpad.net/ubuntu/+source/php5/+bug/573436

Thank you for the bug page,

mkmagu's picture

Thank you for the bug page, got it fixed I'm now a Happy Drush user!!! :)

Mary M.

New Hampshire

Group categories

Regional Audience

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week