Get your free beta license ↗
API operation · web-server group
GET

/web-server

First published 25 Oct 20260.2.16Unchanged since publication

Get Apache settings, worker-limit history, and memory usage

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsreadall
Answers200 OK

Only administrators can call this operation. The token must have the settings scope.

The 200 response is a WebServer report. It identifies the active Apache MPM and the file that loads it. It also reports whether Apache's full configuration test passed, which files Apache read and in what order, and which values Apache would adjust while reading them.

For each reported setting, the response gives the effective value and its source, either a file and line number or Apache's built-in default. It lists every line that sets the directive in the order Apache reads it. If UrbeStack has a saved value, the response shows the value, who set it, and when. For ServerLimit and ThreadLimit, it also shows any different value the running master retains until a full restart.

For the event MPM, the report covers StartServers, ServerLimit, ThreadLimit, ThreadsPerChild, MaxRequestWorkers, MinSpareThreads, MaxSpareThreads, MaxConnectionsPerChild, and AsyncRequestWorkerFactor. The connection settings are Timeout, KeepAlive, KeepAliveTimeout, and MaxKeepAliveRequests. The report names the processes for other MPMs and includes any settings saved for them in UrbeStack. MPM tuning is available only for event.

The report covers each Apache master process from the last 14 days and shows whether it reached MaxRequestWorkers or came within MinSpareThreads of that limit. Apache logs each condition only once per master process, even across graceful reloads. The report also shows how many times the scoreboard filled and when it last filled, and includes up to 200 relevant error log lines, newest first.

The report shows current proportional set size (PSS) for Apache processes and the domains' PHP-FPM pools. It also estimates Apache's memory usage at its maximum process count.

As a command

Run as root on the server

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/web-server" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "apache": {
    "mpm": "text",
    "mpm_file": "text",
    "pid": 1,
    "present": true,
    "running": true,
    "started": "text",
    "tuned": true,
    "unit": "text",
    "version": "0.0.1",
    "virtual_hosts": 1
  },
  "file": {
    "path": "public_html/index.php",
    "read": true,
    "written": true
  },
  "hits": {
    "days": 1,
    "lines": [
      {}
    ],
    "log": "",
    "scoreboard_full": {},
    "starts": [
      {}
    ]
  },
  "memory": {
    "apache": {},
    "at_most": {},
    "available": 1,
    "pools": {},
    "total": 1
  },
  "not_used": [
    {
      "at": "text",
      "by": "text",
      "name": "alice",
      "scope": "text",
      "value": 8443
    }
  ],
  "settings": [
    {
      "chain": [
        {}
      ],
      "comes_from": {},
      "default": "text",
      "group": "processes",
      "in_force": "text",
      "kind": "count",
      "max": 1,
      "min": 1,
      "name": "alice",
      "overridden_after": true,
      "restart_only": true,
      "running": "text",
      "scope": "text",
      "set_here": {}
    }
  ],
  "test": {
    "command": "text",
    "ok": true,
    "warnings": [
      "text"
    ],
    "words": "text"
  }
}

Errors

2 errors, each a status and a sentence
401Authentication required
404No setting '<setting>' here; known:
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.16 on 25 Oct 2026.
urbestack.com/docs/api/get-web-server/