# Server tools

Your Web Hosting server comes equipped with many pre-installed and always up to date common tools.

# 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 01/10/2023 is 8.1.

```
> php -v
    PHP 8.1.25 (cli) (built: Oct 27 2023 11:17:49) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.25, Copyright (c) Zend Technologies
      with the ionCube PHP Loader v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.
      with Zend OPcache v8.1.25, 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
```

<p class="callout info">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](https://www.php.net/supported-versions.php) by The PHP Group. We add any new version as soon as it is available.</p>

### Composer

Composer is also ready to use via the **composer** command.

```
> composer -V
    Composer version 2.6.5 2023-10-06 10:11:52
```

<p class="callout info">Note that the composer version available on Hosterra servers is always the most recent version.</p>

### WP-CLI

WP-CLI is also ready to use via the **wp** command.

```
> wp cli version
    WP-CLI 2.9.0
```

<p class="callout info">Note that the version of WP-CLI available on Hosterra servers is always the most recent version.</p>

# Using Node, NPM and NPX

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

### Node

Node is ready to use, it can be invoked via the **node** command. The version installed on 01/10/2023 is 18.

```shell
> node -v
    v18.18.2
```

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

```shell
/opt/plesk/node/18/bin/node
/opt/plesk/node/20/bin/node
/opt/plesk/node/21/bin/node
```

<p class="callout info">Please note that available NodeJS versions on Hosterra servers evolve over time. We systematically remove any old version that is no longer being [maintained for security](https://endoflife.date/nodejs). We add any new version as soon as it is available.</p>

### NPM &amp; NPX

NPM and NPX are also ready to use via the npm and npx commands.

```shell
> npm -v
    10.2.2
```

<p class="callout info">Note that the NPM and NPX versions available on Hosterra servers are always the most recent versions.</p>

# Rendering html to pdf or image

Your server is equipped to perform **html to pdf or image** rendering from the command line:

### WkHtmlToPdf

WkHtmlToPdf is ready to use, it can be invoked via the **wkhtmltopdf** command. The version installed on 01/10/2023 is 0.12.6.

```shell
> wkhtmltopdf -V
    wkhtmltopdf 0.12.6.1 (with patched qt)
```

<p class="callout info">Note that the WkHtmlToPdf version available on Hosterra servers are always the most recent version.</p>

### WkHtmlToImage

WkHtmlToImage is ready to use, it can be invoked via the **wkhtmltoimage** command. The version installed on 01/10/2023 is 0.12.6.

```shell
> wkhtmltoimage -V
    wkhtmltoimage 0.12.6.1 (with patched qt)
```

<p class="callout info">Note that the WkHtmlToImage version available on Hosterra servers are always the most recent version.</p>