Configure PHP-FPM options

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.

To override any of the PHP configuration options (eg. memory_limit, max_execution_time), set these options in the installdir/php/etc/php.ini file and in the installdir/apps/APPNAME/conf/php-fpm/php-settings.conf file.

For example, to increase the PHP memory limit, edit the installdir/APPNAME/conf/php-fpm/php-settings.conf file and set the corresponding variable as follows. Replace the NEW_LIMIT placeholder with the new memory limit you wish to use.


Then, also modify the installdir/php/etc/php.ini file and set the memory_limit variable to a new value, as shown below:


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

$ installdir/ restart apache
$ installdir/ restart php-fpm
Last modification May 9, 2019