Di artikel kali ini akan dibahas bagaimana caranya install drush di OS Linux Ubuntu.
Berikut langkah-langkahnya :
- Install terlebih dahulu git jika belum terinstall.
sudo apt-get update
sudo apt-get install git - Install terlebih dahulu curl jika belum terinstall.
sudo apt-get update
sudo apt-get install curl - Update Packages
sudo apt-get update && sudo apt-get upgrade
- Install Composer
curl -sS https://getcomposer.org/installer | php
- Pindahkan file composer.phar ke /usr/local/bin/, supaya nanti bisa diakses dari folder manapun.
sudo mv composer.phar /usr/local/bin/composer
- Verifikasi
composer --version
- Download Drush
wget https://github.com/drush-ops/drush/releases/download/8.0.1/drush.phar
- Verifikasi
php drush.phar core-status
- Pindahkan file drush.phar ke /usr/local/bin/, supaya nanti bisa diakses dari folder manapun.
chmod +x drush.phar
sudo mv drush.phar /usr/local/bin/drush - Inisiasi drush
drush init
- Tes
drush