Installing SuiteCRM 8 on a LAMP stack: what the server must provide
The stack is Linux, Apache, MariaDB or MySQL, and PHP, and the exact versions must match the SuiteCRM 8 compatibility matrix for the release you are installing. For SuiteCRM 8.10, 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 on Linux, Unix or macOS. Check the matrix for your target release before you order or build servers, because support ranges change between minor releases. The SuiteCRM 8 compatibility matrix is the authoritative list, and your team should confirm it against the exact version you plan to run.
The pre-built package expects a PHP runtime with the extensions the application uses, a web server whose document root points at the application's public directory, and rewrite rules that send requests to the front controller. Settings such as memory_limit, max_execution_time and upload_max_filesize also matter, because document uploads and bulk imports fail quietly when they are left at defaults. Confirm the full extension list, the PHP ini values and the rewrite configuration in the install documentation for your release, and record them as build requirements instead of relying on memory of an earlier version.
This work is needed in three situations: a new production deployment, a staging instance used to test an upgrade or a customization, and a target environment for a planned move from SuiteCRM 7. For the last case, SuiteCRM documents the move as a migration into a new SuiteCRM 8 environment, not an in-place upgrade, so the server must be ready before data is moved. Teams building in-house should budget for OS hardening, PHP tuning and database setup as one-time work, plus ongoing patching of each component. A partner quote should list which of these items are included, who owns the operating system and database administration after handover, and how the staging server is kept in step with production.
Which component versions SuiteCRM 8.10 supports
This table lists the operating system, web server, PHP, MariaDB and MySQL versions named in the SuiteCRM 8.10 compatibility matrix. Use it as a shortlist of tested combinations, then confirm the exact release you deploy, because the matrix is the source of truth. Patch releases contain only security and bug fixes, with no new features or database changes, but check the matrix before each build.
| Component | Supported in SuiteCRM 8.10 | What to confirm for your release |
|---|---|---|
| Operating system | Linux, Unix or macOS | Confirm the exact distribution and version listed in the matrix, and that your team can patch it on schedule. |
| Web server | Apache 2.4 | Confirm the Apache 2.4 minor version and modules your install needs against the matrix and install documentation. |
| PHP | 8.2, 8.3 and 8.4 | Confirm which PHP line the matrix lists for your exact release, then check the extensions your install requires for that line. |
| MariaDB | 10.6, 10.11, 11.4 and 11.8 | Choose one listed line and confirm it for your release before ordering a database server or container image. |
| MySQL | 8.0 and 8.4 | Use only if your standards require MySQL, and confirm the listed line matches the release you plan to deploy. |
| Patch level | Minor 8.x releases arrive roughly every eight weeks | Check the matrix for the patch you deploy. Patch releases add no features or database changes, so routine patching carries lower risk. |
How to build the LAMP stack for SuiteCRM 8
This sequence takes a clean Linux host to a state where Apache, PHP and MariaDB or MySQL are configured for SuiteCRM 8, the database user exists, and the public folder is served, so the installer can run without guessing at prerequisites.
Confirm the target release and compatibility matrix
Before installing anything, choose the SuiteCRM 8 release you will run and read its compatibility matrix for that release. The matrix lists the supported PHP versions, Apache 2.4, the MariaDB and MySQL versions, and the Linux, Unix or macOS platforms. Record the exact PHP, database and web server versions you will use, and confirm them with your SuiteCRM release notes if your standard distribution ships different versions. Done means you have a written version list that every later step follows. Ask your implementation partner to confirm the list against your target release in writing.
Prepare the Linux host and time sync
Your platform team installs a supported Linux distribution on the server, applies current OS patches, and sets a fixed hostname and DNS entry for the CRM URL. Enable a time synchronization service such as chrony or systemd-timesyncd so logs, sessions and scheduled jobs use correct timestamps. Check that the server can reach the package repositories and the outbound services your mail and integrations need. Done means
timedatectlreports the clock as synchronized and the hostname resolves from another machine on your network.Install Apache 2.4 and enable rewrite
Install Apache 2.4 from your distribution's packages, then enable the rewrite module and the headers module, which SuiteCRM's URL routing relies on. Set
AllowOverride Allfor the directory that will serve SuiteCRM so the bundled rewrite rules in the public folder take effect. Start the service and enable it at boot. Done meansapachectl -vreports version 2.4,apachectl -Mlists rewrite_module, and a test page loads over HTTP from another host. Confirm the TLS configuration with your security team before you move on.Install PHP and the required extensions
Install the PHP version from your compatibility matrix together with the Apache PHP module and every extension the SuiteCRM documentation lists for that release, including the database driver and the common extensions for string, JSON, XML, intl, zip and mbstring handling. Install OPcache as a standard part of production hosting, and leave development-only tools such as Xdebug out of this build. Set the timezone and memory settings in the PHP configuration for the web SAPI. Done means
php -vshows a supported version andphp -mlists every required extension.Install MariaDB or MySQL and create a dedicated user
Install MariaDB or MySQL using a version from your matrix, run the secure installation steps your distribution provides, and create a database with a utf8mb4 character set. Create a separate database user that has privileges only on that database, with a strong generated password stored in your secrets system rather than in a shared document. Do not use the root account for the application. Done means you can log in as the new user from the web server host and see the empty database, and the user cannot see other databases.
Set the document root to the public folder
Point the Apache virtual host's DocumentRoot at the public folder inside the SuiteCRM 8 application directory, not at the project root, so configuration files, the var folder and source code are not served to browsers. Set ownership so the web server user can write to the directories SuiteCRM needs, and keep the rest of the tree read-only for that user where possible. Enable the TLS virtual host and reload Apache. Done means a request to the site root returns a response from SuiteCRM's front controller, and a request for a file such as
.env.localreturns a not-found or forbidden response.Verify PHP and database connectivity before installing
Run a short PHP script from the web server user that opens a connection to the database with the new credentials, then delete the script. Check the reported PHP version and confirm the extensions are loaded under the same SAPI that Apache uses, because command-line and web PHP can differ. Confirm that the server can reach the database host and port if the database is on another machine. Done means the connection test succeeds from the web user context, and you have recorded the database host, name and user for the installer.
Which PHP extensions and settings SuiteCRM needs and what is development only
The production server runs the pre-built SuiteCRM 8 package, which already contains the compiled application code. What the server needs is a supported PHP version, Apache 2.4 with the PHP handler enabled, and the PHP extensions the application calls at runtime. The compatibility matrix lists PHP 8.2, 8.3 and 8.4 for SuiteCRM 8.10, and the release documentation for your exact version controls the extension list.
- Supported PHP version: Use one of the PHP versions listed in the compatibility matrix for your SuiteCRM release, and do not assume a newer PHP is supported.
- Apache 2.4: Install Apache 2.4 with the PHP module or FPM handler, plus mod_rewrite for the rewrite rules covered in this topic.
- Runtime extensions: Enable the extensions named in the release documentation for your version, including database and common file and string handling extensions.
- PHP settings: Set memory, upload and execution time limits according to the documentation, since document uploads and report generation depend on them.
- Database client: Confirm the PDO driver for MySQL or MariaDB is present, because the application connects through it.
Before you go live, run a PHP information check on the server and compare the loaded modules with the release documentation for the exact version you deploy.
Development tooling exists to build SuiteCRM from source, run its test suites and manage PHP and JavaScript dependencies during development. None of it is needed to run the pre-built package on a production server, and installing it there adds software that must be patched without serving any purpose at runtime.
- Composer: Used to resolve PHP dependencies when building from source. The pre-built package already includes its vendor directory.
- Node.js and npm: Used to compile front-end assets during a source build. The pre-built package ships compiled assets.
- Test dependencies: PHPUnit, static analysis and browser test tools are for development pipelines only.
- Xdebug and profilers: Debugging extensions slow PHP down and should stay out of production builds.
- Compilers and build headers: Needed only if you compile PHP extensions yourself, which the pre-built path does not require.
If a runbook asks for any of these on a production host, ask why, because the pre-built package path does not need them.
The exact PHP extension list changes between SuiteCRM releases, so this topic does not reproduce it. Treat the release documentation for your version as the authority, and use the compatibility matrix to confirm which PHP, Apache and database versions are supported with that release. SuiteCRM minor 8.x releases arrive roughly every eight weeks, so a list that was correct for one release may need checking again after an upgrade.
- Match the release: Read the requirements for the exact SuiteCRM 8 version you will install, not the latest documentation.
- Check the compatibility matrix: Confirm PHP, Apache, MariaDB and MySQL versions against the matrix before ordering packages.
- Record the loaded modules: Save the output of the PHP module list in your build record so auditors and future upgrades have a baseline.
- Plan for upgrades: Recheck extensions when moving to a new minor release, since requirements can change.
- Ask your partner: In a quote, ask who confirms the extension list and who records the result.
Before approving the build, check that every extension in the release documentation is loaded on the production host and that no development tool is installed there.
Document root and rewrite rules that commonly break installs
Most failed SuiteCRM 8 installs on Apache trace back to a handful of web server settings rather than the application itself. The cards below cover the items to verify before running the installer, in the order they usually cause problems.
Document root points at public
SuiteCRM 8 serves its front controller from the public folder inside the application directory, so the Apache DocumentRoot must point there and not at the project root. If it points at the project root, the application source, configuration and .env files may be reachable over HTTP. Confirm the vhost by requesting a known file in the project root and checking that it returns a 404 response.
AllowOverride and .htaccess handling
The public folder relies on an .htaccess file for routing, and Apache ignores it unless the directory block sets AllowOverride to allow it. Many default Apache configurations set AllowOverride None, which silently turns every page except the home page into a 404. Check that the <Directory> block for the document root allows overrides and that the mod_rewrite module is enabled.
Rewrite rules for front-controller routing
Every request that does not match a real file must be passed to the front controller, which is how SuiteCRM resolves its routes. Test this with a deep link, such as a module list URL opened directly in the browser, not only the login page. Adjust the rewrite rules when a reverse proxy, a subdirectory install or a custom vhost changes the request path.
File ownership for the web server user
SuiteCRM writes cache, logs, uploads and generated files during install and at runtime, so the web server user must own or be able to write to those directories. Identify the user the Apache service runs as on your distribution, then confirm write access to the cache and var paths without making the source tree world-writable. Record the ownership model so later deployments reproduce it.
HTTPS and site URL consistency
The site URL used during installation, the base URL in configuration and the scheme the browser uses must match. A mismatch often produces redirect loops, mixed content warnings or broken asset links after login. Confirm the scheme and host once TLS terminates at a load balancer, and check that the forwarded protocol headers reach PHP as your reverse proxy expects.
PHP upload and memory limits
Document uploads, imports and report generation fail quietly when upload_max_filesize, post_max_size or memory_limit are set to the distribution defaults. Set these values in the PHP configuration used by Apache, not only the CLI, because the scheduler and the web request may read different files. Confirm the values with a test upload of a file near your expected maximum size.
How the browser, Apache, PHP and database connect
The request starts in the browser and crosses the network edge, where TLS is terminated, before reaching the web tier. Apache applies the rewrite rules that send requests to the SuiteCRM front controller in the document root, and PHP runs SuiteCRM either through PHP-FPM or mod_php. SuiteCRM then queries MariaDB or MySQL on a separate database tier. Check that only the web tier can reach the database port, and that the document root is the only part of the tree served by Apache.
Request path from browser to database, with the trust boundaries between tiers.
Security settings to apply to the LAMP host before go-live
These settings limit what an attacker can reach if a web request, a plugin or a credential is compromised. Apply them to the Linux host, Apache, PHP and the database before SuiteCRM holds live customer data, then keep them in place through every patch cycle.
Minimal packages and services
Install only the packages the SuiteCRM 8 runtime needs: Apache, the PHP extensions listed for your version, the database server and the command-line tools you use. Disable or remove services the CRM does not use, such as mail transfer agents, FTP and development tools. Record the final package list so a rebuild produces the same host. Confirm the PHP and database versions against the SuiteCRM 8 compatibility matrix before you pin them.
Compatibility matrixDatabase account privileges
Create a dedicated database user for SuiteCRM with rights limited to its own schema, and do not reuse the root or administrative account in config.php or .env.local. Restrict the host from which that user may connect, usually localhost or a private subnet. Keep a separate administrative account for schema changes and upgrades, and document who holds it. Ask your team to confirm the privileges the installer and the migration steps need before you narrow them.
Only the public folder is web-exposed
Point the Apache document root at the public folder of the SuiteCRM 8 install and keep the application code, src, vendor and config outside the served tree. A request that reaches source code or configuration files can expose credentials and internal logic. Test this from outside the network by requesting known paths such as .env.local and vendor/ and confirming they return errors, not file contents.
Protecting the .env and secret files
Set restrictive file permissions on .env.local, any LDAP or SAML key files and the database configuration so that only the deployment user and the web server user can read them. Keep secrets out of version control and out of shared logs. Store the application secret and mail credentials in a secrets manager where your organization has one. Review ownership after each upgrade, since an installer run can reset permissions on the files it rewrites.
TLS configuration and certificates
Serve SuiteCRM only over HTTPS, redirect plain HTTP, and disable legacy SSL and TLS protocol versions in the Apache configuration. Set the site URL to the HTTPS address so generated links and session cookies use the secure scheme. Use certificates issued by your internal or public CA, with a renewal process owned by a named team. Ask your security team to test the configuration with an external scanner before go-live.
Planned patching of the stack
Plan regular patch windows for the operating system, Apache, PHP and the database, and track each component against its vendor security feed. SuiteCRM minor 8.x releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes with no new features or database changes, so they are the lowest-risk updates to schedule. Test each patch on staging first and keep a rollback path that includes a database backup.
- Minor release cadence
- 8 weeks
Questions teams ask before installing SuiteCRM 8 on LAMP
How much effort does a SuiteCRM 8 LAMP installation take?
The effort depends mostly on how many layers you must build and how closely they must match your existing standards. A minimal single-server install of the pre-built package is a short technical task for an engineer who knows Linux, Apache, MySQL or MariaDB and PHP. Effort grows with the number of servers, the database topology, TLS and certificate handling, the PHP extensions your build needs, the file storage backend, scheduler and worker setup, and the monitoring and backup routines your operations team requires. Ask for a written list of those layers in any quote, because that list is what separates a quick install from a production-ready one.
Can our internal team install SuiteCRM 8 without a partner?
Yes, if your team already runs Linux web applications and can confirm versions against the compatibility matrix before building. SuiteCRM is free to download and self-host, so the software itself carries no license fee. The gaps teams most often face are not the install commands but the surrounding decisions: choosing supported PHP, Apache and database versions, setting the document root and rewrite rules correctly, separating development-only packages from production, and planning a staging copy for testing. A partner is most useful when those decisions must be signed off by security and compliance teams, or when the same stack has to be repeated across several environments.
What does the work need from our organization?
Expect to provide a target environment, administrative access to it, and people who can make decisions. Typical inputs are the servers or virtual machines or a cloud account, network paths to the database and mail relays, DNS names and TLS certificates, and a named owner for approvals. A staging environment that mirrors production is strongly recommended, because the SuiteCRM migration documentation advises testing on a staging instance before any change to live data. Your security team will usually also need to review the hardening settings, the secrets handling and the backup plan before go-live. Confirm each of these items in the written scope before work starts.
How long does a LAMP installation take, and what changes the timeline?
No duration figure has been published for this work, so ask for one in the written scope rather than relying on a general estimate. The timeline moves with the number of environments, whether staging and production must both exist, how quickly access and certificates are granted, how many approval gates your change process requires, and whether your platform already has standard images or configuration management. Delays often come from waiting on access or sign-off rather than from the install itself. Ask the provider to list which dependencies sit with your team and which sit with theirs.
Is SuiteCRM free to self-host, and where do paid services fit?
SuiteCRM is open source and free to download and self-host. The SuiteCRM 8 core repository is licensed under the GNU Affero General Public License version 3, so read that license with your legal team before modifying and distributing the code. SuiteCRM Ltd sells paid services around the software, including the SuiteASSURED support package, SuiteCRM Hosted, implementation, training and migration services. Those are separate from the free software, and their prices are set by SuiteCRM Ltd. Your own infrastructure, staff time and any third-party partner fees remain costs you must budget for even when the software is free.
Does DeployOpen issue certifications for the LAMP stack?
No. DeployOpen does not issue audit reports, attestations or certifications. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in your infrastructure, and it can prepare systems, controls and evidence for compliance assessments. Independent auditors and certification bodies perform the assessments and issue any results. If your organization needs a specific certification, ask your assessor which evidence they expect from the stack, such as configuration records, access logs and backup test results, and confirm that scope in writing before the build starts.
Which parts of the stack are only needed for development?
Development-only tooling should not reach production. Before you build, confirm with the release documentation which PHP extensions, Composer dependencies and source-based build steps apply to the pre-built package and which only apply when working from source. Keep debugging tools, development dependencies and verbose error output out of the production image, and check that the document root points only at the public directory. Review those choices in staging, because they are easy to miss when a server is built by hand and difficult to spot later during an incident.
Why the stack choice affects every later task
The PHP version, database engine and web server layout you choose at this stage carry into almost every later task. Pin the versions before you install anything, because the SuiteCRM 8.10 compatibility matrix lists specific supported combinations: 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. Confirm the exact release you plan to run against the compatibility matrix and record the choice in your build notes, since a later move to another PHP or database version becomes a change to test rather than a quiet update.
Those early choices also determine how the scheduler, the Messenger worker, file storage and PHP caching are configured. The cron entry and the worker must run as the same web server user that owns the SuiteCRM files, so the Linux user, file ownership and document root need to be settled now. Your choice of object storage for documents and images will depend on the same layout, and the OPcache and APCu settings you plan later assume the PHP build and extensions you install here. Document the PHP extensions, the document root and the rewrite rules as you set them, so the people who configure those later tasks can see what is already in place.
Single sign-on and migration from SuiteCRM 7 also depend on this foundation. LDAP and SAML logins are enabled through configuration keys such as AUTH_TYPE, and the identity provider settings must reach a host name and certificate the web server actually serves. If you are moving from SuiteCRM 7, the migration documentation recommends testing on a staging instance and taking backups of files and the database first, and it warns that the migration may remove non-core files under the public/legacy folder. Build a staging copy of this LAMP stack before any production move, and confirm the migration steps against the migration documentation for your exact versions.
How DeployOpen scopes and delivers a SuiteCRM 8 LAMP installation
DeployOpen plans, builds and documents the LAMP stack for SuiteCRM 8 inside your own infrastructure, from the pre-built package through to a handover your team can run. Engagements are fixed-scope, so the versions, extensions and hosting details are agreed in writing before any server is touched.
How we scope
- We confirm which SuiteCRM 8 minor release and which PHP, Apache, and MariaDB or MySQL versions your environment needs, against the compatibility matrix.
- We record the operating system, document root, virtual host layout, and whether a staging instance is part of the written scope.
- We agree in writing whether development tooling is excluded and which later pages, such as cron, storage or caching, are included.
How we build
- We prepare Linux, Apache, the database and PHP extensions, then set the document root and rewrite rules so the public folder is served correctly.
- We run the console install with settings recorded in your build notes, so a second server can be rebuilt the same way.
- We test login, file permissions, and the scheduler and worker prerequisites on staging before anything reaches production.
How we hand over
- You receive a build record listing package version, PHP and database versions, Apache configuration, file ownership, and installed extensions.
- You receive a runbook covering how to restart services, where logs live, and how to confirm the installation after a server reboot.
- We walk your administrators through the handover and record open questions, such as hosting constraints or backup targets, for your team to close.
How we support
- Support after handover can be agreed as a retainer covering patching, minor release moves, and checks on the stack.
- Each patch or minor release is reviewed against the written build record before it is applied to production.
- Ongoing testing and upgrades are scoped separately, so changes to the stack stay traceable to an agreed request.

