Question
How do you use a PHPInfo file for troubleshooting PHP issues?
Answer
The phpinfo() function is invaluable for getting information about what is happening with the PHP configuration and loaded modules.
Find the document root for your domain. You can do this in cPanel by clicking on the Domains icon and checking the table where your domain is listed.
Create a file named phpinfo.php with the following contents inside of your domain's document root:
CONFIG_TEXT: <?php
phpinfo();
Then visit the file and view the contents:
http://domain.tld/phpinfo.php
Note: You will want to replace domain.tld with the domain
You may also want to verify that the domain is pointed to your server's IP address. You can learn how to check this in the following resource:
Comments
0 comments
Article is closed for comments.