Return PHP version's php.ini file

This function returns the contents of a PHP version's php.ini file.

Note:

This document only applies to systems that run EasyApache 4.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
version
required
string

The name of an installed PHP version's package.

  • ea-php##, where ## represents the major and minor versions of PHP (for example, ea-php74 represents PHP 7.4).
  • inherit
  • Any custom PHP package name.
Example: version=ea-php74
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/php_ini_get_content
Request samples
whmapi1 --output=jsonpretty \
  php_ini_get_content \
  version='ea-php74'
Response samples
application/json
{
  • "data": {
    • "content": "display_errors; Default Value: On; Development Value: On; Production Value: Off;"
    },
  • "metadata": {
    • "command": "php_ini_get_content",
    • "reason": "Ok",
    • "result": 1,
    • "version": 1
    }
}