Install ShopWare6 on AWS linux2/Centos

Before installing (SW)ShopWare 6, you should take a quick look at the requirements to check if your local environment is capable of running it.

System Requirements

Operating System

Although Shopware 6 support most UNIX like environments Ubuntu 18.04/Centos7

Environment

NGINX

PHP

7.2 or highermemory_limit 512M minimummax_execution_time 30 seconds minimumExtensions:
ext-curl
ext-dom
ext-fileinfo
ext-gd
ext-iconv
ext-intl
ext-json
ext-libxml
ext-mbstring
ext-openssl
ext-pcre
ext-pdo
ext-pdo_mysql
ext-phar
ext-simplexml
ext-xml
ext-zip
ext-zlib
Composer 1.6 or higher

SQL

JavaScript

Recommendations

Adminer (https://www.adminer.org/) is Shopware recommended database administration tool since it has better support for binary data types.

cd /var/www/html/sudo yum install -y gcc-c++ makecurl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -sudo yum install nodejsbin/setup

If you have error try to instar newer version of NPM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR=”$HOME/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && \. “$NVM_DIR/nvm.sh” # This loads nvm
[ -s “$NVM_DIR/bash_completion” ] && \. “$NVM_DIR/bash_completion” # This loads nvm bash_completionnvm install node

Installing ShopWare 6

# Choose your own directory
cd /var/www/html/
mkdir shopware
cd shopware
git clone https://github.com/shopware/development.git
cd development
git clone https://github.com/shopware/platform.git
# Inside the shopware installation directory (e.g. /var/www/html/shopware/development)
./psh.phar install

Configuring Nginx for ShopWare 6

server {
listen 80;
#listen 443 ssl;
server_name {domain};root /var/www/html/shopware/public;index index.php;location /recovery/install {
index index.php;
try_files $uri /recovery/install/index.php$is_args$args;
}
location /recovery/update/ {
location /recovery/update/assets {
}
if (!-e $request_filename){
rewrite . /recovery/update/index.php last;
}
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm/www.sock;
include fastcgi.conf;
fastcgi_param HTTP_PROXY “”;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
client_max_body_size 24M;
client_body_buffer_size 128k;
# http2_push_preload on;
}
}

After that the setup is done. You can now access your Shopware 6 installation using the following urls:

Good article about Shop-Ware installation process

Testing our http://{yourdomain }/ site

Create an admin user:

sudo bin/console user:create -a -p admin123 — firstName ADmin — lastName Adminov — email admin@admin.com admin1

[OK] User “admin1” successfully created.

Admin is here {shopDomain}/admin

Image for post
Image for post

Written by

Magento/APP Cloud Architect. Melting metal server infrastructure into cloud solutions.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store