Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud Compute Engine

Install Shopware on Ubuntu 18.04 with LAMP – Google Cloud

by Cloudbooklet
4 years ago
in Compute Engine
Install Shopware On Ubuntu 18.04 With Lamp - Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Install Shopware on Ubuntu 18.04 with LAMP on Google Cloud. In this article you are going to learn how to install Shopware on Google Cloud with Ubuntu 18.04 LTS, Apache, PHP 7.3 and use Cloud SQL for Shopware database. Prerequisites A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 18.04 Initial Ubuntu Server Set […]

ADVERTISEMENT

Install Shopware on Ubuntu 18.04 with LAMP on Google Cloud. In this article you are going to learn how to install Shopware on Google Cloud with Ubuntu 18.04 LTS, Apache, PHP 7.3 and use Cloud SQL for Shopware database.

Prerequisites

  • A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 18.04
  • Initial Ubuntu Server Set up.
  • Install and configure Apache, PHP, see Install LAMP on Google Cloud.
  • For setting up Cloud DNS, see the Setting up Google Cloud DNS for your domain
  • A running Cloud SQL instance, see How to set up Cloud SQL in Google Cloud

Setup Installation Directories

Once you have LAMP setup completed and your domain name pointed to Google Cloud, you can proceed to setup web root directories for Shopware installation.

sudo mkdir -p  /var/www/html/shopware/public /var/www/html/shopware/logs

Now, you have the directories created and ready to setup virtual host configuration.

ADVERTISEMENT

Create Apache Virtual Host Config

First you need to disable the default virtual host configuration.

You might also like

How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago
How To Install Php-Fpm With Apache On Ubuntu 22.04

How to Install PHP-FPM with Apache on Ubuntu 22.04

1 year ago
sudo a2dissite 000-default

Create new configuration.

sudo nano /etc/apache2/sites-available/shopware.conf 

Paste the following in the file.

ADVERTISEMENT
<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName yourdomainname.com
    ServerAlias www.yourdomainname.com

    DocumentRoot /var/www/html/shopware/public

    <Directory /var/www/html/shopware/public>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/shopware_error.log 
    CustomLog ${APACHE_LOG_DIR}/shopware_access.log combined 
</VirtualHost>

Hit Ctrl + X followed by Y and Enter to save the file.

Enable the configuration

ADVERTISEMENT
sudo a2ensite shopware.conf

Enable Apache rewrite module

sudo a2enmod rewrite

Restart Apache.

ADVERTISEMENT
sudo systemctl restart apache2

Setup Free SSL for Shopware

Now you can install SSL to secure your website.

HTTPS is a protocol for secure communication between a server (instance) and a client (web browser). Due to the introduction of Let’s Encrypt, which provides free SSL certificates, HTTPS are adopted by everyone and also provides trust to your audiences.

ADVERTISEMENT
sudo add-apt-repository ppa:certbot/certbot
sudo apt update
sudo apt install python-certbot-apache

Now we have installed Cert bot by Let’s Encrypt for Ubuntu 18.04, run this command to receive your certificates.

sudo certbot --apache -m [email protected] -d yourdomainname.com -d www.yourdomainname.com

Select all the domains you need to receive the certificate and hit Enter

The Cert bot client will automatically generate the new certificate for your domain.

Now you will be asked to create a redirection to https

Select the appropriate option and hit Enter

Renewing SSL Certificate

Certificates provided by Let’s Encrypt are valid for 90 days only, so you need to renew them often. Now you set up a cronjob to check for the certificate which is due to expire in next 30 days and renew it automatically.

sudo crontab -e

Add this line at the end of the file

0 0,12 * * * certbot renew >/dev/null 2>&1

Hit CTRL+X followed by Y to save the changes.

This cronjob will attempt to check for renewing the certificate twice daily.

Download Shopware

To download shopware navigate to the root directory and download the package for the official website.

cd /var/www/html/shopware/public

Download Shopware package. The current latest version is 5.5.8

sudo wget -O shopware.zip https://releases.shopware.com/install_5.5.8_d5bf50630eeaacc6679683e0ab0dcba89498be6d.zip

Extract the downloaded zip file.

sudo unzip shopware.zip

Now you are ready to install Shopware from your web browser.

Install Shopware

Now visit your website in the browser and select the language you would like to use and click Next.

Shopware Installation

Next is the system requirements check for Shopware. Click Next.

Shopware System Requirements

Accept the Terms and Conditions and proceed to Database configuration.

Configure Database

Configure database connections details with the Cloud SQL credentials.

  • Database Server: IP address of Cloud SQL
  • Database User: Username created in Cloud SQL
  • Database Password: Password for the user.
  • Database name: Select the database from the dropdown.

Click Next.

Click Start Installation to install Shopware.

Start Installation

Wait for the installation to complete and select the license you are going to use.

Configure your admin login credentials.

Admin Configuration

Now you have completed the installation and ready to use Shopware.

Installation Complete

Conclusion

Now you have installed Shopware on Ubuntu 18.04 with Apache, PHP 7.3 and connected with Cloud SQL. You also secure the installation with free autorenewable SSL certificate from Let’s Encrypt.

Hope this helps to install Shopware on Google Cloud

Tags: Compute EngineGoogle Cloud PlatformUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

How To Install And Setup Mern Stack With Nginx On Ubuntu

How to Install and Setup MERN Stack with Nginx on Ubuntu

2 years ago
Best Performance Wordpress With Google Cloud Cdn And Load Balancing

Best Performance WordPress with Google Cloud CDN and Load Balancing

2 years ago
Install Cpanel On Ubuntu

How to Install cPanel & WHM on Ubuntu 20.04

2 years ago
How To Install And Setup Csf

How to Secure your Ubuntu server with CSF Firewall

2 years ago

Follow Us

Trending Articles

Chatgpt For Marketing

Top 10 Ways to Use ChatGPT for Marketing in 2023

September 22, 2023

Microsoft Unveils New Disc-Less Xbox Series X with Lift-to-Wake Controller

Validator AI: The AI Powered Business Idea Validator

Best 10 AI Comic Generator: Create Comic book in Seconds

HeyGen AI: Free AI Video Generator to Create Amazing Videos

5 Best TikTok Private Account Viewer in 2023

Popular Articles

Find Songs On Youtube

How to Find Songs on YouTube by Humming the Tune

August 26, 2023

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

How to Clear Gmail Inbox with AI: Tips and Tricks

9 Best AI Image Inpainting: Create and Recreate Stunning Images

9 Best AI Story Generators to Unleash Your Creativity

7 Best AI Content Detectors to Check Plagiarism

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.