Skip to content

PrestaShop Installeren op Ubuntu 24.04 Server

Cloud Infrastructure Expert
PrestaShop Installeren op Ubuntu 24.04 Server

 

 

PrestaShop is een populaire open-source eCommerce platform waarmee je je eigen online winkel kunt maken en beheren. Volg deze stappen om PrestaShop te installeren op je VPS-server die draait op Ubuntu 24.04.

Vereisten

  • Een VPS-server die draait op Ubuntu 24.04
  • Root- of sudo-toegang
  • Basiskennis van de opdrachtregel

Stap 1: Update je systeem

Zorg ervoor dat je systeem up-to-date is:

sudo apt update && sudo apt upgrade -y

Stap 2: Installeer vereiste afhankelijkheden

Installeer de benodigde pakketten:

sudo apt install -y apache2 mysql-server php libapache2-mod-php php-mysql php-xml php-mbstring php-curl php-zip php-gd

Stap 3: Start en beveilig MySQL

Start de MySQL-service:

sudo systemctl start mysql

Beveilig de MySQL-installatie:

sudo mysql_secure_installation

Volg de instructies om je root-wachtwoord in te stellen en je database te beveiligen.

Stap 4: Maak een database voor PrestaShop

Log in op MySQL:

sudo mysql -u root -p

Maak een database en gebruiker voor PrestaShop:

CREATE DATABASE prestashop;
CREATE USER 'prestashop_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON prestashop.* TO 'prestashop_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Stap 5: Download PrestaShop

Navigeer naar de webroot directory:

cd /var/www/html

Download de nieuwste versie van PrestaShop:

wget https://download.prestashop.com/download/releases/prestashop_1.7.8.5.zip

Pak het gedownloade bestand uit:

unzip prestashop_1.7.8.5.zip

Stap 6: Stel de rechten in

Stel de juiste rechten in voor de PrestaShop-directory:

sudo chown -R www-data:www-data /var/www/html/*
sudo chmod -R 755 /var/www/html/*

Stap 7: Configureer Apache

Maak een nieuw Apache-configuratiebestand voor PrestaShop:

sudo nano /etc/apache2/sites-available/prestashop.conf

Voeg de volgende configuratie toe:

<VirtualHost *:80>
    DocumentRoot /var/www/html
    ServerName your_domain.com

    <Directory /var/www/html>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Vervang your_domain.com door je echte domeinnaam.

Stap 8: Schakel Apache-modules in en herstart Apache

Schakel de rewrite-module in:

sudo a2enmod rewrite

Schakel de nieuwe siteconfiguratie in:

sudo a2ensite prestashop.conf

Herstart Apache:

sudo systemctl restart apache2

Stap 9: Voltooi de installatie van PrestaShop

Open je webbrowser en ga naar http://your_domain.com. Volg de instructies op het scherm om het installatieproces van PrestaShop te voltooien.

Conclusie

Je hebt PrestaShop met succes geïnstalleerd op je Ubuntu 24.04 VPS-server. Je kunt nu beginnen met het bouwen van je online winkel!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.