Categories: Shopware

Shopware 6 – Local installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you choose to local installation follow these steps to install Shopware 6 in Ubuntu.

Preparation

Per default the development template has shopware/platform in the version dev-master as requirement in its composer.json file. This always corresponds to the latest commit on the master branch on GitHub.

# Clone the development template
$ git clone https://github.com/shopware/development.git
$ cd development

#Clone the platform code manually
$ rm -rf platform
$ git clone https://github.com/shopware/platform.git

Normally, Shopware platform code would be placed into a vendor/shopware/platform directory where you don’t want to change any code. Thus we’ve cloned platform manually to work with code itself. Otherwise IDEs would have prevent you for changing any code in the vendor directory.

Local Installation

First up we need to setup Apache to locate Shopware 6. You should add a vhost to your Apache site configuration that looks like this:

<VirtualHost *:80>
   ServerName "HOST_NAME"
   DocumentRoot _DEVELOPMENT_DIR_/public

   <Directory _DEVELOPMENT_DIR_>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/shopware-platform.error.log
   CustomLog ${APACHE_LOG_DIR}/shopware-platform.access.log combined
   LogLevel debug
</VirtualHost>

Please remember to replace _DEVELOPMENT_DIR_ and _HOST_NAME_ with your preferences respectively and add the corresponding entry to your /etc/hosts file.

# Restart the apache2 server
$ sudo systemctl restart apache2.service

After a quick restart of apache you are done here.

# Invoke a simple CLI installation wizard
$ bin/setup

This is the by far more complex installation solution since additional or changed system requirements need to be managed by you. If you are comfortable with Docker, please refer to Shopware 6 Docker Installation.

Have fun!

Emre KARABULUT

Hi, I’m Emre KARABULUT, 29, and I am the owner of a small (but perfectly formed) design studio called Minimalist Art & Design based in Istanbul, which specialises in Blog and User Interface design. I help entrepreneurs and small business owners create a unique brand and online presence which gives them a powerful platform to reach out to their customers and markets.

Recent Posts

Authenticating with the Apple Search Ads API

There are many methods for using APIs. In order to understand it better, lets take…

3 years ago

How To Add Swap Space on Ubuntu 20.04 or 20.10

One way to guard against out-of-memory errors in applications is to add some swap space.…

4 years ago

Install Docker-Compose on Ubuntu 20.04 or 20.10

Docker Compose is a tool that allows you to run multi-container application environments based on…

4 years ago

Shopware 6 – Docker installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…

4 years ago

Shopware 6 – Installing System Requirements in Ubuntu 20.04 or 20.10

To create a development environment in fresh install of Linux - Ubuntu 20.04 (Focal Fossa)…

4 years ago

Install Docker on Ubuntu 20.04 or 20.10

Make sure your Ubuntu is up to date and patched. $ sudo apt update $…

4 years ago