Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  How-Tos  >  Creating phpinfo page
Top Scroll

Creating phpinfo page

 2 min

How to create a phpinfo Page

If you don’t know how to create a php page, here are the steps that can help you to create a phpinfo page using your File Manager.

Step 1: Log into your cPanel.

Step 2: Open your File Manager.

Step 3: Navigate to the directory you are working on. Keep in mind that each folder can actually be set to have different php settings. In the example below, we can see the php settings for our main domain, so we are navigating to the public_html folder.

Step 4: In the top menu, click New File.

Step 5: When asked for the file name, enter phpinfo.php (it can actually be renamed as per requirement, phpinfo.php is simply a common name for the file).

Step 6: Find the phpinfo.php file in the list of files (it should have automatically updated). Right-click on it and choose “Edit”. If you see a “Text Editor” prompt, choose

“utf-8” from the drop-down list and then click “Edit”.

Step 7: Enter the following text:

<? phpinfo(); ?>

Then click Save Changes.

Related: Setting Your PHP Settings in Command Line

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.