Skip to content

Instantly share code, notes, and snippets.

@lamoboos223
Last active March 1, 2023 14:21
Show Gist options
  • Save lamoboos223/9a6b563ce6066828e7e90b6c629aa7c2 to your computer and use it in GitHub Desktop.
Save lamoboos223/9a6b563ce6066828e7e90b6c629aa7c2 to your computer and use it in GitHub Desktop.
prepare drupal vm
# installing all the required components to run drupal
apt-get install composer
apt-get install php8.2.0
apt-get install apache2
apt-get install mysql
# creating new drupal project using the latest recommended version
composer create-project drupal/recommended-project demo1
# installing drush via composer
composer require --dev drush/drush
./vendor/bin/drush --version
# installing theme via composer and enabling and setting it as default via drush. Then cleating the cache
composer require drupal/gin_toolbar:^1.0@beta drupal/gin:^3.0@beta
# pathauto is a module to create cleaner url mapping: https://www.youtube.com/watch?v=zSErrOFozuM
composer require 'drupal/pathauto:^1.11'
drush theme:enable gin
drush config-set system.theme default gin
drush cr
@lamoboos223
Copy link
Author

https://www.drupal.org/docs/system-requirements/setting-the-mysql-transaction-isolation-level

run the query in phpmyadmin

SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED

@lamoboos223
Copy link
Author

$settings['trusted_host_patterns'] = ['^127.0.0.1$'];

image

@lamoboos223
Copy link
Author

@lamoboos223
Copy link
Author

to enable module via drush

drush en [module_name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment