Hi,
I have a shared cPanel Linux server and I don’t have root access to install drush. Can you please provide me with a step by step instructions guide on how to do that?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello,
In order to do that you would need SSH access. Then SSH to your server:
Then check if you have composer installed:
If you don’t get any output install composer:
Then move the composer.phar file to your local bin folder:
Find the the path to your PHP binary:
You should get something like this:
In your
.bashrc
file add the following:Then run:
That way you would be able to use the
composer
command without havint to specify the full path each time.After that, you can install Drush with:
Then again to save some time you could add the following alias in your .bashrc:
Run source again:
And finally drush should be available, try it by runing just:
Hope that this helps! Regards, Bobby