Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Magento 2.4 Environment Setup Installation on Ubuntu

    Let’s start configuring environment to install Magento 2.4 on Ubuntu.

    Recent version of Magento 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

    Install PHP version 7.4 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 Magento 2.4

    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

    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
    8. Configure Apache and Elasticsearch

    Now you can install Magento 2.4 by following the urls.

    Install Magento and Installing Magento2.4

    Thanks for reading.

    . . .

    Leave a Comment

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


    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close