PHP extensions: how to check what’s available
What PHP extensions are, how to see which are loaded for your PHP version, and what to do when an application says one is missing.
On this page
Extensions add capabilities to PHP: talking to MySQL (mysqli, pdo_mysql), handling images (gd, imagick), international text (intl, mbstring), zip files (zip), secure connections (openssl) and more.
Checking what’s loaded
phpinfo: create a phpinfo file (How to check which PHP version your site is using) and scroll: each loaded extension has its own section.
A quick list:
<?php print_r(get_loaded_extensions());Checking one extension:
<?php var_dump(extension_loaded('intl'));bool(true) means it’s available. Delete test files afterwards.
Extensions differ by PHP version
Each PHP version has its own set. If an application reports a missing extension, check the version the domain uses — switching versions can change what’s loaded.
When an extension is missing
- Check whether the application actually needs it or merely recommends it. Site Health warnings in WordPress are often recommendations.
- Try another available PHP version and check again.
- If it’s genuinely required and unavailable, ask through the contact form (choose “Something only Traxio can do”) whether it can be provided, giving the extension name, PHP version and application.
Extensions can’t be installed from inside your account on shared hosting.
Choosing a host for a PHP project? Every Traxio account runs PHP 7.4 to 8.4 with a MySQL database: see PHP and MySQL hosting, £0.99 a month.
If it doesn’t work
These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.
- 500 Internal Server Error: how to fix itFind the real cause of a 500 error: read the error log, then check .htaccess, PHP errors, permissions and PHP version in order.
- Understanding PHP error messagesHow to read a PHP error: fatal errors, parse errors, warnings, notices and deprecations, what each means for your site, and where to look next.
- Blank white page: how to find the hidden errorA completely blank page usually means a PHP error that isn’t displayed. How to reveal it with logs and fix the cause.
Common questions
Which PHP extensions are available?
The common ones most applications need are present. The reliable way to check for a specific extension is to create a page calling phpinfo() and look for it, then delete the page again — it reveals more about your server than you want public.
Spotted something out of date or unclear? Tell us and we’ll fix it.