How to change the PHP version of the LWS Panel Web Terminal

Procédure

What is the SSH Terminal?

The LWS Panel's Terminal tool allows you tohave an SSH shell directly on your web hosting, via your web browser while connected to your customer area, without having an SSH client like Putty.

It's a handy tool if you need to run commands on your hosting.

The SSH Terminal is available from the LWS Starter to Performance packages, by going to"SSH Terminal" in the"Software" section. You can use this terminal to modify and install certain applications such as Composer.

By default, the PHP version of the Terminal is 8.0. You can view the version by going to it and typing the following command:

php -v

However, it is possible, if necessary, to change the PHP version to one of those available on the Terminal, from PHP 5.6 to PHP 8.1.

How do I change the PHP version using the LWS Panel Web Terminal?

Log on to your LWS customer area and click on"Manage" behind the LWS package concerned.

How to change the PHP version of the LWS Panel Web Terminal

Click on the"SSH Terminal" tool in the"Software" section.

How to change the PHP version of the LWS Panel Web Terminal

On the SSH Terminal, you will need to create a new profile using the"touch" command.

touch ~/.profile 

You can replace"profile" with the desired name. Note that for each command, you will need to replace the name"profile" with the name you have defined.

How to change the PHP version of the LWS Panel Web Terminal

Edit the"profile" file using the following command:

nano ~/.profil

How to change the PHP version of the LWS Panel Web Terminal

Add the following code to the "./profile" file:

export PATH=/opt/php7.0/bin:$PATH

When adding the line of code, don't forget to change php7.0 to the PHP version you want. The following versions are available:

  • php5.6
  • php7.0
  • php7.1
  • php7.2
  • php7.3
  • php7.4
  • php8.0
  • php8.1

How to change the PHP version of the LWS Panel Web Terminal

Simultaneously press [CTRL] + X then "Y" and the "enter" key to save the file.

How to change the PHP version of the LWS Panel Web Terminal

Finally, load the .profil file using the following command:

source ~/.profil

How to change the PHP version of the LWS Panel Web Terminal

You can check the PHP version used by the SSH Terminal using the following command:

php -v

How to change the PHP version of the LWS Panel Web Terminal

Rate this article :

5/5 | 1 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How do I connect to the Web Terminal with LWS Panel? (ssh web console)

4mn reading

How can I use GIT with the Web terminal on my LWS shared hosting?

0mn reading

What can I do on my WordPress site using the Web Terminal?

0mn reading

How can I use the Web Terminal on my Prestashop site?


Questions sur l'article
LChris57 Il y a 668 days
Bonjour Mon logiciel réclame une version minimale PHP de 7.1.0, même si, pour l'instant je peux tout de même exporter mon site avec une version PHP antérieure. Comment puis-je procéder pour passer de la version actuelle de PHP à cette version 7.1.0.
See the
1 answers
fabrice-LWS - Il y a 667 days
Bonjour, vous avez la possibilité de modifier la version PHP en suivant la procédure suivante: https://aide.lws.fr/a/84
Utile ?
asrarquoran Il y a 620 days
pourquoi je ne peux pas accéder à mon site wordpress asrarquoran.com
See the
1 answers
Benjamin-LWS - Il y a 619 days

Bonjour,

Si vous souhaitez avoir une aide sur votre problème Wordpress, je vous invite à ouvrir un ticket sur notre support technique.

Voici une documentation portant sur l'ouverture de ticket via votre espace client : https://aide.lws.fr/a/268

Utile ?

Ask the LWS team and its community a question