Why install Mautic with Composer instead of a ZIP
If you are about to stand up a self-hosted Mautic instance, the install method you pick now affects every upgrade you run later. Composer, using the recommended project template, is the route the Mautic documentation points to. The project has supported Composer installs using that template since version 4.0, and the Mautic 5 line makes it the default. For most teams, that means starting from the Composer project rather than unpacking a ZIP, because Composer records the dependencies Mautic needs and gives you a repeatable way to update them. Mautic supports three paths: the production package installed with either the web installer or the command-line installer, Composer, and a clone from GitHub for local development. Only the Composer path and the production package are relevant to a production deployment, and the GitHub clone is for developers working on Mautic itself.
Before you choose, confirm that your host can run the Composer project. The PHP version, database engine and web server must match the release line you plan to run, and Mautic 7.0 has its own list of supported PHP versions and database minimums. Those prerequisites are covered in detail on the server requirements page, so check them there before you start. The main decision on this page is whether your team will run upgrades through Composer. If it will, use the Composer project from the start and ask your team to document the exact command used to update dependencies. If your organization requires the production package for change control, confirm with Mautic's release notes which installer and upgrade steps apply to that package on the version you select.
Record your choice in the runbook with the Mautic version, the PHP version, the install method and the person who owns upgrades. Mautic's release cadence includes monthly patch releases, so an install method nobody maintains will drift behind the supported line. The Mautic releases page lists which versions still receive security support, and that list should drive your upgrade calendar rather than the day you first installed.
Web installer, command-line installer or Composer: which fits
This table compares the production package with the web installer, the command-line installer and the Composer project template by who runs each one, how repeatable it is, how well it fits automated pipelines, and what to confirm first. Match your team's skills and deployment process to a column to find your fit. The main takeaway is that Composer is the recommended route since Mautic 4.0, and GitHub installs are for local development only.
| Factor | Web installer | Command-line installer | Composer project template |
|---|---|---|---|
| Starting point | Production package, per the installation docs | Production package, per the installation docs | Recommended project template since version 4.0 |
| Who typically runs it | Administrators who prefer a browser-based setup on the server | Engineers or administrators working over SSH on a server they control | Engineers comfortable with Composer and a build or deployment workflow |
| Repeatability | Steps are completed by hand in a browser, so each instance is set up manually | Commands can be recorded and rerun, but the operator still supplies the choices | Project and dependency declarations live in files that can be version controlled and rebuilt |
| Fit for automated pipelines | Poor fit, because the setup depends on an interactive browser session | Workable in scripts, once the installer options are scripted and tested | Best fit, because the install is driven by commands and project files |
| Post-install cron and workers | Set up the cron jobs and queue consumer the docs describe | Set up the cron jobs and queue consumer the docs describe | Set up the cron jobs and queue consumer the docs describe |
| GitHub source | Local development only; production uses a release package or Composer | Local development only; production uses a release package or Composer | Local development only; production uses a release package or Composer |
| What to confirm | The web server user can write where the installer needs, and the installer is reachable from your browser | The exact command options for your chosen release in the installation docs | The Composer version, project template and PHP and extension requirements for your release |
How to install Mautic with Composer step by step
This sequence takes a prepared server to a working Mautic instance installed from the recommended Composer project, with each step closed by a check that confirms it finished correctly before the next one starts.
Confirm PHP and database prerequisites
Before anything is downloaded, confirm that the release you plan to install supports your PHP version and database. Mautic 7.0 requires PHP 8.2, 8.3, 8.4 or 8.5, MySQL 5.7 or higher with InnoDB, or MariaDB 10.2 or higher, and it needs npm from Mautic 5.0 onward. Check the requirements page for the exact release you pick, because support windows differ by line. Your server administrator should run the PHP version and extension checks on the host itself. The step is done when you have written down the PHP version, database engine and version, and a working npm, all confirmed on the target server rather than on a workstation.
Confirm PHP limits and file permissions
Set the PHP execution time, memory and upload limits and confirm the web server user can write to the directories Mautic needs before the installer runs. The installer is sensitive to these settings, and fixing them later is more disruptive than fixing them now. The sibling topics on PHP limits and web server file permissions cover the exact values and commands. The check is a simple PHP information page or command-line query that shows the effective limits, plus a test write by the web server user into the project directory.
Create the project directory and document root
Create a project directory outside the public web root, then point the web server document root at the public subfolder that the Composer project produces. Keep the database and secrets on the server side of this boundary. The install is typically run by a deployment engineer with root or sudo access, working through a non-root account that owns the project files. The check is that the web server returns a response, even an error page, from the document root, and that the directory structure matches what the Composer project creates.
Run the Composer install from the recommended template
From the project directory, run Composer with the Mautic recommended project template as documented in the installation guide, running as the same user that owns the project files so ownership does not need fixing later. Composer resolves the dependencies, including the Marketplace dependency, and writes the vendor directory. Watch for dependency conflicts or missing PHP extensions in the output and resolve them before continuing. The check is that Composer exits without errors and the vendor directory and the Mautic application files are present in the project.
Complete the web or command-line installer
Finish setup either through the browser-based web installer or through the command-line installer. Provide the database host, name, user and password, the site URL, and the first administrator account. The database user should already have the privileges set during database preparation. The web installer suits a single-operator setup, while the command-line installer suits repeatable builds. The check is that the installer reports success and writes its configuration file, with no database connection or permission errors in the output or logs.
Apply post-install configuration
After installation, complete the steps that keep the instance running: set up the cron jobs for segment updates, campaign updates and triggers, and the broadcasts command, staggering the schedules as the documentation advises, and configure the messenger consumer if email is queued. Confirm that the site URL and any trusted proxy settings match how users will reach the instance. The check is that each scheduled job runs once manually without errors and that the log shows it completed, which avoids discovering a silent failure after the first campaign goes live.
Verify the instance and admin login
Load the public site and the admin login page over the address users will use, then sign in with the administrator account created during setup. Confirm that the dashboard loads, that a test contact can be created, and that the admin account can change its own settings. Also check the web server and PHP logs for warnings. The sequence is complete when the admin login works, the dashboard renders without errors, and the logs are clean, at which point the instance is ready for the server configuration and security topics that follow.
The post-install steps that decide whether Mautic runs reliably
The installer finishing does not mean Mautic is ready to run campaigns. Several post-install steps are operational dependencies, not optional extras, and skipping them produces failures that look like success. The first is the site URL and proxy configuration. If Mautic sits behind a load balancer or an SSL-terminating proxy, the trusted proxy and trusted host settings and the site URL must match the public address, or generated links, tracking URLs and SAML redirects will point at the wrong place. Confirm these values against the reverse proxy section of this guide before you hand the instance to marketing.
Next, configure cron jobs. Mautic relies on scheduled commands to recalculate segments, update campaigns and trigger campaign steps. The Mautic cron documentation says these jobs should be staggered rather than all started at the same minute, so that one long-running job does not block the others. Add the broadcasts command for segment emails, and if your instance queues email, run a messenger consumer as a long-running process. Each of these needs a schedule, a log location and a check that it runs as the correct system user, because a missing job rarely raises an error in the interface.
The failure mode is silent. A campaign with a time-based step can sit idle, a segment can show stale membership, and a broadcast can appear to send while nothing leaves the queue. Before go-live, ask your implementer or internal team to confirm each job's last run time, its exit status and its log output, and to test one campaign end to end with a seed contact. Record who owns these jobs after handover, since the Mautic cron documentation treats them as part of normal operation and they will need attention through every upgrade.
Security settings to lock down after the first install
Once Mautic is running from its Composer project, several settings decide whether the instance stays under your control. The cards below cover access, file exposure, write permissions, dependency change control and database credentials. Treat each one as a check to confirm in your own environment before marketing data goes live.
Restrict admin accounts
Review every user account in Mautic and remove or downgrade accounts that no longer need administrator rights. Confirm that each remaining admin has a named owner and a documented reason for access. Mautic authenticates users with basic authentication or a SAML identity provider. If you use SAML, confirm that the identity provider sends the email, first name and last name attributes Mautic requires. The docs describe no LDAP option, so plan your directory integration around SAML or local accounts.
Mautic authentication docsEnable single sign-on with required attributes
Decide between basic authentication and SAML single sign-on before users start working in the instance. With SAML, a missing email, first name or last name attribute can block sign-in or leave user records incomplete, so test with a real identity provider configuration before rollout. Confirm who manages the identity provider, how deprovisioning works when someone leaves, and whether local fallback accounts are kept for recovery.
Protect the install directory and config files
Confirm that the web server only serves the public directory of the Composer project and cannot return files such as the local configuration, environment files or anything under the vendor tree. Check this from outside the network with direct requests to known file paths. Also confirm that the installer or setup routes are no longer reachable once installation is complete, so no one can re-run setup against a live database.
Limit writable directories
Grant the web server user write access only to the directories Mautic needs at runtime, such as cache, logs and media upload locations, and keep application code read-only for that user. Confirm ownership and permissions after every deployment, since a broad chmod to fix an error often leaves code writable. Record the exact list of writable paths in your runbook so reviewers can check it against the server.
Keep the Composer dependency set under change control
The Composer project pins the Mautic core and its dependencies, so changes to composer.json and composer.lock change what runs in production. Store both files in version control, require review for changes, and run dependency installs from the locked versions rather than resolving fresh ones on the server. Confirm that any Marketplace plugin you add is listed with its source and owner before it is installed.
Secure database credentials
Create a dedicated database user for Mautic with only the privileges the application needs, and keep the password out of the web root and out of shared repositories. Confirm that the config file holding database settings has restricted read permissions and that backups of that file are protected the same way as the database. If the database runs on a separate host, confirm that network access is limited to the Mautic servers.
Questions teams ask before installing Mautic with Composer
Is Composer required to install Mautic, or is it just recommended?
Composer is the recommended route, not the only one. Mautic can be installed from the production package using the web or command-line installer, or from GitHub for local development. Composer uses the recommended project template, which has been supported since version 4.0. The Composer route is the default for current releases because it manages the dependency tree and makes later updates more predictable. Teams that already run a ZIP-based install should plan a migration rather than assume the two paths are interchangeable. Confirm the exact steps for your target release in the Mautic installation docs.
How long does a Mautic Composer install take, and what drives the time?
The install itself is usually the shortest part of the work. Duration is driven by the server and its prerequisites: whether the PHP version, extensions, database and web server are already in place, and whether the host meets the platform requirements. Other drivers include the number of environments (production, staging and test), the cron and queue setup, domain and SSL configuration, and how many people must review and approve each step. Ask any partner or internal team to break the estimate into preparation, installation, post-install configuration and verification, and to state which of those they have already assumed are complete.
What does our team need to provide for a Mautic install?
Your team needs to provide access and decisions, not just servers. Typical inputs include a server that meets the requirements, administrative access to the hosting environment, a database host and credentials, DNS control for the chosen domain, and an SSL certificate or the means to issue one. You also need a named owner who can approve the PHP and database versions, the release line you will stay on, and who holds the admin account. Plan for someone who can review cron schedules and the email transport, because both affect what works after go-live. Check the Mautic requirements page before you start so the server is ready when the work begins.
Can our own engineers install Mautic with Composer without a partner?
Yes, a capable platform or systems team can install Mautic with Composer, provided it has Linux administration skills, familiarity with PHP and web servers, and the ability to configure a database and scheduled jobs. The main risks for internal teams are version choices, file permissions, PHP limits and the post-install steps that are easy to skip, such as configuring cron. Internal teams should also consider who will perform future upgrades and who will respond when an update fails. Write down the release line, the owner, the runbook and the verification checks before the first install so the knowledge outlasts the person who did the work.
What does a fixed-scope Mautic installation from DeployOpen cover?
A fixed-scope engagement covers the work listed in a written scope agreed before work starts. For an installation, that typically means confirming the target server and release, installing Mautic from the Composer project, configuring the database and web server connection, setting up the required cron jobs and queue consumer where needed, and running verification checks. Deliverables and timelines are agreed in writing, so you know what is included and what is excluded, such as custom plugins, CRM integrations or data migration. Ask for the scope document to list each post-install step, who performs it and how completion is verified.
What does a quote for a Mautic Composer install depend on?
A quote follows from the written scope, so it depends on what you ask to be done and in what environment. The main drivers are the number of environments, the hosting model and how much of the server preparation is already complete, the number of integrations or plugins, the migration of existing contacts or a legacy installation, and the amount of post-install configuration such as cron, email transport and SSO. DeployOpen does not publish a price list. When you request a quote, ask what is one-time work and what recurs, such as monitoring, upgrades and retainer support, and ask for the assumptions behind each line.
Which Mautic release and PHP version should we install before starting?
Choose the release line first, then confirm the PHP, database and web server versions that line supports. Support windows differ by release, so check the Mautic releases page for current security and long-term support dates before picking a version. The Mautic requirements page lists the PHP versions, database engines and web servers each release needs. Confirm these details with the vendor and in your own environment before the install, because a version that is out of support at go-live creates upgrade work almost immediately.
How the install path and post-install dependencies fit together
The diagram starts with the three install methods, web installer, command line installer and Composer, which all need the same PHP, database and web server prerequisites before Mautic is installed. Once the instance exists, the post-install dependencies take over: cron jobs for segments and campaigns, the broadcasts command for segment emails, a messenger consumer when emails are queued, and SSO and proxy settings. Check each hand-off before going live, because a missing cron job or proxy setting fails quietly rather than at install time.
Install methods converge on shared prerequisites, then on post-install dependencies.
How DeployOpen scopes and delivers a Mautic install
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Mautic. For a Composer-based install, we agree the target release, PHP and database versions, server layout and post-install tasks in writing before any work starts.
How we scope
- Confirm the Mautic release line, PHP version and database engine against the current requirements before writing the scope.
- Record whether the web or command-line installer runs first, and who holds the Composer and Marketplace credentials.
- Agree which cron jobs, broadcast command and messenger consumer run on which hosts, with staggered schedules written down.
- Set out in writing what the fixed scope covers, what it excludes, and which deliverables and timelines apply.
How we build
- Provision the VPS or dedicated server in your cloud account or data center, not on shared hosting.
- Install the Composer project, configure the web server, file permissions and PHP limits, then run the installer.
- Configure the database connection, mail and cron entries, and test each scheduled job runs without errors.
- Test login, the admin interface, tracking script loading and a test email send before handover.
How we hand over
- Document the install path, file layout, versions, cron schedule and every configuration value we changed.
- Walk your platform and security teams through the setup and the steps needed for future Composer updates.
- Deliver a record of the post-install checks, with the results and any open items assigned to an owner.
- Confirm which secrets, backups and access accounts you hold and where each is stored.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to keep the install current.
- Plan upgrades between Mautic release lines against the published support dates for each version.
- Retest after each upgrade, PHP change or infrastructure change that touches the Mautic install.
- Quote recurring support separately from the one-time install, based on the written scope and your chosen cadence.

