{"id":34233,"date":"2021-10-11T15:31:11","date_gmt":"2021-10-11T15:31:11","guid":{"rendered":"https:\/\/www.hostduplex.com\/kb\/?post_type=ht_kb&#038;p=34233"},"modified":"2021-11-02T16:53:44","modified_gmt":"2021-11-02T16:53:44","slug":"how-to-create-a-php-info-page","status":"publish","type":"ht_kb","link":"https:\/\/www.hostduplex.com\/kb\/article\/how-to-create-a-php-info-page\/","title":{"rendered":"How to Create a phpinfo Page"},"content":{"rendered":"\n<p>Follow the steps below to create a phpinfo page using your cPanel File Manager. This process can also be done using an FTP program if you prefer.<\/p>\n\n\n\n<p>1. Log in to your cPanel account<\/p>\n\n\n\n<p>2. Open the File Manager. You can find it by scrolling down to the Files section or using the search bar<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"251\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-1024x251.png\" alt=\"\" class=\"wp-image-34234\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-1024x251.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-300x74.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-768x188.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-50x12.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-60x15.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1-100x25.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-1.png 1387w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Navigate to the directory you are working with. For this example, we are viewing the PHP settings for our main domain, so we are navigating to the \u201cpublic_html\u201d folder<\/p>\n\n\n\n<p>4. In the top menu, click +File option to create a new file<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"371\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-1024x371.png\" alt=\"\" class=\"wp-image-34236\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-1024x371.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-300x109.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-768x278.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-50x18.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-1536x556.png 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-60x22.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-100x36.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2.png 1878w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5. Create a name for your file and add .php at the end. phpinfo.php is a common name for the file. Click Create New File<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">Note: Robots and hackers commonly look for filenames called phpinfo.php.  We recommend naming your file unique, such as <em>johns-phpinfo.php<\/em> file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-1024x577.jpg\" alt=\"\" class=\"wp-image-34571\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-1024x577.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-300x169.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-768x433.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-50x28.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-1536x865.jpg 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-60x34.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo-100x56.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/phpinfo.jpg 1704w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>6. You should now be able to see the file on your directory. Right-click on it and choose Edit<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1024x473.png\" alt=\"\" class=\"wp-image-34238\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1024x473.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-300x139.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-768x355.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-50x23.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-60x28.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-100x46.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4.png 1380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>7. If you see a \u201cText Editor\u201d window, choose \u201cutf-8\u201d from the drop-down list and then click Edit <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-1024x557.jpg\" alt=\"\" class=\"wp-image-34572\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-1024x557.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-300x163.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-768x418.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-50x27.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-1536x835.jpg 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-60x33.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2-100x54.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/ut8-2.jpg 1714w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>8. Enter the following code into the .php file and click the Save Changes button on the top right<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;? phpinfo(); ?&gt;<\/pre>\n\n\n\n<p>Great! You succesfully created a phpinfo page. If you created the file in your public_html folder, then you just need to add \/phpinfo.php (If you used a different name for your file, replace phpinfo with it) at the end of your website&#8217;s URL in order to see it<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yourdomain.com\/phpinfo.php<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-1024x574.jpg\" alt=\"\" class=\"wp-image-34573\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-1024x574.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-300x168.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-768x431.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-50x28.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-1536x861.jpg 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-60x34.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2-100x56.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/11\/cats-2.jpg 1678w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Follow the steps below to create a phpinfo page using your cPanel File Manager. This process can also be done using an FTP program if you prefer. 1. Log in to your cPanel account 2. Open the File Manager. You can find it by scrolling down to the Files section&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[20,163],"ht-kb-tag":[170],"class_list":["post-34233","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cpanel","ht_kb_category-wordpress","ht_kb_tag-phpinfo"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=34233"}],"version-history":[{"count":4,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34233\/revisions"}],"predecessor-version":[{"id":34574,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34233\/revisions\/34574"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=34233"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=34233"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=34233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}