Skip to content

Linux VPS & VPS Windows Setup Guide | NetCloud24 Prestashop on Ubuntu 24.04 Server

Cloud Infrastructure Expert
Linux VPS & VPS Windows Setup Guide | NetCloud24 Prestashop on Ubuntu 24.04 Server

 

PrestaShop is a popular open-source eCommerce platform that allows you to create and manage your own online store. Follow these steps to install PrestaShop on your VPS server running Ubuntu 24.04.

Prerequisites

  • A VPS server running Ubuntu 24.04
  • Root or sudo access
  • Basic knowledge of the command line

Step 1: Update Your System

Ensure your system is up to date:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

Install the necessary packages:

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

Step 3: Start and Secure MySQL

Start the MySQL service:

sudo systemctl start mysql

Secure the MySQL installation:

sudo mysql_secure_installation

Follow the prompts to set up your root password and secure your database.

Step 4: Create a Database for PrestaShop

Log into MySQL:

sudo mysql -u root -p

Create a database and user for 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;

Step 5: Download PrestaShop

Navigate to the web root directory:

cd /var/www/html

Download the latest version of PrestaShop:

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

Unzip the downloaded file:

unzip prestashop_1.7.8.5.zip

Step 6: Set Permissions

Set the correct permissions for the PrestaShop directory:

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

Step 7: Configure Apache

Create a new Apache configuration file for PrestaShop:

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

Add the following configuration:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    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>

Replace your_domain.com with your actual domain name.

Step 8: Enable Apache Modules and Restart Apache

Enable the rewrite module:

sudo a2enmod rewrite

Enable the new site configuration:

sudo a2ensite prestashop.conf

Restart Apache:

sudo systemctl restart apache2

Step 9: Complete the PrestaShop Installation

Open your web browser and go to http://your_domain.com. Follow the on-screen instructions to complete the PrestaShop installation process.

Conclusion

You have successfully installed PrestaShop on your Ubuntu 24.04 VPS server. You can now start building your online store!

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.