Install Drupal 7 with Drush and composer
Drush is a command line shell and Unix scripting interface that automates may administration tasks for Drupal. The new drush version 4 adds commands. You can read the documentation to explain more. There is also the drush.org web site at drush.ws. Look for examples at:<drush path>/examples/
Overview of steps
- Install Composer
- Add composer's bin directory to the system path by placing export PATH="$HOME/.composer/vendor/bin:$PATH" into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users).
- Install latest stable Drush: composer global require drush/drush
- Verify that Drush works: drush status
1. To install Composer on Centos, Red hat or Fedora
Follow the instructions put together by idroot
Step 1. First let’s start by ensuring your system is up-to-date.
yum -y update
Step 2. Installing Composer.
Download and install Composer by executing the following command:
curl -sS https://getcomposer.org/installer | php
Once the process completes, you can make the ‘composer.phar’ file executable by running the following command:
chmod +x composer.phar
Now use the following commands to make composer available globally for all users in your system, which can be used for all php applications on that system:
mv composer.phar /usr/local/bin/composer