View all posts

How to create a phpinfo file

If you want to check your website’s PHP configuration, also known as phpinfo, you’re in the right place. Depending on the software you intend to run on your server, you may want to check whether your PHP configuration complies with its requirements.

Using the tools in your hosting control panel, we will show you how to create a phpinfo file and check its detailed information. Let’s get started!

Creating a phpinfo File

The easiest way is to use your hosting control panels file manager:

cPanel:

cpanel filemanager

Plesk:

plesk filemanager

  1. Navigate to the File Manager under the Files section in your panel.
  2. Once you’re in the public_html directory, click the New File button.
  3. Name your file phpinfo.php and press Create.
  4. Scroll down and locate the new phpinfo.php file within the foler, then right-click to Edit.
  5. Now, copy and paste the following code into the text editor and press Save.
<?php
phpinfo();
?>

Now you can browse the phpinfo.php file we just created: https://www.example.com/phpinfo.php

phpinfo.php

You can search the page for any loaded modules. Here we can see Memcached as an example:

phpinfo.php memcached

Related Articles...

Install LAMP

How to install LAMP Stack on Ubuntu 20.04

What is LAMP? The LAMP acronym stands for Linux, Apache, MariaDB/MySQL, and PHP, all of which are free and open source. It is the most commonly used software stack for dynamic websites and web applications. The operating system is Linux, the... Read more

This website uses cookies

We use cookies for the analysis of our visitor data, to improve our website, and to give you a great website experience. For more information about the cookies we use, please see our cookie policy.