Nội dung
Check PHP information with File Info in 3 very simple steps
Introduction
When you install software or a website, all of them will have a specific request from the server (Host/VPS), and only when those requirements are met will your software or website can only work. So how do we know whether or not our server has enough components, modules, etc., that the website needs? What should we do?
And to make it easier for you to imagine, for example, I need to install a WordPress website here. First, you must look at the Requirements section that WordPress requires your server side to meet. And below are the Basic Requirements that the WordPress site requires.

Check PHP information with File Info
With File Info, you can view all information related to the server, such as:
- PHP version that the website is using
- Information about the options and extensions of the PHP version in use.
- Server info and environment (if compiled as a module)
- PHP environment
- OS information, path, key and local values of configuration options
- HTTP headers
Step 1: Create File Info
To create FIle Info, you will have many ways such as creating FIle via FTP Client or the simplest way is to create it directly through File Manager of Hosting/VPS. For example, here I am using Hosting with cPanel control, and now I will create File Info through cPanel ‘s File Manager.
First, you need to log in to cPanel, access the correct root directory (Document root) of the website to create the File, name the File info, and click Create New File.

Step 2: Edit File Info
After creating File Info, right-click on the newly created File and select Edit .

Next, copy and paste the code below into the File info above.
<?php
phpinfo();
?>
The structure when adding the code will be similar to the image below, after adding, click Save Changes .

Step 3: Check the result
After successfully creating and adding the code to File info, you can now go to any browser and access the path with the structure: https://ten_website.com/ten_file.php
And with the website name and File I just created, it will be: https://thegioibecon.com/info.php . If you access the content similar to the image below, it is successful.

So in this article, I showed you how to quickly create File Info to check PHP information and server information that your website is using so that you can know if this server configuration is available. Suitable from which I can adjust and add the necessary components to make the website more stable.