{"id":7001,"date":"2022-10-27T18:27:32","date_gmt":"2022-10-27T18:27:32","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=7001"},"modified":"2022-10-27T18:27:32","modified_gmt":"2022-10-27T18:27:32","slug":"how-to-add-a-php-info-file-to-view-php-settings","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2022\/10\/27\/how-to-add-a-php-info-file-to-view-php-settings\/","title":{"rendered":"How to Add a PHP Info File to View PHP Settings"},"content":{"rendered":"\n<p>This article describes how to add a PHP Info page to easily view PHP settings on you dedicated , cloud, VPS or Shared Hosting server.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>You can use a file manager in your cpanel or a text editor to add the following code. In this example, we are adding the file on the server with the nano editor.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n$ sudo nano \/var\/www\/html\/info.php\n<\/pre><\/div>\n\n\n<p>Add the following to the file. Save and close.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\n&lt;?php\n\n\/\/ Show all information, defaults to INFO_ALL\nphpinfo();\n\n\/\/ Show just the module information.\n\/\/ phpinfo(8) yields identical results.\nphpinfo(INFO_MODULES);\n\n?&gt;\n<\/pre><\/div>\n\n\n<p>Now you can view the file at http:\/\/ipaddress<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-27_13-24-51.png\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"854\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-27_13-24-51.png\" alt=\"\" class=\"wp-image-7002\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-27_13-24-51.png 947w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-27_13-24-51-300x271.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-27_13-24-51-768x693.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/a><figcaption>PHP Info Page from Geekdecoder<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This article describes how to add a PHP Info page to easily view PHP settings on you dedicated , cloud, VPS or Shared Hosting server.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[134,138,140],"class_list":["post-7001","post","type-post","status-publish","format-standard","hentry","category-php","tag-apache","tag-hosting","tag-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=7001"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7001\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=7001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=7001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=7001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}