Skip to main content

How to increase php memory limits only for Drush commands in Drupal settings file

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:

  1. Open the settings.php file for your Drupal installation. This file is usually located in the sites/default folder of your Drupal installation.

  2. Add the following lines of code to the bottom of the settings.php file:

Tags

Subscribe to Drush
x

Work

Therefore logo
80 Atlantic Ave, Toronto, ON Canada
Email: hello@therefore.ca
Call us: +1 4166405376
Linkedin

Let us know how we can help!