The php_fpm_config Script

The php_fpm_config Script

Overview

This document explains when a user with root privileges would use the /scripts/php_fpm_config script and how to use it. When you manually edit the FPM configuration files, run the /scripts/php_fpm_config script to install those configuration files. This script also helps to troubleshoot problems in the FPM system.

The /scripts/php_fpm_config script

To use this script, run the following command as the root user:

/scripts/php_fpm_config [arguments]

Note:

This is only available to users with root privileges.

Arguments

The php_fpm_config script accepts the following arguments:

Argument
Description
Example
Argument
Description
Example
--rebuild [--domain=domain]
The --rebuild command rebuilds all FPM configuration files and Apache vhost entries according to the values in the user’s domain  php-fpm.yaml  files.

When you add the --domain=domain argument, the system restricts the --rebuild operation to only a single domain.

Note:

The --domain=domain argument is an optional parameter.

/scripts/php_fpm_config --rebuild --domain=domain
--check [--json]
The --check command scans all configuration and .yaml files for any inconsistencies and then outputs an inventory of all known cPanel FPM configurations and status. It will also output any errors.

It may also indicate that the  .conf  file in the  php.fpm.d  directory is older than than the  .yaml  file. If the system indicates this, perform the  --rebuild  command.

Note:

The output of this check defaults to human-readable format. The --json argument displays output in JSON format.

The --json argument is an optional parameter.

/scripts/php_fpm_config --check --json

Note:

Orphaned files represent configuration files in the php-fpm.d directory that cPanel does not manage. They may represent the source of any problems you encounter.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.