After running 'drush up' I get the following error messages:

The command could not be executed successfully (returned: sh: /home/[username]/bin/drush/drush.php: Permission denied, code: <em>126</em>)    [error]
An error occurred at function : drush_pm_post_pm_update    [error]

All modules seem to be updated properly.

This is with a Dreamhost shared server account.
Drush is 6.x-3.0-rc3

'drush st' returns php configuration: /etc/php5/cgi/php.ini

Thanks

CommentFileSizeAuthor
drush error.JPG20.26 KBarlinsandbulte

Comments

moshe weitzman’s picture

Status: Active » Fixed

you can either run updatecode and then updatedb (thats what up does) or you can pass the --php option with a value pointing to your php executable. drush can't find your php (adding 'php' to your path might help as well)

arlinsandbulte’s picture

Status: Fixed » Active

OK, please forgive me, moshe, but I have no idea what you are saying above. So what would I type into the command line? Right now, I just type 'drush up' and get the error messages above.

I added the following to my .bashrc and my .bash_profile because I saw this in another drush issue post:

export COLUMNS
alias drush='/usr/local/php5/bin/php /home/[my username]/bin/drush/drush.php'
alias php='/usr/local/php5/bin/php'
arlinsandbulte’s picture

drush upc & druch updb seem to work ok.

I found this issue too: #662926: --php path argument required on Dreamhost
which is a duplicate of this, I think, but could not get drush up to work properly following there either.

moshe weitzman’s picture

Status: Active » Closed (duplicate)
shahbaaz’s picture

Component: Code » PM (dl, en, up ...)

You need to change the file permission of this file ( /home/[username]/bin/drush/drush.php ) to 755. It worked for me.