How to Install Galette on Debian Latest

Galette is a free and open-source membership management software that helps you manage your club, association, or non-profit organization. In this tutorial, we will show you how to install Galette on Debian latest.

Prerequisites

Before you start, make sure your system meets the following requirements:

Step 1: Update the System

The first thing you should do is to update the system to the latest version. You can do this by running the following command:

sudo apt-get update && sudo apt-get upgrade

Step 2: Install Apache

Galette requires a web server to run, and Apache is a popular choice for this task. To install Apache on your Debian system, run the following command:

sudo apt-get install apache2

Step 3: Install PHP

Galette is written in PHP, so you need to install PHP on your Debian system. You can do this by running the following command:

sudo apt-get install php libapache2-mod-php php-mysql

After installing PHP, you need to restart the Apache web server to apply the changes:

sudo systemctl restart apache2

Step 4: Install MySQL

Galette requires a database to store its data, and MySQL is a popular choice for this task. To install MySQL on your Debian system, run the following command:

sudo apt-get install mysql-server

During the installation, you will be prompted to set a root password for MySQL. Make sure to choose a strong password and remember it.

Step 5: Create a MySQL Database

After installing MySQL, you need to create a new MySQL database and user for Galette. You can do this by logging in to the MySQL server and executing the following commands:

sudo mysql -u root -p

Enter your MySQL root user password when prompted. Then, create a new database, user, and grant it privileges:

CREATE DATABASE galette;
CREATE USER 'galette'@'localhost' IDENTIFIED BY 'your-strong-password';
GRANT ALL PRIVILEGES ON galette.* TO 'galette'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Replace 'your-strong-password' with a strong password of your choice.

Step 6: Download and Install Galette

Now that you have set up the prerequisites, it's time to download and install Galette. You can download the latest version of Galette from the official website:

wget https://download.tuxfamily.org/galette/galette-0.X.Y.tar.gz

Replace '0.X.Y' with the latest version of Galette.

After downloading the archive, extract it to the web server root directory:

sudo tar -xvf galette-0.X.Y.tar.gz -C /var/www/html/

Change the ownership of the Galette files to the Apache user:

sudo chown -R www-data:www-data /var/www/html/galette

Step 7: Configure Galette

Next, you need to configure Galette to connect to the MySQL database you created earlier. Navigate to the Galette directory:

cd /var/www/html/galette

Copy the sample configuration file to a new file named 'config.inc.php':

sudo cp config-default.php config.inc.php

Open the 'config.inc.php' file with your text editor:

sudo nano config.inc.php

Update the following lines with your MySQL database credentials:

define('GALETTE_HOSTNAME', 'localhost');
define('GALETTE_DATABASE', 'galette');
define('GALETTE_USERNAME', 'galette');
define('GALETTE_PASSWORD', 'your-strong-password');

Save and close the file.

Step 8: Test Galette

Now, you can test Galette by accessing it in your web browser at http://your-server-ip/galette/. You will be prompted to select the default language and set up the administrator account. Follow the on-screen instructions to complete the setup.

Conclusion

Congratulations! You have successfully installed Galette on Debian latest. You can now use it to manage memberships, donations, and events for your organization.

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!