Drush dl was removed because it served no more purpose (it was supplanted by composer)
The way to add dependencies to composer is with ‘composer require ’
So to require a specific module like group would be ‘composer require drupal/group’
To add version constraints you specify then after to name with a ‘:’ in between. The Drupal projects pages and ...
Here is what I did on a fresh install of ubuntu 20.04.
First we'll need to install lamp:
apt install lamp-server^
Then install php 7.4 gd
apt install php7.4-gd
Setup mysql securely:
Enable apache rewrite and restart:
a2enmod rewrite; service apache2 restart
curl -sS https://getcomposer.org/installer -o ...
Currently the best way to install any modern php application is through composer.
So to install Drupal 8 you tell composer the following.
composer create-project drupal/recommended-project:8.x-dev Drupal
this would install Drupal 8 into the Drupal dir.
Or composer create-project drupal/recommended-project Drupal
For the latest release (one of Drupal 9)
You ran out of memory. This happens all the time with Composer.
Composer is a huge memory hog, especially when used with Drupal because of all the external interdependencies. And Drupal's requirements continue to grow with every new release, so the memory needed to use Composer with Drupal continues to grow. 4Gb of available memory should be enough, ...
You can use Laragon https://laragon.org it's a dead-simple configuration and you can install a blank drupal 8 projects (+ tons of other options).
If you are more advanced user you can use Docker or Vagrant. I would prefer Docker-based (Lando, Docksal...)
The error, which is reported by system_requirements(), means that either that directory doesn't contain any .htaccess file, or that .htaccess file doesn't contain the following lines.
# Override the handler again if we're run later in the evaluation list.
Depending on how you are running this locally (native, Docker, etc) this can differ, but I will assume you are using what comes with macOS to run Drupal.
The difference here is Mac does not have a www-data or apache user like Linux does. If you are running with the defaults, the user you are looking for is _www (unless you have modified this in Apache confs)....