Skip to main content
Version: 7.x

php-fpm

Source

Installing#

Add to your deploy.php

require 'contrib/php-fpm.php';

Configuration#

  • php_fpm_version โ€“ The PHP-fpm version. For example: 8.0.
  • php_fpm_service โ€“ The full name of the PHP-fpm service. Defaults to php{{php_fpm_version}}-fpm.
  • php_fpm_command โ€“ The command to run to reload PHP-fpm. Defaults to echo "" | sudo -S /usr/sbin/service {{php_fpm_service}} reload.

Usage#

Start by explicitely providing the current version of PHP-version using the php_fpm_version. Alternatively, you may use any of the options above to configure how PHP-fpm should reload.

Then, add the php-fpm:reload task at the end of your deployments by using the after method like so.

set('php_fpm_version', '8.0');after('deploy', 'php-fpm:reload');

Configuration#

php_fpm_version#

Source

php_fpm_service#

Source

Default value
'php{{php_fpm_version}}-fpm'

php_fpm_command#

Source

Default value
'echo "" | sudo -S /usr/sbin/service {{php_fpm_service}} reload'

Tasks#

php-fpm:reload#

Source

Reload the php-fpm service.