---
title: 'How to change the PHP version in the HestiaCP panel? | Zomro'
description: 'HestiaCP is a panel that provides the ability to easily manage web servers, and one of the features that HestiaCP offers users is the ability to change the PHP version for a domain.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080501_1.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to change the PHP version in the HestiaCP panel? 



# How to change the PHP version in the HestiaCP panel?

22-02-2023

HestiaCP is a panel that provides the ability to easily manage web servers, and one of the features that HestiaCP offers users is the ability to change the PHP version for a domain.  
  
Changing the PHP version on the server may be necessary if your site is using an old version of PHP that is no longer supported, or if you want to use a new version of PHP to improve site performance. In this article, we will look at how to change the PHP version for a domain in the HestiaCP panel.  
  
**Logging into the HestiaCP control panel**  
  
The first step is to log into the HestiaCP control panel. After logging in, and after navigating to the "Web" tab, you will see a list of available domains on your server.  
  
![How to change the PHP version in the HestiaCP panel? - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080501_1.png)  
**Selecting a domain**  
  
Select the domain for which you want to change the PHP version. Click on the domain to open its settings.  
  
![How to change the PHP version in the HestiaCP panel? - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080491_2.png)  
**Configuring the PHP version**  
  
Configuring the PHP version for the domain is done through the "Web" tab. In the "Web" tab, select the domain and click "Edit Web Domain" to find the "Advanced Options" section.  
  
![How to change the PHP version in the HestiaCP panel? - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080542_3.png)  
Click on the template to open its settings. In the template settings, find the "PHP" section and select the desired PHP version from the dropdown list.  
  
![How to change the PHP version in the HestiaCP panel? - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080537_4.png)  
After selecting the PHP version, save the template settings.  
  
![How to change the PHP version in the HestiaCP panel? - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080474_5.png)  
**Restarting Apache and**PHP-FPM****  
  
To apply the changes, usually no additional actions are required. However, if necessary, you can restart the Apache web server and PHP-FPM. To do this, click on the "Server" tab and select "Service" from the submenu.  
  
![How to change the PHP version in the HestiaCP panel? - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080571_6.png)  
On the "Service" page, find the "Restart" button next to the name of the Apache web server and PHP-FPM. Click the "Restart" button to restart the web server.  
  
![How to change the PHP version in the HestiaCP panel? - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080531_7.png)  
**Checking the changes**  
  
After restarting Apache, check that the PHP version has changed for your domain. To do this, you can create a simple PHP file using any text editor and place it on your domain.  
  
Navigate to the desired directory, in my case:  

    
    
    cd /home/admin/web/**domain.com** /public_html/

  
Instead of **domain.com** your domain should be here.  
  
Create the file info.php
    
    
    vim info.php
    

  
  
In this file, you can insert the following code:
    
    
    <?php
    phpinfo();
    ?>

  
![How to change the PHP version in the HestiaCP panel? - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080560_8.png)  
Open this file in your browser and look for information about the PHP version being used on your domain.
    
    
    domain.com/info.php

  
  
If the PHP version has changed to the one you need, then the configuration was successful.  
  
![How to change the PHP version in the HestiaCP panel? - 9](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2023/02/01/1677080633_9.png)  
As we can see, changing the PHP version for a domain in the HestiaCP panel is a fairly simple procedure that even a beginner can perform.  
  
However, before changing the PHP version, it is important to ensure that your site will work correctly with the selected PHP version.

Similar articles:

[How to install SOCKS5 in Docker](https://zomro.com/blog/faq/282-kak-ustanovit-socks5-v-docker) [How to renew the Cloud VPS in the new billing](https://zomro.com/blog/faq/231-kak-prodlit-uslugu-v-novom-billinge) [How to forward a webcam to a remote desktop](https://zomro.com/blog/faq/265-kak-prokinut-veb-kameru-na-udalennyj-rabochij-stol) [How to allow ICMP packets in Windows Server 2022, 2019, 2016](https://zomro.com/blog/faq/279-kak-razreshit-icmp-pakety-v-windows-server-2022-2019-2016) [How to install phpMyAdmin in Docker](https://zomro.com/blog/faq/289-kak-ustanovit-phpmyadmin-v-docker)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
