How to Install Thelia on Linux Mint Latest

Thelia is an open-source, eCommerce platform that allows you to create and manage online stores. In this tutorial, we will walk you through the steps to install Thelia on Linux Mint.

Prerequisites

Before we start, ensure that your system meets the following requirements:

Step 1: Install Apache Web Server

To install Apache web server, run the command below in the terminal:

sudo apt install apache2

You can verify if Apache is installed by typing localhost in your browser. If Apache is installed, you will see the default Apache web page.

Step 2: Install MySQL Server

To install MySQL server, run the command below in the terminal:

sudo apt install mysql-server

You will be prompted to set a root password for MySQL during the installation process.

Step 3: Install PHP

Execute the following command in the terminal to install PHP:

sudo apt install php

You can verify if PHP is installed by running the command:

php -v

Step 4: Download and Extract Thelia

First, navigate to the /var/www/ directory by running:

cd /var/www/

Next, download the latest version of Thelia from their official website at https://thelia.net.

wget https://thelia.net/fr/telecharger-thelia-2-2-4

After the download is complete, extract the contents of the file using the following command:

unzip thelia.zip

Step 5: Configure Apache

Create a new virtual host configuration file for Thelia by running the following command:

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

Add the following code to the file:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/thelia/web
    ServerName example.com
    <Directory /var/www/thelia/web>
        AllowOverride All
        Order Allow,Deny
        Allow from All
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/thelia_error.log
    CustomLog ${APACHE_LOG_DIR}/thelia_access.log combined
</VirtualHost>

Save and exit the file.

Next, enable the newly created virtual host by running the command:

sudo a2ensite thelia.conf

Finally, restart Apache for the changes to take effect:

sudo systemctl restart apache2

Step 6: Install Thelia

Navigate to the /var/www/thelia directory and run the following commands:

sudo chmod -R 777 app/cache app/logs
sudo chmod -R 777 media

Next, run the following command to install Thelia:

sudo php composer.phar install

Step 7: Configure Thelia

Create a new configuration file for Thelia by running the following command:

cp /var/www/thelia/local/config/new_config.php /var/www/thelia/local/config/config.php

Open the config.php file using a text editor and update the following settings:

<?php
// Database configuration
$pdo = new PDO('mysql:host=localhost;dbname=thelia', 'thelia', 'my-password');

// Base URL
$config['url_site'] = 'http://example.com/';

// Encryption key
$config['security_key'] = 'your-encryption-key';

Save and exit the file.

Step 8: Run Thelia Installer

To run the Thelia installer, navigate to the /var/www/thelia directory and run the following command:

sudo php index.php install

Follow the on-screen instructions to complete the installation process.

Conclusion

In this tutorial, we walked you through the steps to install Thelia on Linux Mint Latest. Thelia is now installed, configured, and ready to use. You can access the Thelia admin panel by navigating to http://example.com/admin in your web browser, log in with the provided credentials, and begin creating your online store.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!