Install Shopware 6

Read: https://websiteforstudents.com/install-shopware-on-ubuntu-16-04-18-04-with-apache2-mariadb-and-php-7-1/
https://docs.shopware.com/en/shopware-6-en/tutorials-and-faq/virtual-box-setup#configuration-of-apache

Download the software (community edition) on https://www.shopware.com/en/download/#shopware-6
Extract it on the web root in ‘shopware6’ directory

Create Apache2 Setting
CREATE A CONF

CONTENT

ENABLE THE VIRTUALHOST

RELOAD APACHE2

CREATE THE HOST

SET THE FILE PERMISSIONS & RELOAD APACHE2

OPEN IT ON YOUR BROWSER: http://shopware6.test/
For the first time, It’d be redirected to http://shopware6.test/recovery/install/index.php THEN Continue and Check if the server requirements are met. If not change php.ini file –> check it on http://localhost/phpinfo.php
it’s at /etc/php/7.4/apache2/php.ini

THEN CHANGE PHP7.4 APACHE2 SETTING:

CHANGE THE CONTENT:

THEN RESTART APACHE2 SERVICE:

CREATE A DATABASE ‘shopware6’ WITH utf8mb4_unicode_520_ci
CREATE A NEW ADMIN USER:
User: admin
Pass: Admin123

RESULT:
STORE URL: http://shopware6.test/
ADMIN URL: http://shopware6.test/admin#/

Install Shopware 5

Ref: https://github.com/shopware/shopware (Shopware 5)
https://github.com/shopware/platform (Shopware 6)

Install Shopware 5:
Clone the git to ‘shopware5’ dir:

Go to the dir

Change the files permission

Go to ‘build’dir and use ‘ant’ to build the configuration and database.

If not exist, install it first:

configure:

Build:

Download the test images and extract them. Go to the root directory of your shopware system and download the test images:

BEWARE: the file size about 285MB !!!
Then unzip the file

RUN PHP CLI — OR USE NGINX ??? BECAUSE IT’D REDIRECT TO http://shopware5.test/

THEN OPEN IT ON YOUR BROWSER: http://localhost:8090/shopware.php
NOTE: MUST USE PHP7.2. IF LOWER THAN THAT, IT’D DISPLAY THIS ERROR:

If so, change the php version to 7.2 (min)

Then run the php cli again

NGINX SETUP:

CONTENT: (DONT USE THIS)

USE THIS: (READ: https://websiteforstudents.com/setup-shopware-on-ubuntu-16-04-18-04-lts-with-nginx-mariadb-and-php-7-1-fpm/)

 

Enable file config

 

Register the host on my system

Like this:

CHECK THE NGINX SETTING AND RESTART IT:

CHANGE FILE PERMISSIONS

OPEN IT ON YOUR BROWSER: http://shopware5.test/
IT SHOULD WORK! IF NOT CHECK /var/log/nginx/error.log
AND THE ADMIN PAGE ON http://shopware5.test/backend/
username: demo
password: demo

Frontend users in demo data
Customer: test@example.com / shopware
B2B: mustermann@b2b.de / mustermann