v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
LangPHP
PHP Settings

Return php.ini file paths

This function lists the php.ini file paths for the user's home directory and virtual host document roots.

Note:

This document only applies to systems that run EasyApache 4 with MultiPHP enabled.

Important:

When you disable the WebServer role, the system disables this function.

get/LangPHP/php_ini_get_user_paths

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "php_ini_get_user_paths",
  "module": "LangPHP",
  "result": {
    "data": {
      "paths": [
        {
          "account": "allthethings",
          "documentroot": "/home/allthethings/public_html",
          "homedir": "/home/allthethings/",
          "main_domain": 1,
          "path": "php.ini",
          "type": "vhost",
          "version": "ea-php72",
          "vhost": "clearly.com"
        }
      ]
    },
    "status": 1
  }
}