I am trying to set drush
up on a remote server. (a webserver by a provider)
I installed drush
with composer via SSH, but when I try to run it, I get
-bash: /data/web/myusername/.composer/vendor/drush/drush/drush: Permission denied
drush
has -rwxr-xr-x
permissions
How would I verify if it is just the provider not allowing me to execute drush
or simply a bug?
Edit: I found that i could run drush with bash drush
, it seems to be a permission problem after all.
now the drush
on my local machine would call the remote drush
without the bash
, so how could I change that/workaround?
echo $SHELL
should tell you that. It could be that bash is not the shell when you login so you may need to see if you can set your default shell on your own, or do something likealias drush='bash drush'
on the remote server. – Kassish
I still cant run drush with./drush
butsh drush
works. I can reproduce that error on my local machine: If I create a script and i don't give it execution permission, i can run it withbash script
but not with./script
. Using alises doesn't seem to work, because my local drush as a script wont load the aliases. But yeah, I looking for something in that direction. – Avaavadavatrwxr-xr-x
there – Avaavadavatwhich drush
andls -l ~/.composer/vendor/drush/drush/drush
. Sorry for redundancy but it really is the only time I've seen this error. You should also verify these permissions are set on the remote server to be executable as well. – Kassiwhich
gives me no output on the remote server, for ls i get-rwxr-xr-x
. thanks for your time btw. – Avaavadavatexport PATH="$HOME/.composer/vendor/bin:$PATH"
– Kassi