Ploi API
Ploi API

Enable OPcache

This will enable OPcache on your server.

POST api/servers/{server}/enable-opcache

Example request:

curl -X post "https://ploi.io/api/servers/{server}/enable-opcache" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

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

{
    "data": {
        "id": 1,
        "status": "active",
        "type": "server",
        "name": "silent-willow",
        "ip_address": "127.0.0.1",
        "internal_ip": null,
        "ssh_port": 22,
        "reboot_required": false,
        "php_version": 7.4,
        "mysql_version": 5.7,
        "sites_count": 1,
        "monitoring": false,
        "opcache": false,
        "installed_php_versions": [
            "7.4"
        ],
        "status_id": 2,
        "created_at": "2020-07-27 13:37:19"
    }
}