Home Website Tutorials Check PHP information with File Info

Check PHP information with File Info

by Thạch Phạm

Check PHP information with File Info in 3 very simple steps


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

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.

Check PHP information with File Info
In number (2) you can name it arbitrarily, just the file name is in the form of ten_file.php.

Step 2: Edit File Info

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

Check PHP information with File Info

Next, copy and paste the code below into the File info above.


The structure when adding the code will be similar to the image below, after adding, click Save Changes .

Check PHP information with File Info

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.

Check PHP information with File Info
Here you will see information related to PHP and the server information that you are using.

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.

Đánh giá

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign