Last active
June 1, 2020 10:28
-
-
Save vaibbhav/ae785c280af7e1e6843da761e36d8024 to your computer and use it in GitHub Desktop.
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
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