This document only applies to systems that run EasyApache 4.
This document explains how to add custom PHP INI directives to your system's PHP configuration. This ensures that you can manage them in the Editor Mode of WHM's MultiPHP INI Editor interface (WHM >> Home >> Software >> MultiPHP INI Editor).
If your system requires extra PHP configuration, you may wish to create custom PHP directives. If you want the system to validate your custom directives, you must add them to the
To add a custom PHP directive, perform the following steps:
/etc/cpanel/ea4/phpini_directivesdirectory if it does not already exist.
Inside the directory, create a
.yaml file that contains a hash of the directives that you wish to add inside the
The hash inside your
Your file might resemble the following example:
directives: directive_foo: changeable: PHP_INI_ALL default: foo multiple: 0 note: '...' section: '...' type: string directive_bar: changeable: PHP_INI_PERDIR default: 1 multiple: 0 note: '...' deprecated: 5.4.0 section: '...' type: boolean