This function sets the value of a PHP version's directives.
Note:
This document only applies to systems that run EasyApache 4.
Important:
When you disable the Web Server role , the system disables this function.
directive required | string The name of a PHP directive and its value. Note: To change the directive's value for multiple PHP directives, duplicate or increment the parameter name. For example, to change three directives, use the directive parameter multiple times or use the directive directive |
version required | string PHP version on the system. Note
Example: |
HTTP Request was successful.
data | object |
object |
whmapi1 --output=jsonpretty \ php_ini_set_directives \ directive='allow_url_fopen:0' \ version='ea-php72'
{- "data": { },
- "metadata": {
- "command": "php_ini_set_directives",
- "reason": "Ok",
- "result": 1,
- "version": 1
}
}