PHP/MariaDB/MySQL

PHP information

Updated November 2026 9,719 views 3 min read
PHP/MySQL | Updated November 2026

To view your PHP version, loaded extensions, configuration settings, and server environment, create a phpinfo file. This is the quickest way to check what PHP features are available on your hosting account.

01. Useful Information in phpinfo

  • PHP Version - At the very top. To change it, see How to Change PHP Version.
  • Loaded Extensions - Search for specific extensions like curl, gd, imagick, mbstring, mysqli
  • memory_limit - Current memory allocation. See Increase PHP Memory.
  • upload_max_filesize - Maximum file upload size. See Changing Max Upload Size.
  • Server API - Shows how PHP runs (LSAPI on our servers)
Delete After Use

Delete phpinfo.php immediately after checking. It exposes detailed information about your server configuration that attackers can use to find vulnerabilities. Never leave a phpinfo file on a production site.

For server paths (PHP, Perl, Python, ImageMagick, etc.), see Server Paths.

02. Check PHP Settings Without a phpinfo File

You do not always need to create a phpinfo file, and the cPanel tools are safer because they expose nothing to the public:

  • Select PHP Version - in cPanel, open "Select PHP Version" (or MultiPHP Manager) to see the active PHP version for each domain and a checklist of extensions you can turn on or off.
  • Over SSH - run php -v for the version and php -m for the list of loaded modules.

Reach for a phpinfo file only when you need a setting that cPanel does not display, and delete it as soon as you are done.

Need a PHP Extension Enabled?

If phpinfo shows a missing extension you need, see How to Request a Module or open a ticket.

Open a Support Ticket

Frequently Asked Questions

Is it safe to leave a phpinfo.php file on my site?

No. A phpinfo page lists your exact PHP version, loaded modules, file paths, and server settings, which is a roadmap for anyone looking for known vulnerabilities. Create it only when you need to check something, then delete it right away. Never leave one on a live site.

How do I check my PHP version without creating a phpinfo file?

In cPanel open "Select PHP Version" (or MultiPHP Manager), which shows the active version and lets you view and toggle extensions. Over SSH you can run php -v for the version and php -m for the loaded modules. These avoid exposing a public phpinfo page.

phpinfo shows an extension I need is missing. Can you enable it?

Many common extensions such as curl, gd, imagick, mbstring, and mysqli can be toggled per account in cPanel's "Select PHP Version" under the Extensions tab. If the one you need is not listed there, open a support ticket and we will check whether it can be enabled for your PHP version.

Why does phpinfo show a different PHP version than I expected?

Each domain and subdomain can run its own PHP version through cPanel's MultiPHP Manager, so the result reflects whichever version is assigned to the folder the file sits in. If it is wrong, set the version for that domain in MultiPHP Manager, or see our guide on changing your PHP version.

Quick Recap

  1. Create phpinfo.php with <?php phpinfo(); ?>
  2. Visit it in your browser to see full PHP configuration
  3. Check extensions, limits, and version
  4. Delete the file immediately after
  5. Use cPanel MultiPHP to change settings you need to adjust

PHP configuration reference · Last updated November 2026 · Browse all PHP/MySQL articles

Share: X in Reddit f Email
  • 351 Users Found This Useful

Was this answer helpful?

Related Articles

Cannot Connect to MariaDB MySQL Database

PHP/MariaDB/MySQL | Updated November 2026 The "Could not connect to the database" error means...

How to Manage Your Database with phpMyAdmin

PHP & MySQL | Updated July 2026 phpMyAdmin is the web tool every Ultra Web Hosting...

Learn About MySQL

Databases | Updated November 2026 MariaDB (the MySQL-compatible database server on Ultra Web...

I am having problems with a script I wrote

Scripts | Updated November 2026 If a script you wrote or installed is not working on your...

How to Add a User to a MariaDB/MySQL Database

PHP/MariaDB/MySQL | Updated November 2026 Every application that uses a database (WordPress,...



Save 30% on web hosting - Use coupon code Hosting30