Created
April 16, 2022 11:08
-
-
Save vishalbandre/462b81f76f98d9d95cbc9fc4ba086212 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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