I've install an ubuntu lamp stack on a linode server, installed drush with the following:

cd /opt/
wget http://ftp.drupal.org/files/projects/drush-All-versions-5.x-dev.tar.gz
tar -xvzf drush-All-versions-3.0-beta1.tar.gz
chmod +x /opt/drush/drush
ln -s /opt/drush/drush /usr/bin/drush

but when I try to run drush I get this error:
exec: 90: : Permission denied

anyone know what I need to do to fix that?

Comments

jonhattan’s picture

Status: Active » Fixed

copy-paste is evil. You referenced both 5.x and 3.x tarballs in your commands. Check it.

jday’s picture

you're right, that did not come out right, I've got a linode with a standard LAMP install with ubuntu lucid and this set of commands has always worked for me before on other linodes, but for whatever reason this one spits out the permission denied error. I've rebuilt the linode again from the LAMP stackscript but get the same error when trying to use drush. I've chmod-ed the entire opt directory and the /usr/bin/drush directory to 777 and still no luck. Wonder if I have to just dump it and buy a new linode...

cd /opt/
wget http://ftp.drupal.org/files/projects/drush-All-versions-5.0-dev.tar.gz
tar -xvzf drush-All-versions-5.0-dev.tar.gz
chmod +x /opt/drush/drush
ln -s /opt/drush/drush /usr/bin/drush

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tim.plunkett’s picture

Status: Closed (fixed) » Active

I've never had a problem with drush before, but today I got the same error.

cd /usr/local/bin
git clone http://git.drupal.org/project/drush.git drush_lib
ln -s drush_lib/drush

I'm root, `which drush` reports /usr/local/bin/drush, everything else checks out. But `drush help` gives exec: 90: : Permission denied.

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)

The more I can say is that the error comes from the drush executable (bash script). Please take the time to debug it by yourself.

tim.plunkett’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Turns out the client server didn't have php5-cli installed. /facepalm

Sorry for the noise.

mar111’s picture

Status: Closed (fixed) » Active

Exactly the same error and I had never before ....

Ok perfect , after installing php5-cli solved !!!

thank you very much, tim.plunkett ;)

tim.plunkett’s picture

Status: Active » Closed (fixed)
cjback’s picture

Same problem fixed with php5 install.
Thanks!

chellman’s picture

Another possible trouble source: monkeying around with your path so php-cli isn't found anymore. I had php-cli, but while messing with the path, I removed where it was installed. Restoring that made everything better.

rogerex’s picture

Version: » 7.x-5.8

If you use lampp then you must to create symbolic links in /usr/bin/ for:
/path/to/drush/drush
/path/to/lampp/bin/php
/path/to/lampp/bin/mysqldump
/path/to/lampp/bin/mysql