PHP
Update PHP version's php.ini file
This function changes the contents of a PHP version's php.ini file.
Notes:
- This document only applies to systems that run EasyApache 4.
- Due to the limited field length of HTTP GET method calls, we strongly recommend that you use the HTTP POST method.
Important: When you disable the Web Server role, the system disables this function.
post/php_ini_set_content
Query parameters
contentstring required
Example:[PHP]
; About php.ini
; php.ini is responsible for configuring many of the aspects of PHP's behavior.
pcre.backtrack_limit=100000
The contents of the php.ini file that you wish to change.
versionstring required
Example:ea-php74
The version of PHP for which you wish to change the php.ini file.
- ea-php72
- ea-php73
- ea-php74
- Any custom PHP package name
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "php_ini_set_content",
"reason": "Ok",
"result": 1,
"version": 1
}
}