Install PHP version

Install a new PHP version on your server if it's not already installed.


POST/api/servers/{server}/php/install

Install PHP version

This endpoint installs a new PHP version on the specified server.

Required parameters

  • Name
    version
    Type
    string
    Description

    The PHP version you want to install, e.g. 7.4, 8.0, 8.1.

Request

POST
/api/servers/{server}/php/install
curl -X POST "https://ploi.io/api/servers/{server}/php/install" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  --data '{
    "version": "8.1"
  }'

Response

{
  "status": "ok",
  "message": "PHP version 8.1 is being installed."
}