Thelia is an open-source and lightweight e-commerce solution that helps to create and manage online stores. Thelia comes with various features such as website building, product management, customer management, order management, and more. In this tutorial, we will explain how to install Thelia on the nixOS Latest.
Before starting the installation process, make sure that you have the following prerequisites installed on your nixOS system:
The first step is to update the system packages to their latest updates, execute the following command to do so:
sudo nixos-rebuild switch --upgrade
By default, nixOS does not have Apache and PHP installed, so we need to install them first. Run the following command to install Apache and PHP:
sudo nix-env -i apache php71
After installing Apache and PHP, start the Apache service and enable it to start on system boot by running the following command:
sudo systemctl enable httpd
sudo systemctl start httpd
Thelia is available in the nixpkgs collection, and we can install it using the following command:
sudo nix-env -iA nixpkgs.thelia
Thelia configuration files are located in the /etc/thelia directory, to configure the database for Thelia, navigate to /etc/thelia/main.conf and edit the database configuration settings:
# Configure database settings
DB_HOST = "localhost"
DB_PORT = 3306
DB_NAME = "dbname"
DB_USER = "dbuser"
DB_PASSWD = "dbpassword"
Replace the dbname, dbuser, and dbpassword with your desired values.
Open the Apache virtual host configuration file and add the following line to the document root:
<VirtualHost *:80>
ServerName your_domain.com
DocumentRoot /var/lib/thelia
<Directory /var/lib/thelia>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Replace the ServerName and DocumentRoot values with your desired values.
After making the changes to Apache virtual host configuration, restart the Apache service to apply the changes using the following command:
sudo systemctl restart httpd
To access Thelia, open your web browser and navigate to http://your_domain.com/, and you will be redirected to the Thelia install wizard, follow the wizard's instruction and complete the installation.
Thelia is a powerful e-commerce solution that helps create and manage online stores. In this tutorial, we have explained how to install Thelia on nixOS Latest. Follow the tutorial's step-by-step process to install and configure Thelia successfully.
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!