Knowledge Base
MilesWeb / How-Tos

Creating phpinfo page

Approx. read time : 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

Avatar
Pravin is Journalist Specializing in Blogging, Social Networking and Community Management. As a constant learner, he is always aiming towards new ideas and greater knowledge. When he is not doing research, reading, or writing for blogs, you can find him hanging around social media sites.