Set up Environment for OroPlatform Based Application on Ubuntu 20.04

This guide demonstrates how to set up Docker and Symfony Server development stack for Oro applications on Ubuntu 20.04 LTS.

Environment Setup

  1. Install PHP 7.4 with all required extensions:

    sudo apt -y install php php-fpm php-cli php-pdo php-mysqlnd php-xml php-soap php-gd php-zip php-intl php-mbstring php-opcache php-curl php-bcmath php-ldap php-pgsql
  2. Install Node.js 14:

    sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
    curl -sL | sudo -E bash -
    sudo apt -y install nodejs
  3. Install Docker and Docker Compose:

    sudo apt -y install docker-compose
    sudo usermod -aG docker $(whoami)
    sudo systemctl enable --now docker
  4. Install Composer v1:

    php -r "copy('', 'composer-setup.php');" && php composer-setup.php
    php -r "unlink('composer-setup.php');"
    sudo mv composer.phar /usr/bin/composer
    composer self-update --1
  5. Install Symfony Server and enable TLS:

    sudo apt -y install libnss3-tools
    wget -O - | bash
    echo 'PATH="$HOME/.symfony/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
    symfony server:ca:install
  6. Restart the terminal and web browser to get them ready.