Customize PHP.INI

You can also create and push a php.ini file that is appended to the configuration maintained by Magento Commerce.

In your repository, the php.ini file should be added to the root of the application (the repository root).

Configuring PHP settings improperly can cause issues. We recommend only advanced administrators set these options.

For example, if you need to increase the PHP memory limit:

1
memory_limit = 756M

For a list of recommended PHP configuration settings, see Required PHP settings.

After pushing your file, you can check that the custom PHP configuration has been added to your environment by creating an SSH tunnel to your environment and entering:

1
cat /etc/php5/fpm/php.ini

If you use Magento Cloud Docker for local development, see [Docker service containers]//cloud/docker/docker-containers-service.html#fpm-container) for information about using a custom php.ini file in a Docker environment.