Contact sales@posahosting.com
Guides / Web Hosting Help / Publish a PHP info page

View PHP configuration with a phpinfo file

Need to confirm your PHP version, loaded extensions, or memory limits? A temporary phpinfo.php file prints everything PHP knows about the environment. Use it for troubleshooting, then delete it—exposed phpinfo pages are a security risk.

The steps below use the control panel file manager. SSH works too, but is not required.

1. Open your control panel

  1. Go to your panel URL in a browser. Common defaults: yourdomain.com:2083 for cPanel, yourdomain.com:2222 for DirectAdmin.

    PosaHosting customers

    Skip hunting for the URL—open the panel from My Account Services your hosting service.

  2. Sign in with the username and password from your welcome email.

  3. Open File Manager (cPanel) or File Manager under System Info & Files (DirectAdmin).

2. Add phpinfo.php in your web root

  1. Browse to the folder that serves your site—usually public_html or domains/yourdomain.com/public_html.

  2. Create a new file named phpinfo.php.

  3. Paste this single line, then save:

<?php phpinfo();

3. Load the page in your browser

  1. Visit https://yourdomain.com/phpinfo.php (replace with your real domain).

  2. You should see a long report: PHP version, loaded modules, upload_max_filesize, and other directives.

4. Delete the file when finished

  1. Return to File Manager, select phpinfo.php, and delete it.

  2. Leaving phpinfo public lets anyone map your stack—remove it as soon as you have the details you need.