- Log in to cPanel.
- Click on the File Manager.
- Navigate into the public_html folder.
- Click on the + File option.
- In the New File Name field, input “phpinfo.php”.
- Click Create New File.
- Right click on the “phpinfo.php” file you just created, and click Edit.
- In the popup menu that appears, click Edit.
- Paste in the following code, and click Save Changes: