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.
Before we start, ensure that your system meets the following requirements:
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.
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.
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
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
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
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
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.
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.
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!