How to intall drush on hostgator servers

Jasom Dotnet

I would like to have Drush on Hostgator shared hosting. I just spent 1 hour trying various outdated tutorials (Drush now requires composer). Does somebody have proved, tested and working solution how to install Drush there? I'm using PHP 5.4.

My last achieved step is drush st error:

Unable to load autoload.php. Drush now requires Composer in order to install its dependencies and autoload classes. Please see README.md
Content-type: text/html

When I run php composer.phar diagnose I see:

Content-type: text/html

Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity: OK
Checking disk free space: OK
Checking composer version: OK
pal4life

Incase it helps others, I had been using a variety of google inspired resources to install Drush, which just complicated the situation for me. I would highly recommend following the official documentation which is the main source of information. I even read on there that they only maintain the documentation here, not even on drupal.org.

I was missing this step based on other instructions, Now add Drush to your system path by placing export

PATH="$HOME/.composer/vendor/bin:$PATH"

into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users).

These instructions helped me resolve the error:

curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer ln -s /usr/local/bin/composer /usr/bin/composer

git clone https://github.com/drush-ops/drush.git /usr/local/src/drush cd /usr/local/src/drush git checkout 7.0.0-alpha5 #or whatever version you want. ln -s /usr/local/src/drush/drush /usr/bin/drush composer install drush --version

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to install Django on Hostgator?

From Dev

How to intall python library from a repository

From Dev

How to intall ungoogled-chromium on Ubuntu 18.04

From Dev

How to intall python library from a repository

From Dev

Sending SMTP email from PHP Script hosted on Hostgator Servers

From Dev

How To Set Drush Backup Directory

From Dev

How To Set Drush Backup Directory

From Dev

How to install drush for a vagrant project?

From Dev

How to upgrade from drush 7 to drush 8 via Composer

From Dev

How to use drush to give permissions to user

From Dev

How to install mongo db extension in hostgator VPS?

From Dev

Ambiance Theme was deleted /missing from Ubuntu 13.10. How to re-intall default theme?

From Dev

Ambiance Theme was deleted /missing from Ubuntu 13.10. How to re-intall default theme?

From Dev

How to point HostGator domain to amazon ec2 instance?

From Dev

How do you host a jekyll site to hostgator via FTP

From Dev

How to point HostGator domain to amazon ec2 instance?

From Dev

How do I connect to a database I created in HostGator?

From Dev

how to stop rabbitmq servers

From Dev

How to log into remote servers?

From Dev

How to log into remote servers?

From Dev

Intall magento extensions popup not working

From Dev

How to ping servers on page load?

From Dev

How IoT devices connect to servers

From Dev

How to delete existing servers on PhpStorm?

From Dev

How do DNS servers work?

From Dev

how to track scan on other servers?

From Dev

How to override a vm DNS servers?

From Dev

How to send shutdown command to servers

From Dev

How to use Fabric with proxy servers?