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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/LangPHP/php_ini_get_user_paths
Request samples
uapi --output=jsonpretty \
  --user=username \
  LangPHP \
  php_ini_get_user_paths
Response samples
application/json
{
  • "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"
          }
        ]
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}