Skip to content

Set Up PrestaShop on a Linux Server – Host Your Own Online Store

Set up PrestaShop as a One-Click App or with Docker on your VPS, switch your store to German and euros, and configure order emails.

1 December 202614 min read4 Views0 helpful

Introduction

PrestaShop is free e-commerce software (open source, OSL 3.0 license) that lets you run your own online store. You manage products with variants, images, and stock levels; handle orders, customers, invoices, and vouchers in the admin area (the “Back Office”); and customize your store’s appearance with themes. You can add payment methods, shipping providers, and many other features using modules.

This guide shows you two ways to get started: the easy way, as a One-Click App, where PrestaShop runs at your address with a database, HTTPS, and a preconfigured administrator account; and a manual installation with Docker Compose. After that, you’ll switch the store to German and euros, configure email delivery for orders, and prepare the store for launch.

When PrestaShop on a VPS makes sense

PrestaShop on your own server is the right choice if:

  • You don’t want to pay monthly fees or sales commissions to a store builder. The software itself is free; you only pay for your server and, if applicable, individual modules.
  • You need full control over your store and data. Products, orders, and customer data are stored in the database on your server, and you can freely customize code, themes, and modules.
  • You want to build a traditional online store with many products, including variants (size, color), categories, tax rules, shipping costs by weight or zone, and multiple languages and currencies.
  • You want to test or develop a store, for example, a new theme or module.

PrestaShop is less suitable if you only want to sell a few products alongside an existing WordPress site. In that case, WooCommerce on WordPress is often the easier option. Also keep in mind that an online store needs ongoing maintenance. You’re responsible for updates, backups, legal notices, and payment providers.

The easy way: PrestaShop as a One-Click App

The fastest way to get PrestaShop is through your VPS’s One-Click Apps. With a domain, the store is immediately accessible over HTTPS. The One-Click App configures the database, reverse proxy, and certificate for you, and installs PrestaShop automatically. There’s no open installation wizard that someone else could access before you.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
  • PrestaShop requires at least 1 vCore, 1 GB of RAM, and 3 GB of storage. We recommend 2 vCores, 2 GB of RAM, and 20 GB of storage, or more if you have many product images.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search the App catalog for PrestaShop and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected. Leave it enabled and enter a name, for example, shop. Without a domain, the store would only be accessible over HTTP, and HTTPS is essential for an online store.
  4. Open App configuration and enter your email address for ADMIN_MAIL. This field is required: you’ll use this address to sign in to the Back Office, and PrestaShop will send a password reset link to it if you forget your password.
  5. Optionally, set the store’s language and country: PS_LANGUAGE (default en) and PS_COUNTRY (default GB). For a store in Germany, enter de and DE. The store and Back Office will then start in German, with Germany as the country and the euro as the default currency.
  6. Click Queue installation. After the images have been downloaded, the automatic setup takes one to two minutes.
Info: Setup runs before the first visit

PrestaShop sets itself up on first startup: it creates the database and administrator account, then deletes the installation folder. The web server only starts afterward. Until then, your address won’t display a page. This is normal.

First sign-in to the Back Office

You can find the store itself at the app’s Access link. You manage it in the Back Office, which is in a folder with a randomly generated name. This keeps automated scanners from finding the login page at the familiar /admin path.

  1. Open the app settings (gear icon) and switch to App environment. Under Automatically generated values, you’ll find:

    • SERVICE_HEX_32_BACKOFFICE: the random part of the folder name
    • SERVICE_PASSWORD_PRESTASHOPADMIN: your Back Office password

    Click the eye icon to show a value, or the icon next to it to copy it.

  2. Open the Back Office at https://shop.example.com/admin-VALUE/. Replace shop.example.com with the address from the Access link and VALUE with the value of SERVICE_HEX_32_BACKOFFICE.

  3. Sign in with the email address from ADMIN_MAIL and your password, then click Log in.

After signing in, you’ll see the Back Office dashboard, with orders, revenue, and menus for your catalog, customers, and settings.

Bookmark the Back Office address. You can change your password in the Back Office by clicking the profile icon in the top-right corner and selecting Your profile. After that, only your new password will work; the value in the App environment will be outdated.

Warning: Your store is public right away

PrestaShop starts with sample products, customers, and orders, and is immediately accessible to visitors. Put the store in maintenance mode until your products, payment methods, and legal notices are ready. See “Prepare your store for launch” below for instructions.

What the One-Click App configures

The One-Click App starts two containers: prestashop, which runs Apache, PHP, and the store, and the MariaDB database, db. The database is only accessible to the store, not from the internet. The language and country come from PS_LANGUAGE and PS_COUNTRY; without custom values, the store uses English and the United Kingdom. Tax rates aren’t configured in either case. You can add them, along with everything else needed for Germany, in just a few clicks. See “Switch your store to German and euros” below.

Here’s what the store looks like right after installation at the Access link:

During installation, the One-Click App permanently sets the domain in PrestaShop. If you later change the app’s address under App actions, update the new domain in the Back Office too: go to Shop Parameters > Traffic & SEO, then under Set shop URL, update Shop domain and SSL domain. Otherwise, the store will redirect to the old address.

Updates and backups

Under App update, click Check for updates to find new image versions. Updating the image does not update the store itself: the code, modules, and themes are stored in the prestashop-data volume and remain unchanged. Install new PrestaShop versions in the Back Office using the Update Assistant module (formerly “1-Click Upgrade”), which you must upload yourself first. See “Update PrestaShop” below.

The database and store files are stored in the prestashop-db and prestashop-data volumes. Both are included in a backup of your VPS from the Backups tab. Create a backup before every PrestaShop update or major module update.

Manual installation

The rest of this guide covers a manual installation of PrestaShop with Docker Compose on your VPS. This is useful, for example, if you don’t use One-Click Apps on your server or want to manage the store yourself alongside other services. This setup is based on the official PrestaShop Docker image and the project’s Docker guide.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First access over SSH.
  • Docker and Docker Compose. See Install Docker. Verify the installation with docker --version and docker compose version.
  • A domain or subdomain with an A record pointing to your VPS’s IP address (for example, shop.example.com). A store without HTTPS isn’t an option, since customers will enter their addresses and payment details.

PrestaShop runs with Apache and PHP in one container, alongside a MariaDB database. Storage requirements grow mainly with the number of product images:

MinimumRecommended
CPU1 vCore2 vCores
RAM1 GB2 GB
Storage3 GB20 GB

Prepare the firewall

PrestaShop listens on port 80 inside the container. Don’t open this port directly; the store should only be accessible over HTTPS through a reverse proxy. Use ufw to allow only SSH and the reverse proxy ports:

Code
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status

In the Compose file below, the store is bound only to 127.0.0.1:8080. This means only the reverse proxy on the same server can access it, even if Docker adds its own firewall rules. The database has no externally accessible port.

Install with Docker Compose

Create a folder for PrestaShop and write the access credentials to the .env file. Generate random database passwords and an admin folder name, then enter your own email address and administrator account password:

Code
mkdir -p ~/prestashop && cd ~/prestashop
echo "DB_PASSWORD=$(openssl rand -hex 16)" > .env
echo "DB_ROOT_PASSWORD=$(openssl rand -hex 16)" >> .env
echo "ADMIN_FOLDER=admin$(openssl rand -hex 4)" >> .env
echo "ADMIN_MAIL=admin@example.com" >> .env
echo "ADMIN_PASSWORD=YOUR_PASSWORD" >> .env
chmod 600 .env
nano .env

In nano, replace the email address and password with your own values. The email address must be valid, since PrestaShop will send a password reset link to it if you forget your password, for example.

Next, create a file named compose.yaml in the ~/prestashop folder:

Code
services:
  db:
    image: mariadb:11.8
    restart: unless-stopped
    environment:
      MARIADB_DATABASE: prestashop
      MARIADB_USER: prestashop
      MARIADB_PASSWORD: ${DB_PASSWORD}
      MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
    volumes:
      - ./db:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 10s
      timeout: 5s
      retries: 10

  prestashop:
    image: prestashop/prestashop:8.2.9-apache
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
    ports:
      - "127.0.0.1:8080:80"
    environment:
      DB_SERVER: db
      DB_NAME: prestashop
      DB_USER: prestashop
      DB_PASSWD: ${DB_PASSWORD}
      PS_DOMAIN: shop.example.com
      PS_INSTALL_AUTO: 1
      PS_ENABLE_SSL: 1
      PS_LANGUAGE: de
      PS_COUNTRY: DE
      PS_FOLDER_ADMIN: ${ADMIN_FOLDER}
      ADMIN_MAIL: ${ADMIN_MAIL}
      ADMIN_PASSWD: ${ADMIN_PASSWORD}
    volumes:
      - ./html:/var/www/html

Key lines:

  • image uses the official image with a fixed version number—in this case, PrestaShop 8.2.9, as used by the One-Click App. Find the available versions on Docker Hub.
  • ports binds the store only to 127.0.0.1. The port can’t be reached from outside.
  • PS_INSTALL_AUTO: 1 automatically installs PrestaShop with your administrator account on first startup. This prevents the installation wizard from ever opening in a browser, and the image deletes the install folder afterward.
  • PS_DOMAIN is the address where the store will run. Replace shop.example.com with your domain.
  • PS_ENABLE_SSL: 1 enables HTTPS for the entire store. The reverse proxy tells PrestaShop that the connection is encrypted using the X-Forwarded-Proto header.
  • PS_LANGUAGE and PS_COUNTRY set the language and country. With de and DE, the store and Back Office start in German with euros. The installation doesn’t add tax rates; you can add them with the localization pack (see “Switch your store to German and euros”).
  • PS_FOLDER_ADMIN sets the Back Office folder name to the randomly generated name from the .env file.
  • ./db and ./html contain the database and all store files, including modules, themes, and product images.

Start PrestaShop:

Code
docker compose up -d
docker compose logs -f prestashop

The installation takes one to two minutes. It’s finished when -- Installation successful! -- appears, followed shortly by Starting web server now. Press Ctrl+C to exit the log view; the containers will keep running.

Info: Why PrestaShop 8.2 instead of 9?

PrestaShop 9 has already been released. However, in the official Docker image 9.2.1, automatic installation fails if you set a custom admin folder with PS_FOLDER_ADMIN (error: The target directory "/var/www/html/admin-dev" does not exist). This guide therefore uses the proven version 8.2, as the One-Click App does.

Access over HTTPS through a reverse proxy

Set up nginx as a reverse proxy as described in Set up a reverse proxy with nginx, and get a certificate as explained in SSL certificate with Let’s Encrypt. The server block for PrestaShop looks like this:

Code
server {
    listen 80;
    server_name shop.example.com;

    client_max_body_size 20m;

    location / {
        proxy_pass         http://127.0.0.1:8080;
        proxy_set_header   Host $host;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }
}
  • Host must be the domain from PS_DOMAIN. If someone accesses the store using a different address, PrestaShop redirects them to this domain.
  • X-Forwarded-Proto is required. If this header is missing, PrestaShop treats every request as unencrypted and redirects to HTTPS endlessly.
  • client_max_body_size allows uploads of up to 20 MB, the PHP limit in the image. Without this line, nginx will stop product image uploads larger than 1 MB.

Then run sudo nginx -t and sudo systemctl reload nginx, and get the certificate with sudo certbot --nginx -d shop.example.com.

First visit

You can now access the store at https://shop.example.com. Open the Back Office at https://shop.example.com/ followed by the admin folder name. Run this command to find the name:

Code
grep ADMIN_FOLDER ~/prestashop/.env

Sign in using the email address and password from the .env file. Visitors will find nothing at /admin or /install; both paths return “Not Found.”

Back up your data

Everything is stored in the ~/prestashop folder. Since the database is continuously writing data, briefly stop the containers to create a clean backup:

Code
cd ~/prestashop
docker compose stop
sudo tar czf ~/prestashop-backup-$(date +%F).tar.gz db html .env compose.yaml
docker compose start

Copy the archive to another computer or storage location. To restore it, stop PrestaShop with docker compose down, extract the archive in the ~/prestashop folder (using sudo to preserve file permissions), and restart with docker compose up -d.

Update PrestaShop

Pulling a newer image isn’t enough to update PrestaShop. The store code is in the html folder, and the image only copies it there during the initial installation. A new image therefore provides security updates for PHP and Apache, but not a new PrestaShop version.

Install new PrestaShop versions in the Back Office:

  1. Create a backup as described above.
  2. The Update Assistant module (formerly “1-Click Upgrade,” technical name autoupgrade) isn’t included in the Docker image. Download it as a ZIP file from the project’s release page, then upload it under Modules > Module Manager using Upload a module.
  3. Open the module, review its notes about modules and themes, and start the update.

The Module Manager shows updates for individual modules in the Updates tab.

Update the image itself by entering a newer 8.2 version in compose.yaml, then running docker compose pull and docker compose up -d.

Configure your store

After installation, the Back Office displays the language PrestaShop was set up with. If you don’t specify a value for PS_LANGUAGE, the language is English, so this guide uses the English menu labels. In German, they’ll appear in German instead.

Switch your store to German and euros

If you didn’t change anything during installation, the store is in English and set to the United Kingdom. Tax rates are missing after every installation, even if you used de and DE. Import a localization pack to add the language, currency, tax rates, and measurement units for Germany in one step:

  1. In the Back Office, open International > Localization.
  2. Under Import a localization pack, select Germany and leave all contents selected.
  3. Click Import.
  4. In the same section, under Configuration, set Default language to German, Default country to Germany, and Default currency to Euro, then click Save.
  5. To switch the Back Office to German too, click the profile icon in the top-right corner, select Your profile, and set Language to German.

If you installed with de and DE, the language, country, and currency are already set correctly. In that case, you only need to import the Germany pack to add the tax rates.

For customers in Austria or Switzerland, also import the Austria or Switzerland packs. English remains available as a second store language. If you don’t need it, disable it under International > Localization > Languages.

Set up order emails

PrestaShop sends order confirmations, shipping updates, and password links by email. However, the Docker image doesn’t include a program for sending emails, so without additional configuration, no emails will be delivered—not to you or your customers. Set up a mail server using SMTP, such as an email account from your web hosting provider or an email service:

  1. Open Advanced Parameters > E-mail.
  2. Select Set my own SMTP parameters (for advanced users ONLY).
  3. Enter your mailbox details for SMTP server, SMTP username, and SMTP password, along with Encryption and Port (usually TLS on port 587 or SSL on port 465).
  4. Click Save, then send yourself a test message under Test your email configuration by clicking Send a test email.
Tip: Choose a matching sender address

Set the address your store sends from under Shop Parameters > Contact > Stores, in the Contact details section, using Shop email. Use an address on your own domain that matches the SMTP mailbox. Otherwise, order confirmations can quickly end up in spam.

Prepare your store for launch

Before real customers place orders, go through these steps:

  • Maintenance mode: Under Shop Parameters > General > Maintenance, set Enable store to No and enter your own IP address using Add my IP. Visitors will see a maintenance page, while you can view the store as usual. When you’re ready to launch, set Enable store back to Yes.
  • Remove sample data: Delete the demo products, categories, and sample customers under Catalog > Products and Customers > Customers. Find sample orders under Orders > Orders.
  • Store details: Add your store name, address, and contact details under Shop Parameters > Contact > Stores, in the Contact details section. They’ll appear in emails and on invoices.
  • Payment methods: Enable payment methods under Payment > Payment Methods. For card payments, PayPal, or Klarna, install the relevant provider’s module under Modules > Module Manager.
  • Shipping: Set up shipping providers and costs under Shipping > Carriers.
  • Legal notices: Add your legal notice, terms and conditions, cancellation policy, and privacy policy as pages under Design > Pages. For a store in Germany, consider a specialized legal text module or having a lawyer review them.

What you should know

  • Updates are your responsibility. PrestaShop and its modules receive regular security updates. Keep both up to date; see “Update PrestaShop,” and always create a backup first.
  • Many modules cost money. PrestaShop’s official Addons marketplace offers free and paid modules and themes. Before purchasing, check that the module is compatible with your PrestaShop version.
  • Resource requirements grow with your store. A large number of products, images, and visitors requires more RAM and storage. Plan for more than the minimum requirements as your store grows, and monitor usage in your VPS’s Monitoring tab.

Conclusion

PrestaShop lets you run a full-featured online store on your own server, with no monthly store fees and full control over your data, design, and modules. The fastest way to get started is with the One-Click App: enter your email address, queue the installation, sign in to the Back Office, switch the store to German and euros, and configure email delivery. If you want to manage the store yourself, the manual Docker Compose installation gives you full control.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the fastest option: it sets up the database, HTTPS, and automatic installation with your administrator account, and places the Back Office in a randomly named folder. Choose the manual Docker Compose installation if you don’t use One-Click Apps on your server, want to run the store behind your own reverse proxy, or want to choose the language, country, and version yourself from the start.
The Back Office isn’t at /admin; it’s in a folder with a randomly generated name. For the One-Click App, the address is https://your-address/admin-VALUE/, where VALUE is listed in the app settings under App environment > Automatically generated values > SERVICE_HEX_32_BACKOFFICE. For a manual installation, find the folder name in the .env file under ADMIN_FOLDER.
The PrestaShop Docker image doesn’t include an email-sending program. Under Advanced Parameters > E-mail, select Set my own SMTP parameters (for advanced users ONLY), enter your mailbox’s SMTP server, username, password, encryption, and port, then test the settings with Send a test email. PrestaShop can then send order confirmations, shipping updates, and password links.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.