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...

How to sync server time

How to sync server time in CentOS & AlmaLinux

The NTP protocol synchronises the clocks of computers over a network. In this article, we will show you how to quickly sync the server time. Many systems-related tasks and processes require the correct timezone. For example, the cron daemon uses... 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.