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
Go to your panel URL in a browser. Common defaults:
yourdomain.com:2083for cPanel,yourdomain.com:2222for DirectAdmin.PosaHosting customers
Skip hunting for the URL—open the panel from My Account Services your hosting service.
Sign in with the username and password from your welcome email.
Open File Manager (cPanel) or File Manager under System Info & Files (DirectAdmin).
2. Add phpinfo.php in your web root
Browse to the folder that serves your site—usually
public_htmlordomains/yourdomain.com/public_html.Create a new file named
phpinfo.php.Paste this single line, then save:
<?php phpinfo();3. Load the page in your browser
Visit
https://yourdomain.com/phpinfo.php(replace with your real domain).You should see a long report: PHP version, loaded modules,
upload_max_filesize, and other directives.
4. Delete the file when finished
Return to File Manager, select
phpinfo.php, and delete it.Leaving phpinfo public lets anyone map your stack—remove it as soon as you have the details you need.