How to Install PrestaShop on Windows 11
If you're looking to start an online store, then you might want to consider PrestaShop. It's a free, open-source eCommerce platform that's easy to install and use. In this tutorial, we'll show you how to install PrestaShop on Windows 11, step by step.
Prerequisites
Before we begin, there are a few things you need to have and know:
- A Windows 11 computer
- A web server (Apache or Nginx)
- PHP version 7.1 or later
- A MySQL or MariaDB server
- A web browser
- Basic understanding of the command line interface (CLI) and web servers
Step 1: Download PrestaShop
To download PrestaShop, visit their website at https://www.prestashop.com/. Click on the "Download" button, and choose the latest stable version.
Step 2: Install a Web Server
To install Apache or Nginx on Windows 11, follow these steps:
- Open PowerShell by right-clicking on the start menu and selecting "Windows PowerShell."
- Type the following command to install the Apache web server:
PS C:\Users\username> Install-WindowsFeature Web-Server -IncludeManagementTools
- Type the following command to install PHP:
PS C:\Users\username> Install-WindowsFeature php
- Type the following command to install the MySQL/MariaDB server:
PS C:\Users\username> Install-WindowsFeature MySQLServer
Step 3: Configure the Server
Now that you have installed the web server and the database server, you need to configure them properly.
- Open the Apache configuration file located in
C:\Program Files\Apache Group\Apache2\conf\httpd.confwith a text editor. - Find the line that says
#LoadModule rewrite_module modules/mod_rewrite.soand remove the#in front of it to enable URL rewriting. - Save and close the file.
- Restart the Apache server by typing the following command in PowerShell:
PS C:\Users\username> Restart-Service apache2.2
Step 4: Create a Database
- Open the MySQL/MariaDB prompt by typing the following command in PowerShell:
PS C:\Users\username> mysql -u root -p
- Enter your root password when prompted.
- Type the following command to create a new database:
mysql> CREATE DATABASE prestashop;
- Type the following command to create a new user and grant it access to the
prestashopdatabase:
mysql> GRANT ALL PRIVILEGES ON prestashop.* TO 'prestashop_user'@'localhost' IDENTIFIED BY 'new_password';
- Replace
new_passwordwith a secure password of your choice.
Step 5: Install PrestaShop
- Extract the PrestaShop archive you downloaded in Step 1 to
C:\Apache24\htdocs\prestashop. - Open your web browser and navigate to
http://localhost/prestashop. - Choose your language and click "Next."
- Read and agree to the license agreement, then click "Next."
- The installation wizard will check your server configuration. Fix any errors that are displayed.
- Enter your database details:
- Database Server Address:
localhost - Database Server Login:
prestashop_user - Database Server Password:
<new_password> - Database Name:
prestashop
- Choose your store's currency, and set up an administrator account.
- Click "Next" to finish the installation.
- Remove the
installfolder from the PrestaShop directory to prevent security issues.
Conclusion
Congratulations! You have successfully installed PrestaShop on your Windows 11 computer. Now you can start setting up your online store and customizing its design.