How to increase php memory limits only for Drush commands in Drupal settings file
abhai
12 April 2023
To increase the PHP memory limit for all PHP CLI (Command Line Interface) commands in Drupal, you can add a configuration to the settings.php
file. Here's how to do it:
-
Open the
settings.php
file for your Drupal installation. This file is usually located in thesites/default
folder of your Drupal installation. -
Add the following lines of code to the bottom of the
settings.php
file:
How to login to your Drupal site using Drush
abhai
12 April 2023
As a Drupal developer, if your local and dev setup is done correctly and you have access to the dev servers, there is no need to ask your Tech Lead or Architect or client for credentials to login to the dev/test site. In fact, I can't remember the last time I had to ask someone for credentials to login to a dev site.
Some essential Drush commands
abhai
23 April 2022
How to setup drush aliases for your Drupal 8/9 website
abhai
13 October 2021
Drush is the CLI tool for managing Drupal projects. Drush alias works by using this username and domain/ip address combination to login to the server and execute the command and then return back to your command line.