generalorocrm

Modify the memory limit

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

Approach A: Bitnami installations using system packages

To modify the assigned memory value to PHP, change the memory_limit value in the /opt/bitnami/php/etc/php.ini file:

memory_limit = 1G

Remember to restart your server to reload the configuration.

Approach B: Self-contained Bitnami installations

Change the memory limit only for the console file

In order to change the memory_limit value for the console file, modify the /opt/bitnami/apps/orocrm/htdocs/bin/console file and edit this line to your custom value:

ini_set('memory_limit', '1024M');

Change the memory limit globally

In order to change the memory_limit value globally for OroCRM, modify the /opt/bitnami/apps/orocrm/htdocs/bin/console file and remove this line:

ini_set('memory_limit','800M');

Then, set the custom memory_limit value as below. Note that this will apply the new memory_limit value to all applications in the /opt/bitnami/apps directory.

To modify the assigned memory value to PHP, change the memory_limit value in the /opt/bitnami/php/etc/php.ini file:

memory_limit = 128M

Also, note that your application might use .htaccess and Apache configuration files to configure the PHP memory limit. To check this, run these commands:

$ cd /opt/bitnami/apps
$ grep -R "php_value memory_limit" .

$ cd /opt/bitnami/php
$ grep -R "memory_limit" .

$ cd /opt/bitnami/apache
$ grep -R "php_value memory_limit" .

Remember to restart your server to reload the configuration.

Last modification June 16, 2021