The following settings files in the project codebase can be used to override default PHP settings:
.docksal/etc/php/php.ini - global PHP (web and cli) settings overrides.docksal/etc/php/php-fpm.conf - PHP-FPM (web) overrides on top of what’s set globallySome PHP-FPM (web) settings set by default in the cli container cannot be overridden via php.ini.
The following settings have to be overridden using the php_admin_value directive in php-fpm.conf:
memory_limitmax_execution_timeupload_max_filesizepost_max_sizemax_input_varsIt is recommended to add PHP settings overrides in both php.ini and php-fpm.conf at the same time.
You can find example settings overrides here.
Once settings are in place, apply changes with fin project restart (fin p restart).
Different PHP versions are handled via using different cli service images.
When using the default stack (a custom project stack is not defined in .docksal/docksal.yml), switching can be done
via the CLI_IMAGE variable in .docksal/docksal.env.
CLI_IMAGE='docksal/cli:2.5-php7.1'
Run fin project reset cli (fin p reset cli) to properly reset and update the cli service.
Available images:
docksal/cli:2.5-php5.6docksal/cli:2.5-php7.0docksal/cli:2.5-php7.1docksal/cli:2.5-php7.2See documentation for projects using a custom stack configuration.