{"id":447,"date":"2024-06-14T18:39:31","date_gmt":"2024-06-14T18:39:31","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=447"},"modified":"2024-06-14T18:44:17","modified_gmt":"2024-06-14T18:44:17","slug":"how-to-create-a-phpinfo","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/how-to-create-a-phpinfo.html","title":{"rendered":"How to Create a phpinfo"},"content":{"rendered":"<p>PHP is a fundamental coding language for WordPress users. Even if you&#8217;re not a developer, you might need to understand this a bit to keep your site running. PHP has many environment variables that you can update as needed.<\/p>\n<p>However, if you don&#8217;t know where to look, it can be challenging to find even the most basic PHP information for your WordPress installation.<\/p>\n<p>phpinfo() is a PHP function or code snippet that takes one or more parameters and returns a value, providing valuable information for debugging your site.<\/p>\n<p>Running phpinfo() allows you to easily display all available information about your site&#8217;s PHP configuration. This includes versions of your PHP, Apache\/IIS, GD etc. A phpinfo page gathers a lot of useful information about your PHP configuration.<\/p>\n<p>For example, you can check if your PHP configurations meet the requirements of any software you want to run on your server or if you need to update your PHP memory_limit to prevent certain scripts from running out of memory.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" 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: #999;color:#999\" 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><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zalvis.com\/docs\/how-to-create-a-phpinfo.html\/#How_to_Create_a_phpinfo\" >How to Create a phpinfo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zalvis.com\/docs\/how-to-create-a-phpinfo.html\/#How_to_View_your_PHP_Settings\" >How to View your PHP Settings<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Create_a_phpinfo\"><\/span>How to Create a phpinfo<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In this tutorial, we&#8217;ll show you how to create a phpinfo page to display your hosting account&#8217;s current PHP settings through your cPanel. Fortunately, the installation takes a few minutes and a line of code to execute.<\/p>\n<ul>\n<li>Log into your cPanel.<\/li>\n<li>In the Files section of your cPanel, open the File Manager option.<\/li>\n<li>Click \u201cpublic_html&#8221; folder and navigate to the directory you are working with<\/li>\n<li>In the top menu, click on the +File option to create a new file.<\/li>\n<li>Enter phpinfo.php<\/li>\n<li>*Note the file name can be anything you want, only the extension must be .php (FileName.php).<\/li>\n<li>Find the phpinfo.php file in your list of files (it should update automatically).<\/li>\n<li>Right-click on it and click Edit.<\/li>\n<li>Enter the following code into the phpinfo.php file.<\/li>\n<\/ul>\n<blockquote><p>&lt;? phpinfo(); ?&gt;<\/p><\/blockquote>\n<ul>\n<li>Then click Save Changes.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"How_to_View_your_PHP_Settings\"><\/span>How to View your PHP Settings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now that you have created the phpinfo page, we\u2019ll show you how to access it and view your PHP settings.<\/p>\n<p>You can now access this page from your browser. If you created the file in your public_html folder, you should visit https:\/\/testing.com\/phpinfo.php.<\/p>\n<p>Be sure to replace testing.com with your actual domain name.<\/p>\n<p>To find the specific value for a parameter, search the page for what you are looking for.<\/p>\n<p>WARNING: Your phpinfo page has many PHP settings that you do not wish to broadcast to the world. When you are done using the file, be sure to delete it.<\/p>\n<p>Another path you can take instead of deleting it however is to name the file something other than phpinfo.php. Since phpinfo.php is such a common name, \u2018bots\u2019 on the web will randomly search for files named phpinfo.php.<\/p>\n<p>Setting the file name to something like 7845734554.php would never be guessed by a bot (so no one would ever find it) but it might be hard to remember this in the future.<\/p>\n<p>You have now learned how to create a phpinfo.php file and verify PHP information through your hosting control panel or default browser.<\/p>\n<div class=\"zozwd69e3458ff2562\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.zozwd69e3458ff2562 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.zozwd69e3458ff2562 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.zozwd69e3458ff2562 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.zozwd69e3458ff2562 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.zozwd69e3458ff2562 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>PHP is a fundamental coding language for WordPress users. Even if you&#8217;re not a developer, you might need to understand this a bit to keep your site running. PHP has many environment variables that you can update as needed. However, if you don&#8217;t know where to look, it can be challenging to find even the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-447","post","type-post","status-publish","format-standard","hentry","category-cpanel-hosting"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/447\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}