Enable Apache server rewrites
If you use the Apache web server, you must enable server rewrites for pages to display properly. Otherwise, you see pages without styles and other issues.
Section on Apache server rewrites
Caching in a multi-webnode environment
If you have multiple web nodes, you cannot use the application’s default file caching because there is no synchronization between web nodes. In other words, the activity on one web node is written to that web node’s file system only. Subsequent activity, if performed on another web node, can result in unnecessary files being written or can result in errors.
Instead, use Redis for both the default cache and the page cache.
Server settings
This section briefly discusses settings that we recommend you consider for the server on which the application runs. Some of these settings are not directly related to the application; these are provided as suggestions only.
Log rotation
The UNIX logrotate
utility enables you to administer systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file can be handled daily, weekly, monthly, or when the log file exceeds a specified size.
For more information, see one of the following:
-
Starter envrionments do not have log rotation.
-
You cannot configure log rotation on Pro Integration environments. You must implement a custom solution/script and configure your cron to run the script as needed.
Set up iptables rules to enable various services to communicate
Whether you have one server or many, you must open ports in the firewall to enable services to communicate. For example, if you use the Solr search engine with Adobe Commerce, you must enable it to communicate with the web server. If you have multiple web nodes, you must enable them to communicate with each other.
More information:
- Ubuntu: Ubuntu documentation page.
- CentOS: CentOS how-to.
Security Enhanced Linux (SELinux) rules
We don’t have a recommendation for whether you use SELinux; however, if you do use it, you must configure services to communicate with each other similar to configuring iptables.
More information:
- Ubuntu: Debian handbook
- CentOS: CentOS wiki
Set up an e-mail server
Adobe Commerce requires an e-mail server. We don’t recommend a particular server, but you can try any of the following:
- Postfix for CentOS (Digital Ocean tutorial, CentOS documentation)
- Postfix for Ubuntu (Digital Ocean tutorial, Ubuntu documentation)
Refine the search engine for enhanced performance:
Elasticsearch or OpenSearch is required for all installations as of 2.4.0.
Set up a message queue
Since version 2.3.0, Adobe Commerce has included message queue functionality. In earlier versions, it is available only for Adobe Commerce.
Settings for Adobe Commerce only
You can configure the following only if you use Adobe Commerce: