Back to Top

Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu

Updated 6 August 2024

Let’s start configuring environment to install Adobe commerce (Magento) 2.4 on Ubuntu.

Recent version of Adobe commerce (Magento 2)requires some special configuration from other versions so i have explained the required configuration on fresh Ubuntu. By following the below command step by step we can setup the environment properly.

To install Apache 2.4 you can go through this url

Configure Apache 2.4

To check system requirements as per the Adobe Commerce (Magento 2) version, you can click: https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html.

Searching for an experienced
Magento 2 Company ?
Find out More

Install PHP version 7.4/8.1(based on Adobe Commerce (Magento 2) version) by following commands.

All of the commands requires sudo access so run sudo su first

1. $ apt install software-properties-common

2. $ add-apt-repository ppa:ondrej/php

3. $ apt update

4. $ apt install php7.4

PHP-7.4 required extensions must be installed before installing Adobe commerce (Magento 2)

1. $ apt-get install php7.4-{gd,curl,intl,bcmath,ctype,dom,iconv,mbstring,simplexml,soap,xsl,zip}

2. $ apt-get install php7.4-mysql

Install MySQL 8.0 by following commands

1. $ wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb

2. $ dpkg -i mysql-apt-config_0.8.10-1_all.deb

3. $ apt-get update

4. $ apt-get install mysql-server

Composer

1. $ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

2. $ php composer-setup.php --version=1.10.16

3. $ mv composer.phar /usr/local/bin/composer


Note: The composer version may vary as per Adobe commerce (Magento) version.

    Disable old version php and enable new latest

    1. $ a2dismod php7.2
    
    2. $ a2enmod php7.4

    Install Elasticsearch by the following commands

    1. $ apt-get -y update
    
    2. $ apt-get install -y openjdk-8-jdk
    
    3. $ java -version
    
    4. $ curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    
    5. $ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    
    6. $ apt update
    
    7. $ sudo apt install elasticsearch

    Configure Apache and Elasticsearch

      Now you can install Adobe Commerce (Magento) 2.4 by following the urls.

      => Install Adobe commerce (Magento 2) using composer

      => Install Adobe Commerce (Magento 2)

      If you need any technical assistance, please email us at [email protected]. Additionally, explore numerous solutions to enhance your online store by visiting the Adobe Commerce plugins section.

      For expert guidance or to develop unique custom features, Hire Adobe Commerce Developers for your project.

      Thanks for reading.

      . . .

      Leave a Comment

      Your email address will not be published. Required fields are marked*


      4 comments

    1. Jose Villalobos
      • Rajan Dimri (Moderator)
    2. Back to Top

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home