> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Create phpinfo Page in cPanel

A phpinfo page shows you all of your php environment settings.


A phpinfo page is simply a php page with the following code: _<? phpinfo(); ?>_


1) Login to cPanel and click on **File Manager**


![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/c4d32f28-4ef0-46fa-8645-1477b8d38601.png)


2) Navigate to the directory you are working with. 
This is important because each folder can actually be set to have different php settings. 
In this example, we are viewing the php settings for our main domain, so we are navigating to the **public_html** folder.

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/0359ff83-9a97-4980-a5cf-52473899b904.png)




3) Click on **+File** on the top menu

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/0d6a6896-8e95-436b-9348-c32d09329359.png)


4) When prompted for the file name, enter **phpinfo.php** (it can actually be named anything, phpinfo.php is simply a common name for the file).
Press **Create New File** to confirm.

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/b2e5627b-3b56-49d3-843e-fd8c1a4f1527.png)



5) Right click on your new phpinfo.php and choose "Edit". 
If you see a "Text Editor" prompt, choose "utf-8" from the drop down list and then click "Edit".


6) Enter the following text:

<? phpinfo(); ?>

Then click **Save Changes**


7) You can now access phpinfo page from your browser. 

If you created the file in your public_html folder, then you would visit http://yourdomain.com/phpinfo.php. 

The results should look similar to the below screenshot:

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/7bd2cb1a-d94b-4e78-a321-9184f29efb03.png)





