Description
The PHP-FPM component is responsible for managing the PHP-FPM service and all settings around it.
Settings
- Version - The version of PHP you would like to run. (see Versions)
- Post rollup commands - This allows you to run a common set of commands before the instance is ready. This is useful if you require a package such as
gulp
to build your site that isn't available by default. - Run command as - The user to run the "Post rollup commands" as.
The root user, is a true root user. This means it is possible to break your instances, please proceed with caution
- Enable Xdebug - If Xdebug should be enabled on your instance.
This setting has no effect on your production instance, it will just set the default value that is inherited by all development instances. - Debug Location - If you would like to use remote debug, the location you would like to run the debugger.
- Outgoing Mail - This value has no effect on live instances, it simply sets a default for development instances. If set to disabled, no email will leave the instance at all. If set to enabled email will leave and likely hit spam folders. If set to 'Intercept with Mailcatcher', all outgoing mail will be sent but caught by the MailCatcher helper, and not go any further.
- Additional Config - Any additional PHP setting you would like.
PHP Versions
Version | Status | Composer 1 Version | Composer 2 Version | Xdebug Version |
5.6 | Deprecated | 1.9.0 | 2.1.3 | |
5.6.40 | Deprecated | 1.10.22 | 2.1.8 | 2.5.5 |
7.0 | Deprecated | 1.9.0 | 2.1.3 | |
7.0.33 | Active | 1.10.22 | 2.1.8 | 2.5.5 |
7.1 | Deprecated | 1.9.0 | 2.1.3 | |
7.1.31 | Active | 1.10.22 | 2.1.8 | 2.7.2 |
7.2 | Deprecated | 1.9.0 | 2.1.3 | |
7.2.22 | Active | 1.10.22 | 2.1.8 | 2.7.2 |
7.2.26 | Active | 1.10.22 | 2.1.8 | 2.7.2 |
7.3.13 | Active | 1.10.22 | 2.1.8 | 2.7.2 |
7.4.1 | Active | 1.10.22 | 2.1.8 | 2.9.2 |
7.4.3 | Active | 1.10.22 | 2.1.8 | 2.9.2 |
7.4.8 | Active | 1.10.22 | 2.1.8 | 2.9.2 |
8.0.2 | Active | 2.1.8 | 3.0.3 |
*Deprecated Versions do not receive any updates.
Composer
If there are multiple versions of composer available composer 1.x will always be available with
composer
and composer 2.x will be available with
composer2
If there is only a single version of composer available, it will be available with
composer
Environment Variables
Within the PHP-FPM container (or via SSH) the following environment variables are available. These environment variables can be useful in configuration as code. For more information on configuration as code please see the Post Roll Up Actions Component.
Variable Name | Possible Values | Description |
MDOQ_INSTANCE_ID |
1111 |
A number representing the ID of the current instance |
MDOQ_INSTANCE_TYPE |
bug |
A string representing the type of the current instance |
MDOQ_INSTANCE_TICKET_NUMBER |
bug-fix-001 |
A string representing the ticket number / branch of the current instance |
MDOQ_ENABLE_SSH |
yes |
A string representing if ssh is enabled for the instance |