Website Help
PHP Questions
How to check which PHP version is running on my account?

How to check which PHP version is running on my account?

To check exactly which PHP version is used for a certain website, create a simple PHP info file (for example systeminfo.php) in the /home/customer/www/yourdomainname.com/public_html folder, containing the following code:

<?php phpinfo(); ?>

Then open the file in a browser:


Replace yourdomain.com with your actual domain name.

Your server is running PHP version x.x.x but WordPress requires at least x.x.x.

If you see this message on your website, but you see the required version or higher when you check it using the above method, it means that there is a custom .htaccess file placed in the directory of your website that has a line in it, setting the wrong PHP version.

To resolve this problem, check the directory of your website and find the file named .htaccess, open it and remove any lines similar to:

AddHandler application/x-httpd-phpXX .php .htm .html

This will remove the custom set PHP version for that folder and set it to the PHP version you have set in Site Tools -> Devs -> PHP Manager.

You can find and edit the .htaccess file using Site Tools -> Site -> File Manager.

Share This Article