How to install new PHP version in HestiaCP?

Hello,
First of all, I would like to say thanks to the HestiaCP Team that you have programmed such a useful web server control panel.
We are using HestiaCP v1.8.11 on Debian v12.5.
I have checked that we have PHP v7.4, Nginx v1.25.5.
My question is, how to update how to install PHP v8.3 in HestiaCP?
Does Debian update automatically install Nginx v1.26.0 or I have to install it manually?
Hope to hear from you soon. Thanks.

v-add-web-php 8.3

In terminal

For PHP 8.3 run v-add-web-php 8.3

For Nginx we follow the mainline instead stable. In the next few weeks a new mainline version will be released and it will update to that version.

Thank you very much for your reply. I run the command you mentioned, it installed PHP v8.3. Now I can see the new version in the menu of the domain.

But in the Linux console, if I run php -v, it shows PHP v7.4. It should be so?

Under user change PHP CLI version to 8.3

Or just use:
php8.3 -v

1 Like

Thank you very much. Do you know why php -v doesn’t show PHP v8.3, instead v7.4?

Use this to change php default version:

v-change-sys-php 8.3
1 Like

Thank you very much for your help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.