Last active
March 1, 2023 14:21
-
-
Save lamoboos223/9a6b563ce6066828e7e90b6c629aa7c2 to your computer and use it in GitHub Desktop.
prepare drupal vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
all code present in here: https://github.com/lamoboos223/drupal-demo1
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
https://www.drupal.org/docs/system-requirements/setting-the-mysql-transaction-isolation-level
run the query in phpmyadmin