{"id":2138,"date":"2021-09-22T09:59:42","date_gmt":"2021-09-22T09:59:42","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2138"},"modified":"2021-09-22T09:59:42","modified_gmt":"2021-09-22T09:59:42","slug":"how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/","title":{"rendered":"How to create Phpinfo file using cPanel to check PHP Version and Configuration"},"content":{"rendered":"<p>The below-defined steps will shortly justify however you&#8217;ll find the PHP version of your server, creating a Phpinfo () page under public_html () directory to execute the various task. The PHP version matters lots if you attempt to run PHP software on your web site, it&#8217;ll need a minimal or specific PHP version, and it may be used for debugging purposes because it contains all EGPCS (Environment, GET, POST, Cookie, Server) extensions entered in for the various setting choices.<\/p>\n<p>To check PHP version and configuration follow the steps as shown below,<\/p>\n<p>1. Log into your cPanel account using your login details.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2139\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-1-288x300.png\" alt=\"php-1\" width=\"385\" height=\"401\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-1-288x300.png 288w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-1.png 385w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/p>\n<p>2. Look for Files section and click on the File manager.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2140\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-2-300x164.png\" alt=\"php-2\" width=\"522\" height=\"286\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-2-300x164.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-2.png 522w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p>3. Choose Home Directory and click on Go it will redirect you to the root folder of your server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2141\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-3-300x223.png\" alt=\"php-3\" width=\"411\" height=\"306\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-3-300x223.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-3.png 411w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/p>\n<p>4. From the folder hierarchy Select Public_html() folder to create a file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2142\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-4-266x300.png\" alt=\"php-4\" width=\"449\" height=\"506\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-4-266x300.png 266w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-4.png 449w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>5. After this to know PHP version and other extensions click on the new file to add a new file to the public_html.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2143\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-5-229x300.png\" alt=\"php-5\" width=\"384\" height=\"504\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-5-229x300.png 229w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-5.png 384w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>6. In New File Name textbox enter phpinfo.php and click on Create New file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2144\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-6-300x124.png\" alt=\"php-6\" width=\"608\" height=\"252\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-6-300x124.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-6.png 608w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/p>\n<p>7. The new file will get created successfully and you can check it under public_html().<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2145\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-7-300x233.png\" alt=\"php-7\" width=\"575\" height=\"446\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-7-300x233.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-7.png 575w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>8. Choose phpinfo.php file and to select Code edit right click on file and to add a small line of code as given in the next step.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2146\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-8-300x267.png\" alt=\"php-8\" width=\"527\" height=\"469\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-8-300x267.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-8.png 527w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2147\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-9-300x201.png\" alt=\"php-9\" width=\"496\" height=\"333\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-9-300x201.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-9.png 496w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>9. Add this code to the file, after adding it click on save.<\/p>\n<pre>&lt;?php\r\nphpinfo();\r\n?&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2148\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-10-300x134.png\" alt=\"php-10\" width=\"979\" height=\"438\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-10-300x134.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-10-768x344.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-10.png 979w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/p>\n<p>10. Open a new tab in your browser and type your domain name, add this \/phpinfo () .php (www.yourdomainname.com\/phpinfo.php) to induce all the main points associated with PHP version and extensions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The below-defined steps will shortly justify however you&#8217;ll find the PHP version of your server, creating a Phpinfo () page under public_html () directory to execute the various task. The PHP version matters lots if you attempt to run PHP software on your web site, it&#8217;ll need a minimal or specific PHP version, and it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2138","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create Phpinfo file using cPanel to check PHP Version and Configuration - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create Phpinfo file using cPanel to check PHP Version and Configuration - OWS KB\" \/>\n<meta property=\"og:description\" content=\"The below-defined steps will shortly justify however you&#8217;ll find the PHP version of your server, creating a Phpinfo () page under public_html () directory to execute the various task. The PHP version matters lots if you attempt to run PHP software on your web site, it&#8217;ll need a minimal or specific PHP version, and it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-22T09:59:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-1-288x300.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/php-1.png\",\"width\":385,\"height\":401,\"caption\":\"php-1\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\",\"name\":\"How to create Phpinfo file using cPanel to check PHP Version and Configuration - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/#primaryimage\"},\"datePublished\":\"2021-09-22T09:59:42+00:00\",\"dateModified\":\"2021-09-22T09:59:42+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-phpinfo-file-using-cpanel-to-check-php-version-and-configuration\/\",\"name\":\"How to create Phpinfo file using cPanel to check PHP Version and Configuration\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2138"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2149,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2138\/revisions\/2149"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}