Configure PHP-FPM options

To override any of the PHP configuration options (eg. memory_limit, max_execution_time), you must modify the following files:

  • Main PHP configuration file: /opt/bitnami/php/etc/php.ini
  • PHP-FPM pool configuration file for your application: /opt/bitnami/php/etc/php-fpm.d/www.conf

For example, to increase the PHP memory limit:

  • Edit the main PHP configuration file at /opt/bitnami/php/etc/php.ini and set the memory_limit variable to a new value, as shown below:

  • Modify the PHP-FPM pool configuration file and set the corresponding variable as follows. Replace the NEW_LIMIT placeholder with the new memory limit you wish to use.

  • Restart Apache and PHP-FPM for the changes to take effect:

      $ sudo /opt/bitnami/ restart apache
      $ sudo /opt/bitnami/ restart php-fpm
Last modification February 9, 2023