Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Check PHP extensions before an upgrade

Step by step - before a PHP or Exponential upgrade, list the PHP extensions the installation wants and which are missing on the target machine with exp:velocity ext check, compare with System information, and clear the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/tasks/operations/check-php-extensions-before-an-upgrade.md

On this page

Check PHP extensions before an upgrade

This task is for administrators preparing a PHP upgrade, a move to a new server or an Exponential upgrade. At the end you know which PHP extensions the target machine lacks and have the command to install them (Deploying, section 2).

Contents

  1. Before you start
  2. Steps
  3. Check it worked
  4. Related pages

Before you start

  • Shell access on the target machine (staging first).

Steps

  1. PHP version and extensions:

    php -v | head -1
    ./console exp:velocity ext check --allow-root-user

    The second lists every PHP extension the installation wants, marks what is missing and prints the install command for the system (for example sudo dnf install -y php-<name>). Missing optional extensions do not stop the site.

  2. The web server's PHP can differ from the command line's: open Setup > System information through the web server; the health checks PHP extensions (failure when a required one is missing) and Recommended extensions (curl, fileinfo, intl, xsl, OPcache, APCu, gd or imagick) cover it.

  3. Code that a newer PHP will refuse:

    sort var/log/deprecated.log | uniq -c | sort -rn | head

    Give the list to your developers; your own extensions are the usual source.

  4. Install what is missing, then restart PHP-FPM or Velocity so the extensions load.

Check it worked

  • ./console exp:velocity ext check --allow-root-user shows nothing missing for the features you use.
  • Setup > System information has no red PHP checks.
  • php -m | grep fileinfo (fileinfo matters for upload checks).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x