{"id":2551,"date":"2022-10-07T06:48:13","date_gmt":"2025-01-28T21:00:29","guid":{"rendered":""},"modified":"2025-02-02T00:46:18","modified_gmt":"2025-02-01T23:46:18","slug":"how-to-install-shopware-6-with-nginx-and-let-039-s-encrypt-on-centos-8","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-shopware-6-with-nginx-and-let-039-s-encrypt-on-centos-8\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Shopware 6 with NGINX and Let&#039;s Encrypt on CentOS 8"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>Shopware 6 is a powerful and customizable e-commerce platform that allows you to create modern online stores. In this guide, we will walk you through the process of installing Shopware 6 with NGINX and securing it using Let&#8217;s Encrypt SSL on CentOS 8. If you&#8217;re using a , the steps may differ slightly, but the overall process is similar. Shopware 6 is highly scalable, making it ideal for hosting on  or any <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSVirtual Private Servers<\/a>.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before we begin, ensure you have the following:<\/p>\n<ul>\n<li>A CentOS 8 server with root access.<\/li>\n<li>A registered domain name pointed to your server.<\/li>\n<li>NGINX installed on your server.<\/li>\n<li>PHP 7.4 or later with required extensions installed.<\/li>\n<li>MySQL or MariaDB database server installed.<\/li>\n<\/ul>\n<p>If you&#8217;re using  or <a href=\"https:\/\/ie.netcloud24.com\">Microsoft SQL VPS Windows<\/a>, ensure you have a similar environment setup to follow this guide.<\/p>\n<h2>Step 1: Update Your System<\/h2>\n<p>Start by updating your CentOS 8 system to ensure all packages are up to date:<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<h2>Step 2: Install NGINX<\/h2>\n<p>To install NGINX on CentOS 8, use the following command:<\/p>\n<pre><code>sudo dnf install nginx -y<\/code><\/pre>\n<p>Start and enable NGINX:<\/p>\n<pre><code>sudo systemctl start nginx\r\nsudo systemctl enable nginx<\/code><\/pre>\n<h2>Step 3: Install PHP and Required Extensions<\/h2>\n<p>Shopware 6 requires PHP and several extensions. Install PHP 7.4 and the required extensions:<\/p>\n<pre><code>sudo dnf install php php-fpm php-mysqlnd php-json php-gd php-xml php-mbstring php-zip php-opcache php-intl -y<\/code><\/pre>\n<p>Start and enable PHP-FPM:<\/p>\n<pre><code>sudo systemctl start php-fpm\r\nsudo systemctl enable php-fpm<\/code><\/pre>\n<h2>Step 4: Install and Configure MySQL<\/h2>\n<p>Next, install MySQL to manage your Shopware 6 database:<\/p>\n<pre><code>sudo dnf install @mysql -y<\/code><\/pre>\n<p>Start and secure your MySQL installation:<\/p>\n<pre><code>sudo systemctl start mysqld\r\nsudo mysql_secure_installation<\/code><\/pre>\n<p>Create a database and user for Shopware:<\/p>\n<pre><code>mysql -u root -p\r\nCREATE DATABASE shopware;\r\nCREATE USER 'shopwareuser'@'localhost' IDENTIFIED BY 'your_password';\r\nGRANT ALL PRIVILEGES ON shopware.* TO 'shopwareuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;<\/code><\/pre>\n<h2>Step 5: Download and Configure Shopware 6<\/h2>\n<p>Download the latest version of Shopware from the official website:<\/p>\n<pre><code>wget https:\/\/www.shopware.com\/en\/Download\/redirect\/version\/sw6\/file\/install_v6.4.0.0.zip<\/code><\/pre>\n<p>Extract the files and move them to your web directory:<\/p>\n<pre><code>sudo unzip install_v6.4.0.0.zip -d \/var\/www\/html\/shopware<\/code><\/pre>\n<p>Set the appropriate permissions:<\/p>\n<pre><code>sudo chown -R nginx:nginx \/var\/www\/html\/shopware\r\nsudo chmod -R 755 \/var\/www\/html\/shopware<\/code><\/pre>\n<h2>Step 6: Configure NGINX for Shopware 6<\/h2>\n<p>Create a new NGINX configuration file for Shopware:<\/p>\n<pre><code>sudo nano \/etc\/nginx\/conf.d\/shopware.conf<\/code><\/pre>\n<p>Add the following configuration:<\/p>\n<pre><code>server {\r\n    listen 80;\r\n    server_name yourdomain.com;\r\n    root \/var\/www\/html\/shopware\/public;\r\n\r\n    index index.php index.html index.htm;\r\n\r\n    location \/ {\r\n        try_files $uri \/index.php$is_args$args;\r\n    }\r\n\r\n    location ~ \\.php$ {\r\n        include fastcgi_params;\r\n        fastcgi_pass unix:\/var\/run\/php-fpm\/www.sock;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        include fastcgi_params;\r\n    }\r\n\r\n    location ~ \/\\.ht {\r\n        deny all;\r\n    }\r\n}<\/code><\/pre>\n<p>Save and exit the file, then restart NGINX:<\/p>\n<pre><code>sudo systemctl restart nginx<\/code><\/pre>\n<h2>Step 7: Install Let&#8217;s Encrypt SSL<\/h2>\n<p>To secure your Shopware installation with SSL, install Certbot and Let&#8217;s Encrypt:<\/p>\n<pre><code>sudo dnf install certbot python3-certbot-nginx -y<\/code><\/pre>\n<p>Obtain and install your SSL certificate:<\/p>\n<pre><code>sudo certbot --nginx -d yourdomain.com<\/code><\/pre>\n<p>Follow the prompts to complete the SSL installation, and Certbot will automatically configure NGINX to use HTTPS.<\/p>\n<h2>Step 8: Complete Shopware Installation<\/h2>\n<p>Open your browser and navigate to <code>https:\/\/yourdomain.com<\/code> to access the Shopware installation wizard. Follow the on-screen instructions to configure the database and complete the setup.<\/p>\n<h2>Benefits of Hosting Shopware 6 on a VPS<\/h2>\n<p>Hosting Shopware 6 on a  or a <a href=\"https:\/\/ie.netcloud24.com\">virtual private server hosting Windows<\/a> ensures better performance and scalability for your online store. Whether you&#8217;re using a <a href=\"https:\/\/ie.netcloud24.com\">UK Windows VPS<\/a> or a <a href=\"https:\/\/ie.netcloud24.com\">Microsoft SQL VPS Windows<\/a>, hosting on <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSVirtual Private Servers<\/a> provides dedicated resources that can handle high traffic and ensure optimal performance for your Shopware store.<\/p>\n<p>Consider using <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS<\/a> for enhanced control and reliability when managing a large-scale e-commerce platform like Shopware 6.<\/p>\n<h2>Conclusion<\/h2>\n<p>By following this guide, you can successfully install Shopware 6 with NGINX and Let&#8217;s Encrypt SSL on CentOS 8. This setup ensures that your online store is secure and performs optimally. If you&#8217;re looking for scalable hosting solutions, consider <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS Hosting UK<\/a> to benefit from reliable, high-performance VPS hosting for your e-commerce website.<\/p>\n<\/article>\n<footer>\n<p>\u00a9 2024 VPS Hosting Solutions<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Shopware 6 is a powerful and customizable e-commerce platform that allows you to create modern online stores. In this guide, we will walk you through the\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2551"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}