Skip to content

How do I find PHP configuration information?

The best way to find the PHP configuration for your server is to create a phpinfo.php file.

  1. Create a file called phpinfo.php with the following contents:

    <?php
    phpinfo();
    ?>
  2. Upload phpinfo.php to your public_html folder.

  3. Visit the file in your browser at https://yourdomain.com/phpinfo.php (replacing yourdomain.com with your actual domain).

This will display the full PHP configuration for your account. Remember to delete the file when you’re done, as it exposes server information.