Drupal installation is failing after the following steps on a Debian box (database is already created and privileges granted to specific user):
(user) $ composer create-project drupal/recommended-project myproject
# ... ask if it is OK to install composer/installers, drupal/core-composer-scaffold and drupal/core-project-message, answer Yes
# ... emits 2 warnings about doctrine/reflection and webmozart/path-util being obsolete
(user) $ cd myproject
(user) $ composer composer require drush/drush
(user) $ drush site:install --locale=fr
# ... asks for MySql credentials
# ... displays admin user credentials.
Everything runs smoothly with no error messages, only the 3 questions and 2 warnings mentionned supra.
Yet, after running those commands, according to Drupal installation docs (https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies#s-install-drupal-using-the-command-line) the site should be accessible through-the-web. Yet, when I browse the configured path (DocumentRoot is set to the "web" directory) I got an unstyled page (same appearance than
CSS not applying in drupal 8 site , but stylesheets href are
set to "/").
If I take the through-the-web installation path instead of running Drush, then everything runs fine except for minor annoyances with permissions settings under 'web/sites/default'.
Comparing both "web" directories shows that (besides unsignificant differences
due to different hashes) no "css", "js", "languages" nor "php" directories are
created and populated under the Drush installed "web/sites/default/files"
directory.
What am I doing wrong? I could find no help in Drupal documentation nor by
googling around.
- Drupal : 9.3.9
- Composer : 2.2.9
- Drush : 11.0.7
Thanks in advance