
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:
Plesk:
- Navigate to the File Manager under the Files section in your panel.
- Once you’re in the
public_html
directory, click the New File button. - Name your file
phpinfo.php
and press Create. - Scroll down and locate the new
phpinfo.php
file within the foler, then right-click to Edit. - 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
You can search the page for any loaded modules. Here we can see Memcached as an example: