Article directory
In HestiaCP , you can use the following methods to find the PHP version used by a website :
Method 1: View in HestiaCP panel
- Log in to HestiaCP(usually
https: //your-server-ip:8083). - Go to "Web" Tab.
- find your website domain name, click Edit.
- 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

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 indicates that the website 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! 🚀
Hopefully, the article "How to Find a Website's PHP Version Using HestiaCP? A Super Simple Tip!" shared on Chen Weiliang's blog ( https://www.chenweiliang.com/ ) will be helpful to you.
Feel free to share this article's link: https://www.chenweiliang.com/cwl-32494.html
