PHP is a widely used coding language with many environmental variables that may be adjusted as needed. There are many times during web development that you may need to check the PHP settings for your site or to see if a particular extension or module is installed.
You can do this by running a script that calls the phpinfo() function. Here we cover the steps to create a phpinfo page that can be viewed in your web browser.
Related Articles
Getting Started with cPanel
Create File in File Manager
Find the Document Root of a Domain
Create phpinfo Page
- Log into cPanel
- Navigate to File Manager, located under the Files section
- Navigate to the domain's document root
- Create a new file named phpinfo.php
- Right-click the newly created file and click Edit
- Add the following code
<? phpinfo(); ?>
- Click the Save Changes button
- View your PHP settings by navigating to http://domain.com/phpinfo.php in your web browser
REPLACE: domain.com with your actual domain.