nativeInstallerorocrm

Modify the memory limit

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.

Approach A: Bitnami installations using system packages

To modify the assigned memory value to PHP, change the memory_limit value in the installdir/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 installdir/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 installdir/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 installdir/apps directory.

To modify the assigned memory value to PHP, change the memory_limit value in the installdir/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 installdir/apps
$ grep -R "php_value memory_limit" .

$ cd installdir/php
$ grep -R "memory_limit" .

$ cd installdir/apache
$ grep -R "php_value memory_limit" .

Remember to restart your server to reload the configuration.

Last modification June 16, 2021