How to Install Galette on Ubuntu Server Latest
Galette is a free and open-source membership management software that can be used to create and manage membership lists, generate invoices, track payments, and more. In this tutorial, you will learn how to install Galette on Ubuntu Server.
Prerequisites
- A server running Ubuntu Server Latest installed.
- A non-root user with sudo privileges.
- Apache web server installed and configured.
- PHP 7.1 or later installed and configured.
- MySQL database server installed and configured.
Step 1: Install required packages
To install the packages required by Galette, run the following command:
sudo apt-get update
sudo apt-get install apache2 php7.1 php7.1-mysql mysql-server
Step 2: Create a Database for Galette
Before installing Galette, you need to create a database for it. To create a database for Galette, run the following command:
sudo mysql -u root -p
Enter the MySQL root user password when prompted. Then, create a new database by running the following command:
CREATE DATABASE galette_db;
Next, create a new MySQL user and grant the user all privileges on the Galette database. To do this, run the following commands:
CREATE USER 'galette_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON galette_db.* TO 'galette_user'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
Remember to replace password with a strong password for your Galette user.
Step 3: Download and Install Galette
Download Galette from the official website or from the following link: https://galette.eu/download/latest.tar.gz. Then, extract the downloaded archive to the document root of your web server:
cd /var/www/html/
sudo tar xzf ~/Downloads/galette_latest.tar.gz
sudo mv galette-* galette
Change ownership of the Galette files to the Apache user:
sudo chown -R www-data:www-data /var/www/html/galette
Step 4: Configure Apache for Galette
Create a new virtual host configuration for Galette:
sudo nano /etc/apache2/sites-available/galette.conf
And add the following content:
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html/galette/
<Directory /var/www/html/galette/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Replace example.com with your own domain name.
Enable the new virtual host configuration and restart Apache:
sudo a2ensite galette.conf
sudo systemctl restart apache2.service
Step 5: Configure Galette
Open your web browser and navigate to your domain name (e.g., http://example.com/). You should see the Galette setup page. Follow the instructions on the screen to complete the installation. When prompted, enter the following details:
- Database type:
MySQL - Database server:
localhost - Database name:
galette_db - Database user:
galette_user - Database password:
password
Remember to replace password with the password you set for your Galette user.
Once Galette is installed, you can log in with the default credentials:
- Username:
admin - Password:
password
Remember to change the password after logging in.
Congratulations! You have successfully installed and configured Galette on your Ubuntu Server.