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
Change the memory limit globally
In order to change the memory_limit value used by Akeneo for every command run through its console, you should modify the previous console file and remove this line if it exists:
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, you will need to modify 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. If the memory limit is configured in any of these files, update it to reflect the global limit set previously. 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.
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, you should modify the console file at /opt/bitnami/apps/akeneo/htdocs/bin/console and add this line to your custom value:
ini_set('memory_limit', '1024M');
Change the memory limit globally
In order to change the memory_limit value used by Akeneo for every command run through its console, you should 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, you will need to modify 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. If the memory limit is configured in any of these files, update it to reflect the global limit set previously. To check this, run these commands:
$ 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.