Home Website Tutorials Check PHP information with the info file

Check PHP information with the info file

by Thạch Phạm
Published: Last Updated on

Checking PHP information with the info file in 3 simple steps.


When installing software or websites, there are specific requirements from the server (Host/VPS), and only when those requirements are met, can the software or website function properly. So, how do we know if our server has all the necessary components, modules, etc. that the website requires?

To better illustrate, let’s say we need to install a WordPress website. Firstly, we need to check the Requirements section that WordPress demands from our server. Below are the basic requirements that WordPress needs.

Check PHP information with info file

Check PHP information with the Info file

With the Info file, you can view all information related to the server, such as:

  • The PHP version being used by the website
  • 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 the info file

There are many ways to create the info file. You can create it via an FTP client, or the easiest way is to create it directly via the File Manager of your Hosting/VPS. For example, here I’m using Hosting with cPanel control, and now I will create File Info through cPanel‘s File Manager.

First, log in to cPanel, then access the website’s root directory (Document root) where you want to create the File Info. After that, name the File Info and click Create New File.

Check PHP information with info file
In (2), you can name the file as you like, as long as the file name is in the format “file_name.php“.

Step 2: Edit info file

After creating the Info file, right-click on the file you just created and select Edit.

Check PHP information with info file

Next, copy and paste the code below into the info file.


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

Check PHP information with info file

Step 3: Check the result

After successfully creating and adding the code to the info file, you can now go to any browser and access the path with the structure: https://website_name.com/file_name.php

And with the website name and file you 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 info file
Here, you will see information related to PHP and the server information that you are using.

So in this article, AZDIGI has shown you how to quickly create File Info to check PHP information as well as server information that your website is using, so that you can know whether this server configuration is suitable or not, and from there, you can adjust and add necessary components to make the website operate more stably.

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

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