4 Updated paragraph order to better match updated question title
source | link

Well.

enter image description here

See https://docs.drush.org/en/master/install/


But you are talking about Drupal 7. Please see the compatibility chart belowNo. Drupal 7 requires Drush 8.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibility in particular


Furthermore, Drush 9 can't be installed globally.

enter image description here

See https://docs.drush.org/en/master/install/

Well.

enter image description here

See https://docs.drush.org/en/master/install/


But you are talking about Drupal 7. Please see the compatibility chart below. Drupal 7 requires Drush 8.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibility in particular.

No. Drupal 7 requires Drush 8.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibility


Furthermore, Drush 9 can't be installed globally.

enter image description here

See https://docs.drush.org/en/master/install/

3 added 197 characters in body
source | link

Well.

enter image description here

See https://docs.drush.org/en/master/install/


You probably can get it to work somehow, by putting a raw composer.json into your docroot, but this is absolutely not recommended and actually pretty dangerous (as in "Oops all files gone" after running drush up for example)But you are talking about Drupal 7. Please see the compatibility chart below. Drupal 7 requires Drush 8.

{
    "name": "MYPROJECT/MYPROJECT",
    "extra": {
        "installer-paths": {
            "core": ["type:drupal-core"]
        }
    }
}

enter image description here

As far as I know Drush 9 relies on https://github.com/webflo/drupal-finder to figure out where on your disk a Drupal is installed exactly. And for that Drupal Finder looks for aSee composer.json file and a pattern similar to the one abovehttps://docs.drush.org/en/master/install/#drupal-compatibility in particular.

Well.

enter image description here

See https://docs.drush.org/en/master/install/


You probably can get it to work somehow, by putting a raw composer.json into your docroot, but this is absolutely not recommended and actually pretty dangerous (as in "Oops all files gone" after running drush up for example).

{
    "name": "MYPROJECT/MYPROJECT",
    "extra": {
        "installer-paths": {
            "core": ["type:drupal-core"]
        }
    }
}

As far as I know Drush 9 relies on https://github.com/webflo/drupal-finder to figure out where on your disk a Drupal is installed exactly. And for that Drupal Finder looks for a composer.json file and a pattern similar to the one above.

Well.

enter image description here

See https://docs.drush.org/en/master/install/


But you are talking about Drupal 7. Please see the compatibility chart below. Drupal 7 requires Drush 8.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibility in particular.

2 Fixed link
source | link

Well.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibilityhttps://docs.drush.org/en/master/install/


You probably can get it to work somehow, by putting a raw composer.json into your docroot, but this is absolutely not recommended and actually pretty dangerous (as in "Oops all files gone" after running drush up for example).

{
    "name": "MYPROJECT/MYPROJECT",
    "extra": {
        "installer-paths": {
            "core": ["type:drupal-core"]
        }
    }
}

As far as I know Drush 9 relies on https://github.com/webflo/drupal-finder to figure out where on your disk a Drupal is installed exactly. And for that Drupal Finder looks for a composer.json file and a pattern similar to the one above.

Well.

enter image description here

See https://docs.drush.org/en/master/install/#drupal-compatibility


You probably can get it to work somehow, by putting a raw composer.json into your docroot, but this is absolutely not recommended and actually pretty dangerous (as in "Oops all files gone" after running drush up for example).

{
    "name": "MYPROJECT/MYPROJECT",
    "extra": {
        "installer-paths": {
            "core": ["type:drupal-core"]
        }
    }
}

As far as I know Drush 9 relies on https://github.com/webflo/drupal-finder to figure out where on your disk a Drupal is installed exactly. And for that Drupal Finder looks for a composer.json file and a pattern similar to the one above.

Well.

enter image description here

See https://docs.drush.org/en/master/install/


You probably can get it to work somehow, by putting a raw composer.json into your docroot, but this is absolutely not recommended and actually pretty dangerous (as in "Oops all files gone" after running drush up for example).

{
    "name": "MYPROJECT/MYPROJECT",
    "extra": {
        "installer-paths": {
            "core": ["type:drupal-core"]
        }
    }
}

As far as I know Drush 9 relies on https://github.com/webflo/drupal-finder to figure out where on your disk a Drupal is installed exactly. And for that Drupal Finder looks for a composer.json file and a pattern similar to the one above.

1
source | link