In this guide, we’ll show you how to create a phpinfo page to view the current PHP settings for your hosting account. PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory.
Before you change these values, you must first be able to see what they are. To do that, you will need to create a phpinfo page. A phpinfo page shows you all of your php environment settings.
A phpinfo page is simply a page with the following PHP code:
<? phpinfo(); ?>
- How to Create a phpinfo Page
- How to View your PHP Settings
InMotion’s Shared Hosting solutions.
How to Create a phpinfo Page
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. You can also use an FTP program if you prefer.
- Log into your cPanel.
- In the Files section of your cPanel, open the File Manager option.
- 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 +File option to create a 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 code into the phpinfo.php file.
<? phpinfo(); ?>
- Then click Save Changes.
How to Change PHP Settings in your Hosting Account
Check out our Website Tutorials section for more helpful guides to help you build a successful site.#news