Thelia is an open-source e-commerce platform that enables businesses to create online stores. This tutorial provides step-by-step instructions for installing Thelia on Void Linux.
Before you start the installation process, you need to ensure that your system meets the following prerequisites:
Open a terminal window and enter the following commands to install dependencies:
sudo xbps-install -S php-fpm php-mysqli php-curl php-gd php-json php-mbstring php-session php-xml php-zip composer nginx
cd /tmp
wget <paste the link to the downloaded Thelia file>
tar -xzf <filename> -C /usr/share/nginx/
cd /usr/share/nginx/<folder extracted from the downloaded Thelia file>
sudo composer install
mysql -u root -p
CREATE DATABASE thelia_db;
CREATE USER 'thelia_user'@'localhost' IDENTIFIED BY 'thelia_password';
GRANT ALL PRIVILEGES ON thelia_db.* TO 'thelia_user'@'localhost';
exit;
cp .env.dist .env
nano .env
[database]
db_driver=pdo_mysql
db_user=thelia_user
db_password=thelia_password
db_name=thelia_db
Ctrl + X
, then Y
, then Enter
.sudo nano /etc/nginx/conf.d/thelia.conf
server {
listen 80;
server_name yourdomain.com;
root /usr/share/nginx/public;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
}
location ~* \.(jpg|jpeg|gif|png|css|js|ico)$ {
expires max;
log_not_found off;
}
}
Save and close the file by hitting Ctrl + X
, then Y
, then Enter
.
Test the Nginx configuration by entering the following command:
sudo nginx -t
sudo systemctl restart nginx
Congratulations! You have successfully installed and configured Thelia on Void Linux.
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!