- 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
- Install NodeJs 12 LTS.
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt -y install nodejs
- Install Docker & docker-compose.
sudo apt -y install docker.io docker-compose
sudo usermod -aG docker $(whoami)
sudo systemctl enable --now docker
- Install a composer.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/bin/composer
- Install a Symfony Server and tls certificate for it.
sudo apt -y install libnss3-tools
wget https://get.symfony.com/cli/installer -O - | bash
echo 'PATH="$HOME/.symfony/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
symfony server:ca:install
- Install flex globally to improve the performance of composer operation for symfony based projects up to 10 times.
composer global require symfony/flex
- Configure GitHub auth token https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens.
composer config -g github-oauth.github.com <oauthtoken>
- Create OroCommerce EE project with composer.
composer create-project oro/commerce-crm-enterprise-application oroapp --repository=https://satis.oroinc.com -n
- Copy docker configs from https://github.com/anyt/orocommerce-enterprise-services-docker to the project folder.
wget -c https://github.com/anyt/orocommerce-enterprise-services-docker/releases/download/0.1/docker-config.tar.gz -O - | tar -xz
- Install an application.
docker-compose up -d
time symfony console oro:install --sample-data=y --application-url=https://127.0.0.1:8000 --user-name=admin [email protected] --user-firstname=John --user-lastname=Doe --user-password=admin --organization-name=Oro --timeout=0 --symlink -n;
- Start the symfony server and open the project in a browser.
symfony serve -d
symfony open:local