{"id":6992,"date":"2009-04-07T22:57:36","date_gmt":"2009-04-07T17:27:36","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=6992"},"modified":"2026-10-11T11:06:30","modified_gmt":"2026-10-11T05:36:30","slug":"find-server-php-version","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/","title":{"rendered":"How to Find Your Server PHP Version (WordPress, cPanel, phpinfo) 2026"},"content":{"rendered":"<p>Need to find your server&#8217;s PHP version? Knowing the PHP version running your WordPress site helps you fix errors, check plugin compatibility and keep your site fast and secure. In 2009, while troubleshooting <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/traffic-with-internal-server-errors\/\">internal server errors<\/a>, we checked it by uploading a small phpinfo file. That still works, but in 2026 there are quicker ways that don&#8217;t need FTP at all.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-63792\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version-1024x538.webp\" alt=\"Find your server PHP version\" width=\"760\" height=\"399\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version-768x403.webp 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/find-server-php-version.webp 1200w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> In WordPress, go to <strong>Tools &gt; Site Health &gt; Info<\/strong> and open the <strong>Server<\/strong> section to see your PHP version. In cPanel, open <strong>Select PHP Version<\/strong> or <strong>MultiPHP Manager<\/strong>; on Hostinger, check <strong>Advanced &gt; PHP Configuration<\/strong>. With SSH, run <code>php -v<\/code>. WordPress recommends PHP 8.3 or newer.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_91 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6b10a98eb403e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6b10a98eb403e\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Method_1_WordPress_Site_Health_easiest\" >Method 1: WordPress Site Health (easiest)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Method_2_Your_hosting_control_panel\" >Method 2: Your hosting control panel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Method_3_Command_line\" >Method 3: Command line<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Method_4_Create_a_phpinfo_file\" >Method 4: Create a phpinfo file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Which_PHP_version_should_you_use\" >Which PHP version should you use?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Frequently_asked_questions\" >Frequently asked questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#How_do_I_check_the_PHP_version_without_logging_in_to_WordPress\" >How do I check the PHP version without logging in to WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Is_it_safe_to_leave_a_phpinfo_file_on_my_server\" >Is it safe to leave a phpinfo file on my server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Can_I_change_the_PHP_version_myself\" >Can I change the PHP version myself?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/04\/find-server-php-version\/#Why_does_Site_Health_show_a_different_PHP_version_than_php_-v\" >Why does Site Health show a different PHP version than php -v?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_WordPress_Site_Health_easiest\"><\/span>Method 1: WordPress Site Health (easiest)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Log in to your WordPress dashboard.<\/li>\n<li>Go to <strong>Tools &gt; Site Health<\/strong> and click the <strong>Info<\/strong> tab.<\/li>\n<li>Expand <strong>Server<\/strong>. You&#8217;ll see the PHP version, memory limit, max execution time and upload size.<\/li>\n<\/ol>\n<p>If your PHP version is outdated, the Status tab also shows a warning recommending an update.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Your_hosting_control_panel\"><\/span>Method 2: Your hosting control panel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>cPanel:<\/strong> open <strong>Select PHP Version<\/strong> (CloudLinux) or <strong>MultiPHP Manager<\/strong> to see and change the version per domain.<\/li>\n<li><strong>Hostinger hPanel:<\/strong> go to your website&#8217;s <strong>Advanced &gt; PHP Configuration<\/strong>.<\/li>\n<li><strong>Plesk:<\/strong> open the domain&#8217;s <strong>PHP Settings<\/strong>.<\/li>\n<\/ul>\n<p>This is also where you upgrade PHP, usually with a single click.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_3_Command_line\"><\/span>Method 3: Command line<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you have SSH access, run:<\/p>\n<pre><code>php -v<\/code><\/pre>\n<p>Note that the command-line PHP version can differ from the one your website uses, so double-check with Site Health or your control panel.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_4_Create_a_phpinfo_file\"><\/span>Method 4: Create a phpinfo file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This is the method we used in 2009, and it works on any server:<\/p>\n<ol>\n<li>Create a text file with only this line:\n<pre><code>&lt;?php phpinfo();<\/code><\/pre>\n<\/li>\n<li>Save it with a hard-to-guess name such as <code>info-7f3k.php<\/code>.<\/li>\n<li>Upload it to your site&#8217;s root folder with your host&#8217;s File Manager or FTP.<\/li>\n<li>Open <code>https:\/\/yourdomain.com\/info-7f3k.php<\/code> in your browser. The PHP version is shown at the top, followed by every setting and module.<\/li>\n<li><strong>Delete the file<\/strong> as soon as you&#8217;re done; it exposes server details that can help attackers.<\/li>\n<\/ol>\n<p>Our original code used the short opening tag <code>&lt;?<\/code>, which is disabled on most modern servers and would show the code as text. Always use the full <code>&lt;?php<\/code> tag.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Which_PHP_version_should_you_use\"><\/span>Which PHP version should you use?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress recommends <strong>PHP 8.3 or newer<\/strong>. Older versions such as PHP 7.4 no longer get security updates. Newer PHP is also faster, which helps <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2020\/05\/core-web-vitals\/\">Core Web Vitals<\/a>. Before upgrading, back up your site, update all plugins and your theme, then switch the version in your control panel and test key pages. If something breaks, switch back and check which plugin needs an update.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_asked_questions\"><\/span>Frequently asked questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_check_the_PHP_version_without_logging_in_to_WordPress\"><\/span>How do I check the PHP version without logging in to WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Use your hosting control panel, SSH with <code>php -v<\/code>, or a temporary phpinfo file.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_it_safe_to_leave_a_phpinfo_file_on_my_server\"><\/span>Is it safe to leave a phpinfo file on my server?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Delete it right after use, because it reveals paths and configuration details.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_change_the_PHP_version_myself\"><\/span>Can I change the PHP version myself?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>On most hosts, yes, from the control panel. On managed hosting, ask support if you don&#8217;t see the option.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_does_Site_Health_show_a_different_PHP_version_than_php_-v\"><\/span>Why does Site Health show a different PHP version than php -v?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The web server and the command line can use different PHP installations. The Site Health version is the one your website actually runs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to find your server&#8217;s PHP version? Knowing the PHP version running your WordPress site helps you fix errors, check&#8230;<\/p>\n","protected":false},"author":4,"featured_media":63792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"default","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"default","_kad_post_vertical_padding":"default","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6,25],"tags":[49,17],"class_list":["post-6992","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-hosting","tag-tutorials","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/6992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=6992"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/6992\/revisions"}],"predecessor-version":[{"id":63793,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/6992\/revisions\/63793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/63792"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=6992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=6992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=6992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}