Ploi API
Ploi API

Install PHP version

Installs a new PHP version in your server if it's not already installed.

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


Parameter Type Status Description
version string or float required The PHP version you want to install, e.g. 7.4, 8.0, 8.1

Example request:

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

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

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