Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vishalbandre/462b81f76f98d9d95cbc9fc4ba086212 to your computer and use it in GitHub Desktop.
Save vishalbandre/462b81f76f98d9d95cbc9fc4ba086212 to your computer and use it in GitHub Desktop.
Get fresh Drupal:
composer create-project drupal/recommended-project d9.dev
Done.
Install Drush:
composer require --dev drush/drush
Done.
Make Drush global:
wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
chmod +x drush.phar
sudo mv drush.phar /usr/local/bin/drush
drush --version
Done.
drush site:install standard --db-url='mysql://drupal:drupal@localhost/d9_dev' --site-name=d9_dev
Done
Now try to access your site in browser. Surely, you will notice there are no styling present. To
solve this just give appropriate directories the appropriate permissios:
chmod 777 sites/default/files
sudo systemctl reload apache2
Done.
Now, clear the cache with drush cr or otherwise and try to reload the site in browser.
Done.
Enjoy the party.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment