This function sets the values of any basic PHP directive. The Basic Mode section of cPanel's MultiPHP INI Editor interface (WHM >> Home >> Software >> MultiPHP INI Editor) lists these directives.
Note:
This document only applies to systems that run EasyApache 4 with MultiPHP enabled.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ LangPHP \ php_ini_set_user_basic_directives \ type='vhost' \ directive='allow_url_fopen:0'
{- "apiversion": 3,
- "func": "php_ini_set_user_basic_directives",
- "module": "LangPHP",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": {
- "LangPHP": {
- "path": "/home/allthethings/public_html/php.ini",
- "phpversion": "ea-php55",
- "type": "vhost",
- "vhost": "clearly.com"
}
}, - "status": 1,
- "warnings": null
}
}