Skip to main content

Change PHP-CLI Version

PHP-CLI is one of the many PHP modules you can use for various purposes. For example, PHP-MYSQL provides a method to interact with the MySQL databases. Similarly, If you want to execute PHP code from the command line interface, You need PHP-CLI installed on your Server.

If you manage your Server with ServerAvatar, You already have it installed and configured. PHP-CLI comes with various PHP versions. So, It is important to note that you might need different PHP-CLI versions for different projects and different purposes.

With ServerAvatar, You can change the PHP-CLI version with ease. It is just a few step process. You can have any PHP-CLI version you want, from 7.0 to 8.1.

Here is how you can do it.

Step 1: First, log in to the ServerAvatar Account.

Step 2: Click on the Server Dashboard button.

Step 2

Step 3: Now, you will see the option Settings on the left-hand sidebar of the Server Panel. Click on “Settings”.

step 3

Step 4: Now, you will see the Settings form like the below image.

step 4

Step 5: You can change your PHP-CLI Version, Then click on the “Update” button.

step 5