Start a Project

How to setup Shopware on AWS

What is Shopware

Shopware is an integrated tool for marketing and creating online stores.

Apart from other solutions such as Shopify or PrestaShop, many businesses are starting to see Shopware as the perfect tool to create their e-commerce platforms.

Prerequisites for Shopware installation-

1- Ubuntu-20.04 instance

2- SSH access of the root users or any user with full privileges is mandatory.

Step 1 – Log in to your EC2 instance with SSH for installation.

Take the SSH access of the EC2 instance with the below command

Step 2 – Install the Apache web server 

Log in to the root user to update the packages and then install the APACHE web server:-

Step 3 – Install the PHP 8.1 version

To install the PHP 8.1 version, follow the below commands:-

However, Make sure all the packages are updated or upgraded on the server:-

Add Ondřej Surý PPA repository

Note – Further, this command will ask for input. Just press <Enter> to continue.

Update the repository with the below command:-

Now install PHP 8.1 on Ubuntu. Run the below command:-

Install all PHP extensions and dependencies with the below command:-

Further, Check the PHP version and PHP modules with the below commands:-

Now, make some changes in the PHP variable values with the below commands:

After the PHP changes, make sure to restart the Apache service.

Step 4 – Installation of MariaDB Database server with the below steps:-

Note- We have two options for managing the Database service with our website.

case1:- we can manage the database service from the localhost with the following commands:-

Run the below command for the Maraidb server installation:-

Then, Check the status of the MariaDB server with the below commands:-

Start and stop the MariaDB server with the below commands:-

Once MariaDB is installed, run the below command to configure the database configurations:-

Note – Choose the default option and set the MariaDB root password.

When prompted, answer the questions below by following the guide.

Restart the MariaDB service after the configurations:-

Case 2:- We can also use the AWS service (RDS) for managing the database service.

Amazon RDS makes it easy to use replication to enhance availability and reliability for production workloads.

Amazon’s Relational Database Service is a cloud-native database platform that is truly awesome and a real opportunity to save time, eliminate the hassle, and improve performance.

Firstly you have to launch an RDS and then configure it with your AWS EC2 instance.

The below command is used for connectivity with the RDS database:-

Step 5 – Create the database and DB user:-

First, go to the MySQL Shell and run the below commands:-

Further, create the DB user for Shopware

Then, grant the privileges to the user for managing the database.

GRANT ALL PRIVILEGES ON shopware.* TO ‘admin’@localhost IDENTIFIED BY ‘admin@123’;

Now, save all the changes and exit from the MySQL shell with the below command:-

Step 6 – Download the latest release 5.6 of Shopware:-

For installation of Shopware, we need to install curl and git for a composer with the below commands:-

Now, Go to the default document root folder to download the project of Shopware.

Follow the below steps:-

Before Downloading, make sure the unzip command is installed on the Server.

Now, we have to put in some input after executing the install.sh script:-

Enter your shop URL incl. protocol and path (default: http://shopware.example/path): http://your_domain-name
Would you like to install demo data? (Y/n) y

Provide the default permission for normal functions:-

Step 7 – Configure the Virtual host of apache2

Now, we have to set the apache2 virtual host for managing the Shopware content with the below commands:-

Now, exit from the vi editor and run the below command:-

Restart the Apache2 webserver service with the following command:-

Your Shopware is configured successfully, open the browser and check with the domain URL.

http://your_domain_name

Great, Your Shopware website is successfully installed on ubuntu-20.04.

Need Support?

Thank You for reading this Blog!

For further more interesting blogs, keep in touch with us. Also if you need any kind of support, simply raise a ticket at https://webkul.uvdesk.com/en/.

You may also check our quality Shopware Extensions.

You may also visit our Shopware Demos https://shopware6demo.webkul.com/homepage.html

For further help or queries, please contact us or raise a ticket.

Exit mobile version