Skip to content

Instantly share code, notes, and snippets.

@regican
Created November 15, 2024 18:26
Show Gist options
  • Save regican/7638a5f58111441048e194953dd485f5 to your computer and use it in GitHub Desktop.
Save regican/7638a5f58111441048e194953dd485f5 to your computer and use it in GitHub Desktop.
Install Drupal11 with DDev
#!/bin/sh -x
# file: install-clean-drupal11-ddev.sh
#
# Create new Drupal 11 website with DDev and PHP 8.3
# Use your working project directory.
#
# Configure DDev
ddev config --project-type=drupal --php-version=8.3 --docroot=web
# Start DDev
ddev start
# Create new Drupal 11 projecet
ddev composer create drupal/recommended-project:^11
# use Drush
ddev composer require drush/drush
# update configuration
ddev config --update
ddev restart
# install Drupal
ddev drush site:install --account-name=admin --account-pass=password -y
# launch website
ddev launch
# show details
ddev describe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment