f

Questions? We're happy to help

How do I create a phpinfo page?

You can easily generate an overview of the current active PHP environment variables by making a phpinfo.php file. This can be useful to check if applied settings are currently active. This is also useful for comparing settings with other hosting plans or other hosts.

A phpinfo file shows environment variables such as memory_limit, executing_time, max_input_vars, etc. You can also see which PHP version is active. In the steps below we explain how you can easily create and access the file.

Steps

Step 1. Create a new file named phpinfo.php in the root folder (root) of the website. In cPanel you can do this with File manager, for your main domain this is the public_html folder.

Step 2. Open the file by editing it.

Step 3. Add the following code:

<?php

phpinfo();

?>

Step 4. Save the file. If you now go to your domain name and add /phpinfo.php to the url you can reach the phpinfo page. Example: if your domain is neostrada.com, your url becomes neostrada.com/phpinfo.php .

Congratulations, you can easily view the PHP environment variables!

 

This knowledge base article was last updated on: 14 September 2018

Did this article help you?

Status

Visit our status page for an overview of recent malfunctions and maintenance.

Opening hours

Monday — Thursday 9:00 — 21:00
Friday 9:00 — 17:00
Saturday — Sunday 10:30 — 17:00