Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
jonhattancopy-paste is evil. You referenced both 5.x and 3.x tarballs in your commands. Check it.
Comment #2
jday CreditAttribution: jday commentedyou'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...
Comment #4
tim.plunkettI've never had a problem with drush before, but today I got the same error.
I'm root, `which drush` reports /usr/local/bin/drush, everything else checks out. But `drush help` gives
exec: 90: : Permission denied
.Comment #5
jonhattanThe more I can say is that the error comes from the drush executable (bash script). Please take the time to debug it by yourself.
Comment #6
tim.plunkettTurns out the client server didn't have php5-cli installed. /facepalm
Sorry for the noise.
Comment #7
mar111 CreditAttribution: mar111 commentedExactly the same error and I had never before ....
Ok perfect , after installing php5-cli solved !!!
thank you very much, tim.plunkett ;)
Comment #8
tim.plunkettComment #9
cjback CreditAttribution: cjback commentedSame problem fixed with php5 install.
Thanks!
Comment #10
chellman CreditAttribution: chellman commentedAnother 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.
Comment #11
rogerex CreditAttribution: rogerex commentedIf 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