A phpinfo.php file is a file that makes it easier for you to see PHP information about the server you are hosted on.
If you’re not familiar with how to create a php page, follow the steps below to create a phpinfo page using your File Manager.
- Log into your cPanel.
- Open your File Manager.
- Navigate to the directory you are working with. This is important because each folder can actually be set to have different php settings. In this example, we are viewing the php settings for our main domain, so we are navigating to the public_html folder.
- In the top menu, click New File.
- When prompted for the file name, enter phpinfo.php (it can actually be named anything, phpinfo.php is simply a common name for the file).
- Find the phpinfo.php file in your list of files (it should have automatically updated). Right click on it and choose “Edit”. If you see a “Text Editor” prompt, choose “utf-8” from the drop down list and then click “Edit”.
- Enter the following text: <? phpinfo(); ?>
Then click Save Changes.
While it doesn’t include version information about your database scheme, it does include version information about PHP, Apache/IIS, GD, and other things. It also contains a description of many important settings, which could possibly be causing problems with your php script installation.