How to Create phpinfo File and Check PHP configurations Using a Browser

Опубликовано: 17 Март 2026
на канале: HostMaria
2,821
11

This is a short video on how to create a simple #phpinfo file and how to check your #PHP configurations using a browser.

1) Go to the folder of your domain name - most often public_html
2) Create a new file and name is phpinfo.php
3) Right-click on this file and click to edit it - for the stackcp dashboard users it will be "Code Editor"
4) Copy and Paste the following 3 lines of the code from https://pastebin.com/YRdBz4k2 (or rewrite manually following the #tutorial on the screen) and press Save:
5) Now you will have a phpinfo.php file in the directory of your domain name
6) In a browser, type in your domainname and add /phpinfo.php and press enter

The same result can be achieved by using any text editor on your computer. Create the phpinfo.php file by following the same steps from before, then uploading the file to your server’s public_html folder through an FTP client.

If you are a StackCP dashboard user and don’t know how to configure an FTP client, such as FileZilla, here is a short tutorial on How to set up FTP:    • How to set up FTP at your StackCP dashboar...  

Best wishes,
Helmuts and HostMaria.com team