Install and configure MySQL
Refer to MySQL for more information.
Install and configure
There are several ways to download Adobe Commerce, including:
This example shows a Composer-based installation using the command line.
-
As the file system owner, log in to your application server.
-
Change to the web server docroot directory or a directory that you have configured as a virtual host docroot. For this example, we’re using the Ubuntu default
/var/www/html
. -
Install Composer globally. Composer is required to update dependencies before installing Adobe Commerce:
-
Create a Composer project using the Adobe Commerce metapackage.
Magento Open Source
Adobe Commerce
When prompted, enter your authentication keys. Your public key is your username; your private key is your password.
-
Set read-write permissions for the web server group before you install the application. This is necessary so that the command line can write files to the file system.
-
Install from the command line. This example assumes that the install directory is named
magento2ee
, thedb-host
is on the same machine (localhost
), and that thedb-name
,db-user
, anddb-password
are allmagento
: -
Switch to developer mode:
Configure nginx
We recommend configuring nginx using the nginx.conf.sample
configuration file provided in the installation directory and nginx virtual host.
These instructions assume you’re using the Ubuntu default location for the nginx virtual host (for example, /etc/nginx/sites-available
) and Ubuntu default docroot (for example, /var/www/html
), however, you can change these locations to suit your environment.
-
Create a new virtual host for your site:
-
Add the following configuration:
NOTE
Theinclude
directive must point to the sample nginx configuration file in your installation directory. -
Replace
www.magento-dev.com
with your domain name. This must match the base URL you specified when installing Adobe Commerce. -
Save and exit the editor.
-
Activate the newly created virtual host by creating a symlink to it in the
/etc/nginx/sites-enabled
directory: -
Verify that the syntax is correct:
-
Restart nginx:
Verify the installation
Open a web browser and navigate to your site’s base URL to verify the installation.
CentOS 7
The following section describes how to install Adobe Commerce 2.x on CentOS 7 using nginx, PHP, and MySQL.
Install nginx
After installation is complete, start nginx and configure it to start at boot time:
After completing the following sections and installing the application, we’ll use a sample configuration file to configure nginx.
Install and configure php-fpm
Adobe Commerce requires several PHP extensions to function properly. In addition to these extensions, you must also install and configure the php-fpm
extension if you’re using nginx.
-
Install
php-fpm
: -
Open the
/etc/php.ini
file in an editor. -
Uncomment the
cgi.fix_pathinfo
line and change the value to0
. -
Edit the file to match the following lines:
NOTE
We recommend setting the memory limit to 2 G when testing Adobe Commerce. Refer to Required PHP settings for more information. -
Uncomment the session path directory and set the path:
-
Save and exit the editor.
-
Open
/etc/php-fpm.d/www.conf
in an editor. -
Edit the file to match the following lines:
-
Uncomment the environment lines:
-
Save and exit the editor.
-
Create a directory for the PHP session path and change the owner to the
apache
user and group: -
Create a directory for the PHP session path and change the owner to the
apache
user and group: -
Start the
php-fpm
service and configure it to start at boot time: -
Verify that the
php-fpm
service is running:
Install and configure MySQL
Refer to MySQL for more information.
Install and configure
There are several ways to download the Adobe Commerce, including:
This example shows a Composer-based installation using the command line.
-
As the file system owner, log in to your application server.
-
Change to the web server docroot directory or a directory that you have configured as a virtual host docroot. For this example, we’re using the Ubuntu default
/var/www/html
. -
Install Composer globally. Composer is required to update dependencies before installing Adobe Commerce:
-
Create a Composer project using the Adobe Commerce metapackage.
Magento Open Source
Adobe Commerce
When prompted, enter your authentication keys. Your public key is your username; your private key is your password.
-
Set read-write permissions for the web server group before you install the application. This is necessary so that the command line can write files to the file system.
-
Install from the command line. This example assumes that the install directory is named
magento2ee
, thedb-host
is on the same machine (localhost
), and that thedb-name
,db-user
, anddb-password
are allmagento
: -
Switch to developer mode:
Configure nginx
We recommend configuring nginx using the nginx.conf.sample
configuration file provided in the installation directory and nginx virtual host.
These instructions assume you’re using the CentOS default location for the nginx virtual host (for example, /etc/nginx/conf.d
) and default docroot (for example, /usr/share/nginx/html
), however, you can change these locations to suit your environment.
-
Create a new virtual host for your site:
-
Add the following configuration:
NOTE
Theinclude
directive must point to the sample nginx configuration file in your installation directory. -
Replace
www.magento-dev.com
with your domain name. -
Save and exit the editor.
-
Verify that the syntax is correct:
-
Restart nginx:
Configure SELinux and Firewalld
SELinux is enabled by default on CentOS 7. Use the following command to see if it’s running:
To configure SELinux and firewalld:
-
Install SELinux management tools:
-
Run the following commands to change the security context for the installation directory:
-
Install the firewalld package:
-
Start the firewall service and configure it to start at boot time:
-
Run the following commands to open ports for HTTP and HTTPS so you can access the base URL from a web browser:
Verify the installation
Open a web browser and navigate to your site’s base URL to verify the installation.
More help on this topic
Adobe Commerce at Summit
Register for these sessions:
- B2B Reimagined: Transforming Go-to-Market Strategies for Profitable Growth (attend online)
- How AI Is Transforming the Commerce Landscape (attend online)
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- Elevate and Empower Teams with Agentic AI for Exceptional Experiences (attend online)
- How the Bungie Store Boosted Speed and Scale with Adobe Experience Manager
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more