{"id":989,"date":"2022-01-26T12:39:49","date_gmt":"2022-01-26T12:39:49","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/01\/26\/5920192-how-to-check-the-php-version-in-hostinger\/"},"modified":"2026-10-29T14:52:02","modified_gmt":"2026-10-29T14:52:02","slug":"5920192-how-to-check-the-php-version-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/5920192-how-to-check-the-php-version-in-hostinger\/","title":{"rendered":"How to check the PHP version in Hostinger"},"content":{"rendered":"<p>Check the PHP version in Hostinger on the PHP Info page of your website&rsquo;s dashboard, or with a <code>phpinfo.php<\/code> file to confirm the version used by a specific folder or subdomain. The PHP Info page also shows the PHP build date, which confirms whether your website has the fix for the php2shell vulnerabilities. Upgrade to PHP 8.3 or newer if your website still runs an outdated PHP version.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The information below doesn&rsquo;t apply to websites created with <b>Hostinger AI Builder&nbsp;<\/b><\/p>\n<\/div><h2 id=\"h_8e8f5b9284\">Check PHP version in the PHP Info section<\/h2><p class=\"no-margin\">To check the PHP version of your website, go to the <b><a data-click-id=\"hgr-post-content-link-websites\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a> <\/b>section, hover over the website in question, and click<strong> Manage site<\/strong>. Then, search for <a data-click-id=\"hgr-post-content-link-php-info\" href=\"\/support\/1583467-how-to-check-the-php-information-of-your-website-in-hostinger\/\"><b>PHP Info<\/b><\/a> on the sidebar, and click on it:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2022\/01\/0912a84f-7c51-4119-a7b3-a6a4fbe52c93.jpg\/public\" alt=\"Hostinger dashboard Advanced menu with PHP Info highlighted below the php info search field\" width=\"200\" height=\"333\" data-media-id=\"3999\"><\/div><p class=\"no-margin\">Your current PHP version will be displayed at the top:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-21479\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-51.png\/public\" alt=\"\" width=\"1193\" height=\"793\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-51.png\/w=1193,fit=scale-down 1193w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-51.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-51.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-51.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1193px) 100vw, 1193px\" \/><\/div><p class=\"no-margin\">To change it, go to the <b><a data-click-id=\"hgr-post-content-link-php-configuration-settings\" class=\"intercom-content-link\" href=\"\/support\/1575755-how-to-change-the-php-version-of-your-hostinger-hosting-plan\/\" target=\"_blank\" rel=\"noopener\">PHP configuration settings.<\/a><\/b><\/p><h2 id=\"h-check-whether-your-website-has-the-php2shell-fix-in-hostinger\">Check whether your website has the php2shell fix in Hostinger<\/h2><p>Check the<strong> Build Date<\/strong> on the PHP Info page to confirm your website has the php2shell fix. On every Hostinger hosting plan except VPS, the fix is built into the PHP version your website already runs, so the version number may not change.<\/p><ol>\n<li>Go to Hostinger dashboard &rarr; <strong>Websites &rarr; Manage site &rarr; PHP Info.<\/strong><\/li>\n<li>Check the<strong> Build Date<\/strong>. A build date of October 21, 2026 or later means your website has the php2shell fix.<\/li>\n<\/ol><p><img decoding=\"async\" class=\"alignnone size-full wp-image-21480\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-52.png\/public\" alt=\"\" width=\"1124\" height=\"798\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-52.png\/w=1124,fit=scale-down 1124w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-52.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-52.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-52.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/p><p>Websites running PHP 8.1 or older are also covered on these plans, since Hostinger deployed patched builds for every PHP version it offers. For full details, see <a data-click-id=\"hgr-post-content-link-hostinger-deploys-protections-against-php2shell-php-vulnerab\" href=\"\/blog\/protecting-php2shell\/\">Hostinger deploys protections against php2shell PHP vulnerabilities<\/a>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p>Hostinger has installed the fix for the php2shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) on every Hostinger hosting plan except VPS, so no action is needed on these plans. On a VPS, update PHP to version 8.5.12, 8.4.27, 8.3.36, or 8.2.35, then restart PHP.<\/p>\n<\/div><h2 id=\"h_d55e86c91b\">Check PHP version in the File Manager<\/h2><p class=\"no-margin\">A different PHP version can be <b><a data-click-id=\"hgr-post-content-link-applied-to-a-specific-folder-or-subdomain\" class=\"intercom-content-link\" href=\"\/support\/4047803-how-to-change-the-php-version-for-subfolders-or-subdomains-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">applied to a specific folder or subdomain<\/a><\/b>.<\/p><p class=\"no-margin\">To check if the change was done correctly:<\/p><ol>\n<li>\n<p class=\"no-margin\">Access the folder you want to test<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Create a new <b>.php<\/b> file (e.g., <code>phpinfo.php<\/code>)<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Add the following code to the file:<\/p>\n<\/li>\n<\/ol><pre><code>&lt;?php\r\n\/\/ Show all information, defaults to INFO_ALL\r\nphpinfo();\r\n?&gt;<\/code><\/pre><p class=\"no-margin\">The file will look like this:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2022\/01\/49b43ffe-de4a-4a4b-b99c-0af7a42b5c40.jpg\/public\" alt=\"phpinfo.php file open in a code editor with phpinfo() highlighted\" width=\"400\" data-media-id=\"4002\"><\/div><p class=\"no-margin\">After this, access this file by the URL: type your domain name, then the folder name, and add the filename. For the file above, the path would be:<\/p><pre><code>https:\/\/domain.tld\/subdomain\/phpinfo.php<\/code><\/pre><p class=\"no-margin\">The PHP version should be displayed at the top:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-21481\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-55.png\/public\" alt=\"\" width=\"1520\" height=\"711\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-55.png\/w=1520,fit=scale-down 1520w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-55.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-55.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-23_09-55.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1520px) 100vw, 1520px\" \/><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Changing the PHP version using files is <b>not recommended<\/b>, as it doesn&rsquo;t include PHP extensions and options. Thus, it might affect the website&rsquo;s work. See <a data-click-id=\"hgr-post-content-link-how-to-check-your-php-version\" href=\"\/tutorials\/how-to-check-your-php-version\/\">How to check your PHP version<\/a> for other methods, including WordPress Site Health, cPanel, and SSH.<\/p>\n<\/div><h2 id=\"h-upgrade-an-outdated-php-version-in-hostinger\">Upgrade an outdated PHP version in Hostinger<\/h2><p>Upgrade to PHP 8.3 or newer if your website uses PHP 8.2 or older. PHP 8.1 and older versions no longer receive security fixes from the PHP project. PHP 8.2 stops receiving security fixes on December 31, 2026.<\/p><p>Check that your theme and plugins support the new PHP version before you upgrade. See <a data-click-id=\"hgr-post-content-link-how-to-change-the-php-version-of-your-hostinger-hosting-plan\" href=\"\/support\/1575755-how-to-change-the-php-version-of-your-hostinger-hosting-plan\/\">How to change the PHP version of your Hostinger hosting plan<\/a> for the steps.<\/p><p>Once you know your PHP version and build date, you can confirm your website is protected and plan any upgrade to a supported PHP version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check the PHP version in Hostinger on the PHP Info page, or with a phpinfo.php file to confirm the version of a specific folder or subdomain.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[234],"tags":[],"class_list":["post-989","post","type-post","status-publish","format-standard","hentry","category-php-versions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5920192-how-to-check-the-php-version-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5920192-como-revisar-la-version-de-php-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5920192-comment-verifier-la-version-de-php-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5920192-cara-cek-versi-php-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/5920192-como-verificar-a-versao-php-na-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5920192-\u044f\u043a-\u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438-\u0432\u0435\u0440\u0441\u0456\u044e-php-\u043d\u0430-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=989"}],"version-history":[{"count":13,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989\/revisions"}],"predecessor-version":[{"id":22954,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989\/revisions\/22954"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}