Drupal8 Composer: Filesystem Preparation

 

 

Remove files/dirs recursively

rm -R * for dirs

rm -R *.* for files

 

Clone drupal repo

git clone https://github.com/drupal-composer/drupal-project.git

 

to see the hidden dirs..

ls -la

rm -R .git

rm -R .gitignore

 

 

 

 

Get Composer

curl https://getcomposer.org/installer > composer-setup.php

php composer-setup.php

 

ls

 

cd /var/www

mkdir drupal8

chmod -R 777 drupal8

cp composer.phar /var/www/drupal8/composer.phar