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 Mac OS X) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). Learn more.

Change the memory limit only for the console file

In order to change the memory_limit value for the console file, you should 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, you should 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, you will need to modify 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 September 5, 2018