Skip to main content

Using PHP, composer and WP-CLI

Your server is fully equipped to perform current PHP opérations from the command line:

PHP

PHP is ready to use, it can be invoked via the php command. The version installed on 23/01/2023 is 8.1.

> php -v
    PHP 8.1.14 (cli) (built: Jan  9 2023 09:40:33) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.14, Copyright (c) Zend Technologies
      with the ionCube PHP Loader v12.0.5, Copyright (c) 2002-2022, by ionCube Ltd.
      with Zend OPcache v8.1.14, Copyright (c), by Zend Technologies

If you want to use another version of PHP, you will find them in the following paths: 

/opt/plesk/php/8.0/bin/php
/opt/plesk/php/8.1/bin/php
/opt/plesk/php/8.2/bin/php

Please note that available PHP versions on Hosterra servers evolve over time. We systematically remove any old version that is no longer being maintained for security by The PHP Group. We add any new version as soon as it is available.

Composer