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
|
1 |
sudo gedit /etc/apache2/sites-available/shopware6.test.conf |
CONTENT
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<VirtualHost shopware6.test:80> ServerName shopware6.test DocumentRoot "/home/teddy/Documents/works/shopware6/public" <Directory "/home/teddy/Documents/works/shopware6/public"> #Options Indexes FollowSymLinks MultiViews AllowOverride All #Order allow,deny allow from all Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/shopware6.error.log CustomLog ${APACHE_LOG_DIR}/shopware6.access.log combined LogLevel debug </VirtualHost> |
ENABLE THE VIRTUALHOST
|
1 |
sudo a2ensite shopware6.test.conf |
RELOAD APACHE2
|
1 |
sudo systemctl reload apache2 |
CREATE THE HOST
|
1 |
sudo gedit /etc/hosts |
|
1 |
127.0.0.1 shopware6.test |
SET THE FILE PERMISSIONS & RELOAD APACHE2
|
1 2 |
teddy@teddy:~$ sudo chown -R www-data:www-data /home/teddy/Documents/works/shopware6/ teddy@teddy:~$ sudo chmod -R 777 /home/teddy/Documents/works/shopware6/ |
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:
|
1 |
sudo gedit /etc/php/7.4/apache2/php.ini |
CHANGE THE CONTENT:
|
1 2 3 4 5 6 |
upload_max_filesize = 4000M -> (default 2M) max_file_uploads = 2000 -> (default 20) post_max_size = 4000M -> (default 8M) max_execution_time = 6000 -> (default 30) in second max_input_time = 6000 -> (default 60) in second memory_limit = 5120M -> (default 128M) |
THEN RESTART APACHE2 SERVICE:
|
1 |
sudo systemctl reload apache2 |
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#/

