Why a Mautic 4 to 5 upgrade is a planning task now
A self-hosted Mautic 4 install needs a planned move to the 5.x line before paid Extended Long Term Support ends on 31 December 2026. The move is not a quick in-place change. Mautic 4.4, the last 4.x release, runs on PHP 7.4 and 8.0 and receives security fixes only through paid Extended Long Term Support until that date. Mautic 5.0 supports PHP 8.0 and 8.1, so the PHP version, the application code and the server stack all change together, and each one needs its own test before cutover.
The work starts with a version map rather than a file copy. Confirm which PHP version your server runs today, which Mautic patch level you are on, and whether every installed plugin and theme has a release that supports Mautic 5 and your target PHP version. Two changes catch teams that only read release notes: Composer becomes the install and update method from Mautic 5, and the local configuration file moves to config/local.php from app/config/local.php. npm is also required from Mautic 5.0, so the build host and the web server need Node tooling that the Mautic 4 install never used. Ask your provider or in-house team to list each of these changes against your current install before estimating effort.
Mautic 6.x and 7.x are covered on sibling pages, so this page stops at the 5.x line. Plan the 5.x move as a tested step, starting with a restored copy of production on separate infrastructure, and treat the copy's results as the input to the production date. Check the Mautic releases page for current support dates on each line before fixing a schedule, because the end dates that matter to your decision are the ones published there at the time you plan.
What changes from Mautic 4 to Mautic 5
This table compares the Mautic 4.4 and Mautic 5 lines on the requirements that most often block an upgrade. Read each row as a question about your current install: if the Action column describes work you have not started, that item sits on your critical path. The main takeaway is that the PHP floor, npm and the config path change at the same time as the install method, so plan them together.
| Change | Impact | Action needed |
|---|---|---|
| PHP version floor | Mautic 4.4 runs on PHP 7.4 and 8.0. Mautic 5.0 supports PHP 8.0 and 8.1, so PHP 7.4 is dropped. | Confirm your current PHP version and the extensions your plugins require, then plan the PHP upgrade before the Mautic upgrade. |
| npm required | npm is required from Mautic 5.0 onward, so a host that only ran PHP and Composer for Mautic 4 needs Node tooling added. | Confirm npm is installed on the build host and that your deployment process can run it. |
| Composer as default install and update method | Composer became the default method for installing and updating Mautic with Mautic 5, replacing the package-based approach your Mautic 4 install may use. | Review your current install method and plan the switch to Composer on a copy of the install before changing production. |
| Config file location | Mautic 5 keeps local.php in config/local.php instead of app/config/local.php, so settings in the old path will not be read after the move. | Move your local.php settings to config/local.php, then check plugin and custom code for hard-coded paths to the old location. |
| Plugin compatibility | Plugins written for Mautic 4 may depend on the old config path, the PHP 7.4 or 8.0 runtime or code removed in the major release. | List every installed plugin and confirm a Mautic 5 compatible version exists or that your in-house plugin is updated. |
| ELTS status of Mautic 4.4 | Mautic 4.4 receives security fixes only through paid Extended Long Term Support until 31 December 2026, so staying on 4.4 carries a cost. | Ask the Mautic project or your provider what the ELTS terms cover, and set your move off 4.4 against that date. |
Which breaking changes and deprecations hit a Mautic 4 install
The breaking changes that matter most on a running Mautic 4 site are the move of the local configuration file, the change of install method to Composer, and the new npm build step. Mautic 5 keeps its local settings in config/local.php instead of app/config/local.php, so any tooling, deployment script or backup job that reads or writes the old path will fail or silently use defaults after the upgrade. Start by listing every place your environment references app/config/local.php, including configuration management, container images and runbooks. Mautic 5 also makes Composer the default method for installing and updating, so a server that was installed from the production package needs a deliberate conversion plan before the code moves. The Mautic switch to Composer documentation describes that path, and your team should confirm which steps apply to its current install.
The npm requirement is the change most often missed in planning, because Mautic 4 did not need Node tooling to build its front-end assets. npm is required from Mautic 5.0 onward, so the build host, deployment pipeline and any locked-down server image must be able to install and run it. Confirm with the Mautic requirements page which Node and npm versions the target release expects, and decide whether assets will be built on a build host and deployed or built on the web server during the upgrade window. Plugins and themes that ship their own front-end assets may have their own build steps as well.
The deprecations are not listed in the supplied material, so the only reliable inventory comes from the official release notes for Mautic 5.0 and the plugin update guide for Mautic 4 to 5. Read both before you touch the copy, then record each deprecation or removed class, method, event or configuration key in a table with the component that uses it, the owner and the fix. Run your custom plugins and themes against the target release on the copy and treat every warning in the logs as a work item. Where a deprecation has no fix yet, document the risk and the workaround so the decision to proceed is made explicitly rather than discovered in production.
How to prepare a Mautic 4 install before touching production
Preparation for a Mautic 4 to 5 move is mostly about having something to fall back on and knowing what you are moving. The cards below cover the copy you need, the extensions you depend on, the server the copy runs on, and the PHP and database versions the target release requires.
Back up the database and files
Take a database dump and a copy of the full Mautic file tree, including the media, docroot upload folders and any custom configuration, before anything changes. Store the backup somewhere separate from the server being upgraded and confirm that you can restore it onto a clean machine. A backup you have never restored is an assumption, so record who performs the restore and how long your team needs to complete it.
Inventory custom plugins and themes
List every plugin and theme in use, with its source, version and owner. Mark which ones come from the Marketplace, which were written in house, and which have no maintainer any more. Each entry needs a note on whether it has been tested against Mautic 5, because plugins built for the 4.x line may not run unchanged on the target release. Unknown plugins are the most common source of delay in a major upgrade.
Mautic 5 plugin guideBuild a copy on a VPS or dedicated server
Restore the backup onto a server that matches production in PHP version, web server, database engine and cron setup, and run the upgrade there first. The Mautic project advises against shared hosting, so the copy should sit on the same class of VPS or dedicated server as production. Keep the copy's outbound email disabled or pointed at a test mailbox so that campaigns and broadcasts cannot reach real contacts during testing.
Mautic requirementsConfirm PHP and database versions
Compare the PHP version and extensions on the current install with the requirements for the release you are targeting, not the release you run today. Mautic 5.0 supports PHP 8.0 and 8.1, so a PHP 7.4 host must be upgraded before the move, and MySQL or MariaDB versions must meet the minimums published for the target release. Record the results in a table so the change control record shows exactly what was verified.
Requirements pageCheck npm and Composer availability
Mautic 5 moves installs to Composer and requires npm, so confirm both tools are installed on the copy server and that the web server user can run them. Check that the account running the upgrade has write access to the Mautic directories it needs and no more. Ask your team whether npm and Composer are permitted in your build pipeline, because some hardened hosts restrict them.
Switch to Composer guideRecord cron and queue settings
Export the current crontab and any worker or messenger service definitions. Mautic relies on cron jobs for segment updates, campaign triggers and broadcasts, and a messenger consumer when emails are queued. Note the schedule and the owner of each job so that the copy can be checked for duplicate or missing jobs after the upgrade, and so the jobs can be paused during cutover.
The Mautic 4 to 5 upgrade sequence with rollback points
This sequence moves a self-hosted Mautic 4 install to Mautic 5 on a tested copy first, so production changes only after each step has a check and a known way back. The result is a verified copy, a documented cutover and a rollback path for every stage.
Take a full backup before any change
Your team, with DeployOpen if engaged, takes a complete backup of the Mautic application files, the database and the uploaded assets, and records the current PHP, database and Mautic versions. Store the backup outside the server being changed and test that it can be restored to a separate host. Done means a restore of the backup to a scratch environment reaches a working login page, which gives you the first rollback point.
Clone production to a separate copy
Create a copy of the application, database and files on a separate host or environment that mirrors production's web server, PHP and database setup. Keep the copy disconnected from live email transports, CRM connectors and webhooks so test runs cannot send messages or push data to real systems. Done means the copy loads, the database matches the source at the time of the clone, and outbound connectors are switched off or pointed at test endpoints.
Move the copy to a supported PHP version
On the copy only, change PHP to a version that Mautic 5 supports, which the Mautic requirements page lists as PHP 8.0 or 8.1 for the 5.0 line, and confirm the required extensions are present. Then load the Mautic 4 site to confirm it still runs on the new PHP version before any other change. Done means the existing site loads and the PHP error log shows no fatal errors, so any later failure can be traced to the Mautic change alone.
Migrate the install to Composer
Install the Mautic 5 project with Composer, which became the default install and update method with Mautic 5, then carry over the application configuration, uploaded assets and installed plugins into the new project layout. Confirm the Composer lock file resolves without conflicts and record the exact package versions. Done means composer install completes on the copy and the project tree matches the agreed layout, which is the second rollback point.
Move local.php into config/local.php
Relocate the local configuration file from app/config/local.php to config/local.php, as Mautic 5 expects, and check the database, mailer and site URL settings that were read from it. Remove the old file only after the new one is confirmed, so the original remains available for rollback. Done means the copy starts with the new path, and a configuration check shows the database and mailer settings resolve from config/local.php.
Install npm and build the assets
Install Node.js and npm, which Mautic 5 requires, then run the dependency install and asset build the Mautic documentation describes for your release. Confirm the build output is present and that the web server serves the compiled assets without errors in the browser console. Done means the admin interface renders with correct styling and scripts, with no missing asset errors.
Run the update and cache steps
Run the Mautic database update and cache clear commands from the command line as the web server user, then review the output for failed migrations. Confirm that cron-driven tasks are not running against the copy during this step. Done means the update reports no errors, the cache is rebuilt and the application logs contain no new fatal errors, which is the point to decide go or no-go for production.
Test plugins, email and cron on the copy
Test every installed plugin and integration, send test emails through the production transport settings pointed at a test mailbox, and run the segment, campaign and broadcast cron jobs manually to confirm each completes. Verify SSO login and the HubSpot or Salesforce connection if they are in use, using test records. Done means each test has a recorded result, and any failed plugin is either fixed or assigned a rollback decision before cutover.
Which install method fits your Mautic 5 move
The production package can be installed with the web installer or the command-line installer. This is the route many existing Mautic 4 sites already follow, so it is the one teams are most likely to be moving away from during a 5.x upgrade. Mautic's switch to Composer documentation covers the move from package installs. Packages keep the install self-contained, but updates depend on the package tooling rather than a dependency file that lists every library.
- Familiar steps: The team that installed Mautic 4 can recognize the layout and the installer prompts.
- Update path: Future updates follow the package update commands, so the team must track which release it runs.
- Plugin checks: Plugins installed by hand need a review against Mautic 5 before the switch.
- Lower tooling needs: No Composer knowledge is needed for the server itself, but the team must still manage PHP and npm.
- Migration cost: Moving from a package install to Composer is a separate, planned step that should be scoped in writing.
Before choosing this route, confirm with your team whether the package method will remain supported for the release line you plan to run.
Composer became the default method for installing and updating Mautic with Mautic 5, and the recommended project template is the route Mautic's own documentation describes. Dependencies, including the Mautic core and plugins, are declared in files Composer reads, so the installed versions can be reviewed, committed and repeated on another server. Mautic 5 also keeps local configuration in config/local.php, which is part of the same project layout.
- Default path: Mautic 5 and later releases are designed around Composer, so this is the least exceptional option.
- Repeatable updates: Version constraints are recorded, which makes it easier to test an upgrade on a copy and then repeat it on production.
- Plugin management: Plugins are pulled as dependencies, so their versions are visible in one place.
- Config location: Local settings live in
config/local.php, so backups and deployment scripts must target that path. - Ownership: Someone must own the lock file and review dependency changes during each release.
Before committing to this route, check that your deployment tooling can run Composer as the web server user and that a copy of the project can be restored from version control and a database backup.
Installing from the GitHub repository is intended for local development rather than production. The repository is licensed under GPL-3.0 and gives developers the source code, branches and pull requests they need to build or test changes. A checkout does not come with the same production packaging as the release download, so it is not the right base for a live marketing system that must receive dependable updates.
- Development use: Useful for building or debugging plugins against Mautic 5 on a local machine.
- Branch risk: Development branches can change between checkouts, so production must not track them.
- Dependency setup: The team must install dependencies and build front-end assets with npm, which is required from Mautic 5.0.
- Support boundary: Production issues on a checkout are harder to reproduce against published releases.
- Separation: Keep the checkout on a development machine and deploy production from a tagged release.
Before using a checkout for any work that touches production, confirm with the Mautic project which tag or release matches your target version.
How plugins, cron jobs and email queues are checked after the move
Plugin compatibility is the part of a Mautic 4 to 5 move most likely to surprise a team, because it is checked against two things at once: the PHP version and the new configuration path. Custom and third-party plugins need to be confirmed against PHP 8.0 and 8.1, the versions Mautic 5.0 supports, and against the move of local.php from app/config/local.php to config/local.php. Any plugin that reads or writes the old path, or that depends on PHP behavior removed in a later version, will fail quietly rather than at install time. Ask each plugin vendor for a written statement of the Mautic 5 versions and PHP versions they have tested, and for in-house plugins, run the full set of enabled features on the copy and log every error in the Mautic and PHP logs.
Cron jobs are the second check, and they are easy to lose during a move because the copy may not have the same scheduler entries as production. Mautic relies on jobs that update segments, update campaigns and trigger campaign events, and the docs say these should be staggered so they do not all run at the same moment. The broadcasts command also has to run for segment emails. Confirm on the copy that each job is registered under the web server user, that the schedule is staggered, and that each run completes and writes a result you can see. If queued email is in use, confirm that the messenger consumer is running on the copy and that messages move from queued to sent, since an email queue that stops draining often looks like a working system until the next campaign send is missed. Review the Mautic cron jobs documentation against your own schedule before cutover.
What makes a Mautic 4 to 5 upgrade take longer
This table lists the factors that change how much work a Mautic 4 to 5 move involves, the effect each one has, and what to request in a quote. Read each row as a question to answer about your own installation before you ask for a scope. The main takeaway is that plugin inventory, integrations and the number of environments to rebuild usually matter more than the core upgrade steps themselves.
| Driver | Effect on work | Ask for in a quote |
|---|---|---|
| Number and age of custom plugins | Each in-house plugin may need PHP 8 fixes, the config/local.php path and a check against Mautic 5 changes before it runs. Older plugins often need the most rework. | A plugin inventory with owner, last commit date and PHP version, and a per-plugin compatibility check |
| Theme changes | Custom themes and template overrides may break on Mautic 5 markup or asset changes and need visual testing on each page type. | A list of themes and overrides, and whether visual regression testing is included |
| Database size and migration time | Larger databases lengthen the backup, the copy used for rehearsal and the update run, and make rollback slower to test. | Current database size, backup method, and the expected rehearsal runs on a copy |
| HubSpot or Salesforce integration | Each CRM plugin must be confirmed against Mautic 5 and its credentials, field mappings and sync schedules re-tested end to end. | Which CRM plugins are active, their versions, and a test plan for contact and point-trigger sync |
| SAML single sign-on setup | The identity provider must still send email, first name and last name attributes, and login flows need testing after the move. Basic authentication users need a separate check. | Confirmation of the identity provider configuration and who can approve the SSO test |
| Email transport configuration | Sending transports, bounce handling and cron-driven queues must be verified so that campaign and broadcast email still sends after the update. | Transport type, sending domain setup, and a test send plan across providers in use |
| Number of environments to rebuild | Each environment (test, staging, production) needs its own Composer install, npm build, configuration and cron set. Rebuilding several adds work even when the steps are the same. | The list of environments, whether they are rebuilt or updated in place, and who owns each one |
Questions buyers ask before a Mautic 4 to 5 upgrade
What does a Mautic 4 to 5 upgrade cost?
The fee follows from the written scope, and DeployOpen does not publish a price list. The main cost drivers are the number of Mautic instances, the count and complexity of custom plugins and themes, how much PHP and server work sits underneath the upgrade, and how many environments need a tested copy. Ask any provider to separate one-time work (inventory, the copy test, the production cutover, documentation) from recurring work (patching, monitoring, support retainers), and to list each item it assumes you provide. Mautic 4.4 security fixes come only through paid Extended Long Term Support until 31 December 2026, so ask whether that cost belongs in your comparison too.
How long does a Mautic 4 to 5 upgrade take?
Duration depends mostly on plugins and data rather than on the core upgrade itself. Each third-party or in-house plugin needs a compatibility check, and any plugin that does not yet support Mautic 5 may need a fix, a replacement or a decision to drop it. Database size, the number of queued emails and the length of your cron and worker schedule also affect how long the copy test and cutover take. Ask for a timeline that lists the plugin review, the copy test rounds and the change window as separate steps, so you can see which step is driving the total.
What must our team provide before the upgrade starts?
Expect to provide administrative access to the server, the database and the Mautic admin area, plus a current backup you have verified can be restored. You will also need a complete list of installed plugins, themes and custom code with their versions and owners, and a named person who can approve decisions about plugins that fail. Agree change windows in advance, because cron jobs, campaign triggers and queued email must be paused or checked during cutover. Confirm whether your PHP and web server versions can be changed and who approves that.
Can our internal team run the Mautic 4 to 5 upgrade alone?
Yes, if your team has Linux administration skills, comfort with Composer and the command line, and someone who can read and fix PHP plugin code. The Mautic documentation covers the switch to Composer as the install method, the move of local.php to config/local.php, and the npm requirement from Mautic 5.0. The harder parts are usually plugin compatibility and testing on a copy before production, because those need time and a rollback plan. Many teams split the work: internal staff handle access, backups and change windows, while a specialist handles the plugin review and copy test.
What happens if the copy test fails?
A failed copy test is useful information, and production stays on its current version until the cause is fixed. Typical causes are a plugin that does not run on the target PHP version, a configuration key that moved to config/local.php, or an npm build step that did not complete. Each failure should be logged with the error, the component responsible and the chosen fix, such as updating the plugin, replacing it or removing a feature. Ask the provider how many retest rounds are included in the written scope and what happens to the timeline if a plugin needs a rewrite.
Is the Mautic 4 to 5 upgrade a fixed-scope engagement?
Most DeployOpen engagements are fixed-scope, meaning scope, deliverables and timelines are agreed in writing before work starts. For this upgrade, the written scope should name the instances in scope, the plugins and themes reviewed, the environments that get a copy test, the cutover window and the handover documents. Anything found later, such as a plugin that needs a rewrite, should be handled as a documented change to that scope rather than an open-ended extra. Ongoing support, upgrades and continuous testing after cutover are available as retainers, so ask for them as a separate line in the quote.
How the copy, cutover and rollback path fits together
The path starts with the live Mautic 4 production instance, which gets a full backup before anything changes. That backup seeds a copy build where the team moves to PHP 8 with Composer, the config/local.php file, and the npm build that Mautic 5 requires. The copy then runs through plugin checks and cron job tests. Only a passing result should lead to cutover; a failure sends the team back to the backup, so production is never the test environment.
Copy build, test gate, cutover and rollback to the backup.
What to plan after Mautic 5 is running
Once Mautic 5 is running in your environment, the next decision is which supported line to move to and when. The researched dates give the window. Mautic 5.2 (Capella) receives security support until 30 June 2026, and Mautic 6.0 (Tabit) receives security support until 30 September 2026. A move from 5.x should therefore be sequenced against those dates, with a target release chosen before the earlier one lapses. Confirm the current release status on the Mautic releases page before you commit a date, because the project can publish changes to its schedule. The decision to make now is which line you will stay on for the next cycle, not only whether the upgrade succeeds.
Treat the upgrade as the first run of a recurring routine rather than a one-off project. Mautic publishes monthly patch releases, minor releases every three months and major releases every two years, so a team that waits for each major release will fall behind in small steps and then face a large jump. Set a standing owner, a calendar for reviewing release notes, a staging copy of the production instance, and a checklist that covers PHP version support, plugin and theme compatibility, the Composer update and a restore test of the backup. Ask your vendor or internal team to show how each routine step is priced or staffed, whether it recurs monthly, quarterly or per major release, and what changes if a plugin blocks an update.
What to confirm with the vendor and your environment
Before any Mautic 4 to 5 work starts, the team confirms what the current host runs, which Mautic release and plugins are in use, and whether a copy can be tested. The result is a written baseline that shows which requirements are met and which gaps must close first.
Record the current Mautic version and install method
The platform owner confirms the exact Mautic 4 release in use and whether it was installed from the production package or from a Composer project. Check the installed version in the admin area and the files on disk. Note whether plugins were added by copying files or through Composer. The step is done when the version, install method and owner are written in the project record.
Check PHP version and required extensions
The server administrator runs the PHP version command on the web host and lists loaded extensions, using the requirements page as the reference. Mautic 4.4 runs on PHP 7.4 and 8.0, while Mautic 5.0 supports PHP 8.0 and 8.1, so the host version must be confirmed against the target release. Record any missing extensions. The step is done when the PHP version and extension list are compared against the 5.x requirements and gaps are logged.
Compare database version with requirements
The database administrator confirms the MySQL or MariaDB version and the storage engine used by Mautic tables. Compare these against the requirements page, which lists the minimum versions and InnoDB support for the Mautic line in use. Check the version on the live database server, not only on the documentation of the hosting provider. The step is done when the version and engine are recorded and any gap has an owner for remediation.
Confirm web server type and configuration
The platform engineer identifies whether the site runs on Apache, Nginx or IIS and records the document root, proxy layer and domain settings. Mautic's requirements page lists these three web servers as supported, so confirm the exact type and version in use. Note any reverse proxy or load balancer in front, because it affects headers and cron access. The step is done when the web server details are documented and linked to the target environment.
Inventory plugins and themes for 5.x compatibility
The Mautic owner lists every installed plugin and custom theme, with its source, version and maintainer. For each item, check the vendor's release notes or the developer documentation for Mautic 5 support, and note whether the code uses the old app/config/local.php path. Custom in-house plugins need a separate review. The step is done when each item is marked compatible, needs an update, or has no path forward and needs a decision.
Confirm staging environment and copy access
The project lead confirms whether a staging server exists that matches production PHP, database and web server settings, and whether the team can copy the production database and files into it. Confirm who holds the credentials and whether the copy can include contact data under the organization's data handling rules. The step is done when a named staging target, access list and data handling approval are recorded.
Verify sources before the upgrade plan is fixed
The lead checks the Mautic releases page, the requirements page and the Mautic 5 plugin update documentation for the current support dates and requirements, because these pages change. Record the date of each check and the version numbers quoted. Ask the plugin vendors for written 5.x support statements. The step is done when every version and date in the plan is traced to a dated source and the open questions list is empty or assigned.
How DeployOpen scopes and delivers a Mautic upgrade
DeployOpen treats a Mautic 4 to 5 upgrade as a written, fixed-scope change to your own infrastructure, starting with an inventory of your PHP stack, plugins and installed install method. Work is tested on a copy of your instance before any change reaches production, and the handover covers what your team needs to run the upgraded system.
How we scope
- Inventory your current Mautic 4 version, PHP version, database, web server and whether the install is package-based or Git-based.
- List every plugin and custom integration, noting which need PHP 8 and npm compatibility checks before the upgrade starts.
- Agree the written scope, deliverables and timeline in advance, with the upgrade path and test copy named explicitly.
How we build
- Move the install to the Composer-based project layout and confirm the new config/local.php location is populated correctly.
- Set up npm alongside Composer, since npm is required from Mautic 5.0, and verify the front-end assets build on your server.
- Run the upgrade on a copy of production, then test contact imports, segments, campaigns, cron jobs and email sending before cutover.
How we hand over
- Document the final server configuration, PHP settings, cron schedule and the commands your team uses for future updates.
- Record the test results, plugin decisions and any remaining items, so your compliance and security reviewers can check the change.
- Walk your administrators through the upgraded install and the rollback steps kept from the pre-upgrade backup.
How we support
- Ask whether ongoing support, upgrades and continuous testing fit your needs as a retainer after the fixed-scope work ends.
- Plan the next upgrade step with your team, since the Mautic release line and its support dates decide the timing of later moves.
- Confirm with the Mautic releases page which support windows apply to your version before agreeing a retainer scope.

