---
title: "Get PHP info"
method: GET
path: "/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info"
tags: ["Hosting: PHP"]
---

# Get PHP info

`GET /api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`

Returns the full phpinfo page (HTML) for the website.

Use it to debug PHP issues or inspect the complete PHP environment of the website.

## Path parameters

- `username` string, required
- `domain` string, required

## Response `200`

Success response

- HostingV1PhpPhpInfoResource
  - `info` string — HTML string containing the full phpinfo page

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-07-03** `7c2b8656649e` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/hosting/v1/accounts/:username/websites/:domain/php/php-info/get.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
