latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

PHP

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.

get/php_ini_get_content

Query parameters

versionstring required
Example:ea-php74

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.

Response

HTTP Request was successful.

Example response

{
  "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
  }
}