How to find the PHP version of a website using HestiaCP? Super simple tricks to share!

On HestiaCP You can use the following method to find out which websites are using PHP version :

Method 1: View in HestiaCP panel

  1. Log in to HestiaCP(usually https: //your-server-ip:8083).
  2. Go to "Web" Tab.
  3. find your website domain name, click Edit.
  4. On “Backend Template” Or “PHP-FPM Version” You can see the PHP version used by the website.

Method 2: Use the command line (CLI) to query

How to find the PHP version of a website using HestiaCP? Super simple tricks to share!

If you have SSH access, you can find out the PHP version of your website using the following command:

1. Query the PHP version set by HestiaCP

v-list-web-domain user domain.com

For example:

v-list-web-domain abc chenweiliang.com

In the output, you will see something like:

PHP SUPPORT      yes
PHP MODE        php-fpm
PHP VERSION     8.1

This means that the site uses PHP 8.1.

2. Execute PHP commands directly in the website root directory

If you are unsure about your PHP configuration, go to your website's root directory, for example:

cd /home/user/web/domain.com/public_html

Then run:

php -v

or:

php -i | grep "PHP Version"

3. Create in the website directory phpinfo.php file

If you can upload files, you can create phpinfo.php :

nano /home/user/web/domain.com/public_html/phpinfo.php

Add to:

<?php phpinfo(); ?>

After saving, access it in the browser:

http://domain.com/phpinfo.php

You will then see the complete PHP version information.

Final Thoughts

It is recommended to use the HestiaCP panel to view(Simplest)
Using the command line v-list-web-domain Find(Suitable for users with SSH permissions)
use phpinfo.php Visualization(Suitable for beginners)

Try it and see what PHP version your website is using! 🚀

Comment

Your email address will not be published. Required fields * Callout

Scroll to Top