How to Install Shopware with Nginx on Ubuntu 22.04

Published: 05 June 2023
on channel: MivoCloud
775
47

Shopware community edition is a free and open-source shopping cart platform used that allows you to start your own online shop on the web. It is written in Symfony and Vue.js and based on a modern technology stack. It is an alternative solution to other eCommerce applications, like Magento. It offers a beautiful and user-friendly web UI used for managing clients and orders. It allows you to manage the prices of products, change or update themes, design email templates for marketing your products, and generate statistical results.

In this tutorial, we will show you how to install Shopware CE with Nginx on Ubuntu 22.04.

Useful Links:
VPS/VDS - https://www.mivocloud.com/

Commands Used:
apt-get install nginx mariadb-server -y
apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php

apt-get install php7.2 php7.2-cli php7.2-fpm php7.2-common php7.2-mysql php7.2-curl php7.2-json php7.2-zip php7.2-gd php7.2-xml php7.2-mbstring php7.2-intl php7.2-opcache git unzip socat curl bash-completion -y

nano /etc/php/7.2/fpm/php.ini
wget https://downloads.ioncube.com/loader_...
tar xfz ioncube_loaders_lin_x86-64.tar.gz
php -i | grep extension_dir
cp ioncube/ioncube_loader_lin_7.2.so /usr/lib/php/20170718/
nano /etc/php/7.2/fpm/php.ini
zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so
systemctl restart php7.2-fpm
mysql_secure_installation
mysql -u root -p
CREATE DATABASE shopwaredb;
GRANT ALL ON shopwaredb.* TO 'shopware'@'localhost' IDENTIFIED BY 'password';
flush privileges;
exit;
mkdir /var/www/html/shopware

cd /var/www/html/shopware
wget http://releases.s3.shopware.com.s3.am... -O shopware.zip

unzip shopware.zip
chown -R www-data:www-data /var/www/html/shopware
chmod -R 755 /var/www/html/shopware

nano /etc/nginx/sites-available/shopware.conf

server {
listen 80;

server_name ip or domain; # Check this
root /var/www/html/shopware; # Check this

index shopware.php index.php;

location / {
try_files $uri $uri/ /shopware.php$is_args$args;
}

location /recovery/install {
index index.php;
try_files $uri /recovery/install/index.php$is_args$args;
}

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # Check this
}
}

ln -s /etc/nginx/sites-available/shopware.conf /etc/nginx/sites-enabled/
nginx -t
systemctl reload nginx
systemctl status nginx


Watch video How to Install Shopware with Nginx on Ubuntu 22.04 online without registration, duration hours minute second in high quality. This video was added by user MivoCloud 05 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 775 once and liked it 47 people.