Skip to main content
Version: 7.x

php-fpm

Source

Installing

caution

Do not reload php-fpm. Some user requests could fail or not complete in the process of reloading.

Instead, configure your server properly. If you're using Deployer's provision recipe, it's already configured the right way and no php-fpm reload is needed.

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 sudo systemctl reload {{php_fpm_service}}.

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

Automatically detects by using bin/php.

php_fpm_service

Source

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

Tasks

php-fpm:reload

Source

Reloads the php-fpm service.



Support Deployer ❤️

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer.
I maintain this open source project in my spare time.
Supporters on GitHub give me extra motivation to work on the project.