List PHP Versions

Last Updated: August 20, 2026

Returns all PHP versions installed on the specified server, including which is set as the default. Requires the read:servers scope.

Install PHP Version

Last Updated: August 20, 2026

Installs a PHP version on the server. Asynchronous — dispatches to the background queue. Poll /php-versions/available for the final status. Requires the write:servers scope and the server:manage-php permission.

Uninstall PHP Version

Last Updated: August 20, 2026

Uninstalls a PHP version. Asynchronous — dispatches to the background queue. Requires the write:servers scope.

List Available PHP Versions

Last Updated: August 20, 2026

Returns every PHP version available on the server's OS, with install status, default flag, opcache state, and patch info. Requires the read:servers scope.

Get PHP Patch Info

Last Updated: August 20, 2026

Synchronously refreshes patch availability for installed PHP versions (runs UpdatePackages + CheckPatchVersions via SSH) and returns current patch metadata. Requires the read:servers scope.

Set Default PHP Version

Last Updated: August 20, 2026

Set the given PHP version as the server's default. If already installed flips the OS default synchronously (returns 200); otherwise dispatches an install (returns 202).

Patch PHP Version

Last Updated: August 20, 2026

Apply patch (minor-version bump) for an installed PHP version. Asynchronous — dispatches PatchPHPVersion to the background queue.

Toggle OPCache for PHP Version

Last Updated: August 20, 2026

Enable or disable OPCache for a PHP version. Synchronous over SSH. Requires the write:servers scope and the server:manage-php permission.

Reboot Server

Last Updated: August 20, 2026

Initiates a graceful reboot of the specified server. This is an asynchronous operation — the server will briefly go offline during the reboot process. Requires the write:servers scope.

List Server Services

Last Updated: August 20, 2026

Returns the services managed on the server (Nginx, OpenLiteSpeed, PHP, Redis, Docker, Supervisor, MySQL/MariaDB, etc.) with their current status, version, and whether each can be restarted via the API. The…

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.