Skip to content

Instantly share code, notes, and snippets.

@vaibbhav
Last active June 1, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaibbhav/ae785c280af7e1e6843da761e36d8024 to your computer and use it in GitHub Desktop.
Save vaibbhav/ae785c280af7e1e6843da761e36d8024 to your computer and use it in GitHub Desktop.
find / -name php.ini
# On ubuntu terminal
cd ~
curl -sS https://getcomposer.org/installer | php
echo 'export PATH=$HOME/.composer/vendor/bin:$PATH' >> ~/.bashrc
composer global require drush/drush:8.*
drush --version
Drush work in Drupal 7 and Drupal 8 both.
# Drush command to check module list and enable/disable
drush pm-list --type=module --status=enabled --no-core
drush pml --type=Module --status="disabled,not installed" --no-core --pipe | paste -s -d
# drush command for mongodb
drush mongodb-cli -> to connect mongodb client
drush mongodb-connect -> check mongodb db connection
drush mongodb-conf -> configuration of mongo
# Drush reset user password
drush user-password superadmin --password="superadmin"
#Install Composer
https://linuxize.com/post/how-to-install-and-use-composer-on-ubuntu-18-04/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment