Installing SuiteCRM 8 from the command line

Running the SuiteCRM 8 console installer non-interactively gives staging and production the same starting point. This page covers the install options, database and site URL settings, and the checks that confirm a scripted build is sound.

On this page

Why teams install SuiteCRM 8 from the command line

If your staging and production SuiteCRM 8 environments must match, a scripted install is the safer way to build them. Clicking through the browser installer on each server leaves room for small differences in site URL, database settings and admin setup that are hard to spot later. The console installer, run through the suitecrm:app:install command, lets the same settings be written down once, stored in version control and replayed on every new environment. It also gives the platform team a record of exactly what was entered, which matters when an auditor or a security reviewer asks how a build was produced.

The console installer sets up the application from the command line using options you pass in, rather than answers typed into a web form. At a high level, a scripted run covers the site URL, the database connection, and the initial administrator account, after which the application is ready for the checks and configuration that follow. A scripted install fits best when you build several environments, rebuild after a failure, or hand the process to an operator who should not improvise. A browser install is still reasonable for a single evaluation instance where nobody needs to reproduce the result. This page walks through the option set, the order of steps, and how to verify the install, but it does not replace the release notes for your version. Confirm exact option names, required values and defaults against the SuiteCRM 8 release you run, using the SuiteCRM home page and the release notes linked from it before you build your scripts.

Which install options matter for a repeatable build

A scripted install is only repeatable if every environment passes the same settings for the same reasons. The groups below cover what a script has to supply, what breaks when those values drift between staging and production, and where the sensitive values should live.

Site URL and routing

The site URL is the address users and integrations reach, and it affects generated links, redirects and session cookies. A staging build that inherits a production URL can send notification links and password resets to the wrong host. Check that the URL in the script matches the reverse proxy, the TLS certificate and the document root for each environment, and confirm the exact option name in the SuiteCRM 8 installation reference for your version.

Compatibility matrix

Database host, name and port

The script must point SuiteCRM at a database host, schema name and port that exist in that environment. Drift here is easy to miss: a copied staging script can overwrite a production schema if the name is not environment-specific. Keep the host and schema name as explicit inputs, and confirm during every run that the target matches the environment the build is meant for before any tables are created.

Database user and privileges

The application database user needs enough privilege to run its own installation and upgrade steps, but a broad account used everywhere widens the blast radius of a leaked credential. Decide whether the installer creates the schema or only populates it, and give staging and production separate accounts. Confirm the privilege set against the install reference rather than copying a grant list from another project.

Admin account bootstrap

The installer creates the first administrator, and that account is the most privileged login in the system. A fixed username or password in a script is often reused across builds and eventually committed to version control. Generate the initial password per build, store it in the secret store, and plan to rotate it and enable stronger login controls once the first administrator signs in.

LDAP configuration reference

Locale and application settings

Language, time zone, currency and date formats are set at install time and shape how records, reports and scheduled jobs behave. A build that drifts on time zone can shift the timing of reminders and workflow runs between environments. Record these values as explicit inputs, compare them across builds, and review them against the business rules your sales and service teams rely on.

Secrets from the environment, not the script

Passwords, database credentials and application keys should reach the installer through environment variables or a secret manager, never as literal values in a script or a shared CI file. Hardcoded values end up in shell history, process listings and repository history, and they are hard to rotate. Keep the script free of secrets, restrict who can read the store, and confirm which values the installer reads from the environment in your version.

Install settings and when each one fits

This table maps each setting group in the SuiteCRM 8 console installer to what it controls and where a staging build should differ from production. Read it before writing your install script, then check each option against the release notes for the version you are installing, since option names and defaults can change between minor releases.

Setting groupWhat it controlsHow staging and production differ
Site URLThe public address SuiteCRM uses to build links, redirects and emails, so it must match the host users reach.Staging uses its own hostname and never sends production links; production uses the final HTTPS address that users and identity provider callbacks expect.
Database settingsThe database host, port, name and user that SuiteCRM connects to, along with the credentials it stores for later use.Staging gets a separate database and user so test data never reaches production; production uses a dedicated account with only the privileges the application needs.
Admin accountThe first administrator login created during install, which is the only account that exists before anyone else is provisioned.Staging can use a generated throwaway password; production should take the password from a secret store and rotate it once the install is verified.
Locale and languageDefault language, date and number formats, and time zone for the new instance.Confirm the locale and time zone match the business region in both builds so scheduled jobs and reports behave the same way in each.
Non-interactive flagsOptions that answer installer prompts so the same command runs unattended and produces the same result on each build.Keep one shared script with the same flags everywhere; only values such as host names and secrets should differ between environments. Confirm the exact option names with your release's installer help output.
Environment variablesRuntime values such as application secret, authentication type and storage settings, usually held in environment files outside the code.Staging can use relaxed or test values; production should load secrets from a protected source and must not commit them to source control. Confirm current variable names against the release notes.
Authentication typeWhether login uses the built-in account store, LDAP or SAML, which affects what the installer and environment must provide.Staging may start with local accounts for testing; production should match the directory or identity provider settings planned for the organization. Confirm the variable values in the LDAP and SAML configuration references.

How a scripted install fits the build pipeline

The flow starts with the release package and a compatibility check against the supported PHP, Apache and database versions. Next, the database is provisioned, then the console install runs with the same script in both staging and production, with only the environment inputs changing. The pipeline ends with smoke tests, and a failed check should stop promotion to production. Confirm the install options for your exact release with suitecrm:app:install --help before you build the script.

The same install script runs in staging and production with different inputs.

Scripting the install step by step

This sequence takes an empty server to a verified SuiteCRM 8 site that a script can rebuild. Each step ends with a check, so a fault shows up where it was introduced, before anyone signs in.

  1. Confirm versions against the compatibility matrix

    Your platform engineer checks the PHP, Apache and database versions on the build host against the SuiteCRM 8 compatibility matrix for the release you plan to install. The matrix lists PHP 8.2, 8.3 and 8.4, Apache 2.4, MariaDB 10.6, 10.11, 11.4 and 11.8, and MySQL 8.0 and 8.4 for SuiteCRM 8.10, so confirm the entries for your exact target release before pinning versions in the build. Run the version commands for PHP, Apache and the database server and save the output with the build record. This step is done when every component appears in the matrix for your target release.

  2. Create an empty database and a dedicated user

    The database administrator creates an empty database and a user that owns only that schema. The generated password goes into your secrets store and stays out of the install script. Confirm the character set and collation in the install guide for your release and apply them when the database is created. Check that the user can connect from the web server host, sees no tables, and cannot read or write other schemas. Only then move on to the application configuration.

  3. Set the document root and environment file

    The platform engineer points the Apache virtual host at the public directory of the SuiteCRM 8 package, enables the rewrite rules the release documents, and creates the environment file with the database host, database name, database user and site URL. Confirm the public path and rewrite requirements in the install guide for your release. Keep the environment file out of version control and limit read access to the web server user and the deploy account. Check that a request for a non-public file path is refused and that the site root is served without a rewrite error.

  4. Run the console installer with scripted settings

    Run the suitecrm:app:install command from the SuiteCRM 8 directory, passing the site URL, database settings and admin account values from your script or pipeline. Confirm the option names with the command's help output for your release before writing the script, because option names can change between versions. Keep the admin password in the secrets store and pass it through an environment variable or file reference that the pipeline injects at run time. Check that the command exits with status zero, the log shows no errors, and the database now contains SuiteCRM tables.

  5. Verify the database connection and HTTPS site URL

    Confirm that the application reaches the database and that the site URL resolves over HTTPS. From a client outside the server, load the site URL, inspect the certificate chain, and confirm that HTTP redirects to HTTPS. From the server, run a query against the installed database as the application user to confirm the connection and the presence of the expected tables. Check that the login page renders without installer messages and that the browser accepts the certificate without warnings.

  6. Confirm scheduler and worker reachability

    Set up the scheduler and the Messenger worker to run as the web server user, then test each one. Run the scheduler entry once by hand and log in as an admin to confirm that the jobs appear in the scheduler widget. Start the messenger:consume process under your process supervisor and confirm it stays running. Check that scheduler job status updates after the manual run and that the worker process runs under the expected user. Detailed setup is covered in the sibling pages on scheduler cron and the Messenger worker.

  7. Repeat the build on staging from a clean database

    Store the script, the environment template and the version pins in version control, then run the full sequence on a staging server with an empty database. Compare the result against the first build, including the installed release, enabled modules and admin account settings, and treat any difference as a defect in the script. Keep staging and production on the same versions so test results carry over. Check that a second run from a clean database produces the same version and configuration output and that the login test passes on both hosts.

Keeping staging and production builds identical

The goal of a scripted install is that staging and production run the same code, the same install options and the same configuration logic, so that the only differences are the values you deliberately supply. Put every environment-specific value (site URL, database host, database name and user, admin account details, and any file storage or mail settings) into a per-environment file or secrets store that the install script reads, and keep the script itself free of hostnames and passwords. Review the script with the same diligence as application code: a change to a database option or admin default should be visible in version control, not made by hand on one server. Ask your team to confirm which installer options are fixed in the script and which come from the environment before the first production run.

Version the install script in the same repository, or the same tagged release, as the SuiteCRM 8 application build it deploys. Pin the SuiteCRM release and any custom modules or extensions to exact versions, and record which script version produced each environment. When a new SuiteCRM 8 minor release arrives, which the project publishes roughly every eight weeks, change the pin in a branch, run the build on staging, and promote the same artifact to production instead of rebuilding it. Patch releases contain only security and bug fixes, but they still need the same staged path so you can compare results. Check the compatibility matrix for the PHP, Apache and MariaDB or MySQL versions before you change the pin.

Test every change on a staging instance before production, and keep staging close enough to production that a passing run means something. Use the same web server, PHP and database versions, the same document root and the same file storage configuration. The SuiteCRM migration documentation advises testing on staging and backing up files and database before changing an existing instance, and the same discipline applies here: take a verified backup before any script run that touches a live database. Be clear with stakeholders that a fresh install is not a substitute for a planned migration. Moving SuiteCRM 7 data into SuiteCRM 8 is a migration with its own steps, customization review and testing, and a scripted install does not carry existing SuiteCRM 7 data across.

Security risks in scripted installs

A scripted install moves secrets, database access and installer files into places where they can be copied, logged or left exposed. The four risks below are the ones that most often survive a repeatable build, and each has a control you can put in the script, the pipeline or the server configuration.

Plaintext credentials in history and repos

Database passwords and the initial admin password often end up typed on the command line, saved in shell history, or committed to a repository alongside the install script. Anyone who can read the repo, the CI logs or the shell history can then reach the database or the admin account. Inject these values at run time from your secrets manager or the CI secret store, read them from a protected environment file, and check that no install command in your repo contains a literal password. Confirm that your CI tool masks secrets in logs.

Overly broad database privileges

Installers often run with a database account that has administrative rights, so the SuiteCRM application ends up connecting as a user that can create or drop other databases. Create a dedicated database user limited to the SuiteCRM schema, grant it only the privileges the application needs at runtime, and keep the administrative account for schema changes that run during install and upgrade. Check the grants after each build, because a privileged account reused across environments makes a compromise in staging a production problem.

Default admin account left active

A non-interactive install creates an administrator account with a known or predictable password, and the build pipeline may never revisit it. If that account remains active, anyone who learns the username can attempt sign-in on the production site. Set a unique, generated admin password for each environment, rename or disable default accounts where your configuration allows it, and create named administrator accounts for people who need access. Confirm the account list in each environment after the first login.

Installer and setup files on the web root

If the install directory, setup scripts or temporary install files stay under the public document root after the build, web visitors may reach them directly. Remove or block installer artifacts once the install completes, serve only the public folder from Apache, and deny web access to configuration, cache and log directories. Include a post-install check in the pipeline that requests known setup paths and fails the build if they return content.

Admin area exposed to the internet

The administration interface is reachable wherever the site is reachable unless you restrict it. Limit access to administrative routes by network range, VPN or reverse proxy rules, and keep those rules in the same version-controlled configuration as the rest of the build. Pair the restriction with SSO or two-factor sign-in where your SuiteCRM version supports it, and review the rules whenever the hostname or load balancer changes.

Questions buyers ask about scripted SuiteCRM installs

How much effort does a scripted SuiteCRM 8 install take?

Effort depends mostly on how many environments you run and how much of the build you want repeated automatically. A single scripted install for one test server is a small task for an experienced Linux and PHP engineer. Effort rises when you add staging and production parity, a pipeline that builds and deploys the same artifact to each environment, secret handling that keeps database passwords out of scripts, and customizations that must survive a rebuild. Ask any partner to split the quote into environment setup, pipeline work, secret management, customization checks and handover, so you can see which parts your team could absorb.

What drives the cost of scripting a SuiteCRM install up or down?

The main cost drivers are the number of environments, the secret store you already use, the CI/CD tooling in place, and how much custom code or configuration must be verified after each build. Fewer environments and an existing secret manager reduce work. Custom modules, extra storage backends, LDAP or SAML login, and scheduled jobs add verification steps because each one must be checked on every rebuild. Request a quote that states the environments in scope, the tooling it assumes, and what is excluded, such as ongoing patching or hosting.

Can our internal team script a SuiteCRM install without a partner?

Yes, if your team already runs Linux, Apache, PHP and a relational database in production and has a deployment pipeline. The install itself is a documented console command, so the skill gap is usually in repeatable configuration, secret handling and verification rather than in the installer. Teams without that background often benefit from a short review of their script and pipeline before go-live. Check the current compatibility matrix for supported PHP, Apache and database versions before you assign the work, since those lists change between releases.

What does the work need from our team before it starts?

Expect to provide access and a clear list of details before any build begins. That includes accounts or hosts for each environment, the database server and the database user settings the installer will use, the site URL for each environment and the DNS records that point to them, and a decision on where secrets will be stored. You will also need named owners for approval and for the systems that connect to SuiteCRM. Missing DNS or database details are the most common cause of delay in a scripted rollout, so confirm them in writing at the start.

How does a scripted install differ from a SuiteCRM 7 migration?

A scripted install creates a new SuiteCRM 8 environment from nothing, so it has no existing data to move or reconcile. A SuiteCRM 7 migration is a separate project. The SuiteCRM migration documentation describes setting up a new SuiteCRM 8 environment and moving SuiteCRM 7 data into it, after first bringing the 7 instance to the latest 7.14.x or later. It also advises testing on staging, backing up files and database, and reviewing customizations, because the migration may remove non-core files under the public/legacy folder. Budget for a migration separately, even if the same installer runs underneath.

What should we ask for in a written quote for a scripted install?

Ask the partner to state the exact environments, the deliverables, and the tooling assumed. A useful quote lists the install script and its inputs, the pipeline stages, how secrets are supplied and rotated, the verification steps run on each environment, the handover documentation, and any test or retest cycles. It should also name what is excluded, such as data migration, custom module development, hosting, and recurring support, and state assumptions about access and timing. Ask which items are one-time and which recur, and how changes to scope are priced.

Does a scripted install need a separate upgrade plan?

Yes. A script that installs SuiteCRM 8 today does not describe how you will move to later releases. SuiteCRM 8 minor releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes. Plan how your script will be reused for upgrades, how you will test each release on staging first, and who approves the change. Confirm the release lifecycle and support options on the SuiteCRM LTS page before choosing a long-term version line.

How DeployOpen scopes and delivers SuiteCRM installs

DeployOpen plans and delivers scripted SuiteCRM 8 installs inside infrastructure you control, so staging and production are built the same way every time. Each engagement starts with a written scope that names the environments, database and site settings, and the handover documents your team will keep.

How we scope

  • Written scope lists the environments, site URLs and database settings the install script must produce for each target.
  • We confirm the PHP, Apache and MariaDB or MySQL versions against the SuiteCRM 8 compatibility matrix before any build starts.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work begins.

How we build

  • We write the non-interactive install scripts and keep secrets out of the scripts, supplied through your own secret store.
  • Each build is run first on a staging environment, then checked against the same script before it reaches production.
  • We document the build order, including cron, the Messenger worker and file storage, so later steps are not left to memory.

How we hand over

  • You receive the install scripts, environment file templates and a runbook for rebuilding an instance from scratch.
  • A verification checklist covers login, scheduler runs, background jobs and file access, with the results recorded for your team.
  • We walk your engineers through the build and the upgrade path, and confirm which tasks your team will own afterward.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover moving the scripted install to newer SuiteCRM 8 minor releases as they are published.
  • Ask for a quote that separates the one-time build from any recurring support so you can compare it with your own team's effort.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.