{"id":2542,"date":"2022-11-05T08:31:01","date_gmt":"2025-08-20T23:42:47","guid":{"rendered":""},"modified":"2025-02-02T00:46:18","modified_gmt":"2025-02-01T23:46:18","slug":"how-to-install-prestashop-with-apache-and-let-039-s-encrypt-ssl-on-centos-8","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-prestashop-with-apache-and-let-039-s-encrypt-ssl-on-centos-8\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 PrestaShop with Apache and Let&#039;s Encrypt SSL on CentOS 8"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>PrestaShop is a powerful open-source e-commerce platform that allows you to create a fully customizable online store. In this tutorial, we will guide you through the process of installing PrestaShop with Apache and securing it with Let&#8217;s Encrypt SSL on CentOS 8. Whether you&#8217;re hosting your website on a Linux server or a , the steps below will help you get started.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before we begin, ensure that you have the following:<\/p>\n<ul>\n<li>A CentOS 8 server with root access.<\/li>\n<li>A registered domain name.<\/li>\n<li>Apache web server installed.<\/li>\n<li>Access to Let&#8217;s Encrypt for SSL certificates.<\/li>\n<\/ul>\n<p>For those who prefer hosting on  servers, the process will be similar but adjusted for the Windows VPSenvironment.<\/p>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing any software, it&#8217;s important to ensure that your server is up to date. Run the following commands:<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<h2>Step 2: Install Apache Web Server<\/h2>\n<p>Next, you&#8217;ll need to install Apache. Use the following command:<\/p>\n<pre><code>sudo dnf install httpd -y<\/code><\/pre>\n<p>Once Apache is installed, start and enable the service:<\/p>\n<pre><code>sudo systemctl start httpd\r\nsudo systemctl enable httpd<\/code><\/pre>\n<h2>Step 3: Install PHP and Required Extensions<\/h2>\n<p>PrestaShop requires PHP to function. Install PHP and necessary extensions with the following command:<\/p>\n<pre><code>sudo dnf install php php-cli php-mysqlnd php-gd php-json php-curl php-zip php-xml php-mbstring -y<\/code><\/pre>\n<h2>Step 4: Install MariaDB (MySQL)<\/h2>\n<p>PrestaShop also requires a database to store information. Install MariaDB with the following command:<\/p>\n<pre><code>sudo dnf install mariadb-server -y<\/code><\/pre>\n<p>Start and enable MariaDB:<\/p>\n<pre><code>sudo systemctl start mariadb\r\nsudo systemctl enable mariadb<\/code><\/pre>\n<p>Secure your MariaDB installation by running:<\/p>\n<pre><code>sudo mysql_secure_installation<\/code><\/pre>\n<h2>Step 5: Download PrestaShop<\/h2>\n<p>Download the latest version of PrestaShop from the official website:<\/p>\n<pre><code>wget https:\/\/download.prestashop.com\/download\/releases\/prestashop_1.7.x.zip<\/code><\/pre>\n<p>Extract the files and move them to the Apache web root directory:<\/p>\n<pre><code>unzip prestashop_1.7.x.zip -d \/var\/www\/html<\/code><\/pre>\n<h2>Step 6: Configure Apache for PrestaShop<\/h2>\n<p>Create a new virtual host file for PrestaShop:<\/p>\n<pre><code>sudo nano \/etc\/httpd\/conf.d\/prestashop.conf<\/code><\/pre>\n<p>Add the following configuration:<\/p>\n<pre><code>&lt;VirtualHost *:80&gt;\r\n    ServerName yourdomain.com\r\n    DocumentRoot \/var\/www\/html\/prestashop\r\n    &lt;Directory \/var\/www\/html\/prestashop&gt;\r\n        AllowOverride All\r\n    &lt;\/Directory&gt;\r\n    ErrorLog \/var\/log\/httpd\/prestashop_error.log\r\n    CustomLog \/var\/log\/httpd\/prestashop_access.log combined\r\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n<p>Save the file and restart Apache:<\/p>\n<pre><code>sudo systemctl restart httpd<\/code><\/pre>\n<h2>Step 7: Install Let&#8217;s Encrypt SSL<\/h2>\n<p>Secure your PrestaShop installation with Let&#8217;s Encrypt SSL. First, install Certbot:<\/p>\n<pre><code>sudo dnf install certbot python3-certbot-apache -y<\/code><\/pre>\n<p>Now, obtain and install your SSL certificate:<\/p>\n<pre><code>sudo certbot --apache -d yourdomain.com<\/code><\/pre>\n<p>Follow the prompts to complete the SSL installation. Certbot will automatically configure your Apache server for SSL.<\/p>\n<h2>Step 8: Complete PrestaShop Installation<\/h2>\n<p>Open your browser and navigate to <code>http:\/\/yourdomain.com<\/code> to access the PrestaShop installation wizard. Follow the instructions to complete the setup process.<\/p>\n<h2>Benefits of Hosting on VPS<\/h2>\n<p>Using a  or <a href=\"https:\/\/ie.netcloud24.com\">virtual private server hosting Windows<\/a> ensures better performance for your PrestaShop store. With <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a> or  solutions, you get dedicated resources that improve your site\u2019s speed and reliability.<\/p>\n<p>Hosting PrestaShop on a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSServer VPS<\/a> gives you flexibility, and <a href=\"https:\/\/ie.netcloud24.com\">Microsoft SQL VPS Windows<\/a> or UK options can cater to both European and international customers.<\/p>\n<h2>Conclusion<\/h2>\n<p>PrestaShop is a powerful tool for e-commerce, and hosting it securely with Let&#8217;s Encrypt SSL ensures the best experience for your customers. Whether you&#8217;re using CentOS 8 or a <a href=\"https:\/\/ie.netcloud24.com\">UK Windows VPS<\/a>, following the steps above will help you get your store up and running smoothly.<\/p>\n<p>For reliable and scalable hosting, consider <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSVirtual Private Servers<\/a> or <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS<\/a> for your online business needs.<\/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 PrestaShop is a powerful open-source e-commerce platform that allows you to create a fully customizable online store. In this tutorial, we will guide 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-2542","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\/2542","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=2542"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2542\/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=2542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}