Galette is a free and open-source web application that helps you manage your association. In this tutorial, we will learn how to install Galette on Void Linux.
Before we start, make sure that you have the following:
First, update your system to make sure you have the latest packages:
sudo xbps-install -Syu
Galette requires a web server, database, and several PHP modules to function correctly. To install them all in one command, use the following command:
sudo xbps-install lighttpd mariadb mariadb-server php php-fpm php-pdo_mysql php-gd php-zip php-curl php-ctype php-iconv php-session php-mbstring php-xml
Go to the Galette downloads page and download the latest stable release: https://download.tuxfamily.org/galette/galette-latest.tar.gz
Next, extract the downloaded archive to the document root directory of your web server:
sudo tar -xzvf galette-latest.tar.gz -C /var/www/htdocs/
Note: If your web server document root directory is different, replace /var/www/htdocs/
with the correct path.
Set the correct permissions to the Galette directory:
sudo chown -R www-data:www-data /var/www/htdocs/galette/
Create a new database and user for Galette using the following commands:
sudo mysql -u root
MariaDB [(none)]> CREATE DATABASE galette_db;
MariaDB [(none)]> CREATE USER 'galette_user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON galette_db.* TO 'galette_user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Note: Replace galette_db
, galette_user
, and password
with appropriate values.
Rename the config-dist.php
file to config.php
:
sudo mv /var/www/htdocs/galette/config-dist.php /var/www/htdocs/galette/config.php
Next, open the config.php
file in a text editor and modify the following options:
/* Database configuration */
$config['db_host'] = 'localhost';
$config['db_user'] = 'galette_user';
$config['db_password'] = 'password';
$config['db_name'] = 'galette_db';
/* Base URL of your Galette installation */
$config['root_directory'] = 'http://localhost/galette/';
/* Authentication key */
$config['auth_key'] = 'secret_key';
Note: Replace galette_user
, password
, and secret_key
with appropriate values.
Start the web server and PHP-FPM service:
sudo ln -s /etc/sv/lighttpd /var/service/
sudo ln -s /etc/sv/php-fpm /var/service/
Open a web browser and go to the following URL:
http://localhost/galette/
You should see the Galette installation page. Follow the on-screen instructions to complete the installation.
Congratulations! You have successfully installed Galette on your Void Linux machine. You can now use Galette to manage your association.
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!