PHP settings
Published
Updated
🐘
Configure PHP version and extensions.
Set the PHP version, the optional extensions and five ini settings of a fortrabbit environment in the dashboard, among them upload size and execution time. Everything else is preconfigured and can be changed with a .user.ini file.
Environments start with PHP settings preconfigured for the software template. The dashboard exposes the version, the optional extensions and the ini settings that apps change most.
Available settings
- PHP version
- Choose a specific version or pin to the latest, see PHP version upgrade
- PHP extensions, all off by default
- APCu
- New Relic
- Blackfire
- PHP ini settings
post_max_sizemax_input_varsoutput_bufferingmax_execution_time← Keep it low. Why?upload_max_filesize
Legacy PHP versions
PHP versions past their end of life get no more security fixes from the PHP project. fortrabbit still runs them, for a monthly legacy support fee per environment on top of the PHP component. Like the components, the fee is billed by the day. Environments in their free trial pay no fee.
Upgrading to a supported version ends the fee: PHP version upgrade.
Always-on extensions
Most extensions are always on and need no switch, among them gd, imagick, intl, redis, mongodb and the MySQL, PostgreSQL and SQLite drivers. phpinfo lists all extensions and the value of every PHP setting.
Additional settings
A .user.ini file in the root path changes per-directory PHP settings the dashboard does not expose, such as the timezone.