How to Install Family Accounting Tool on Fedora Server

Family Accounting Tool (FACto) is a web application that helps families keep track of expenses and income in a simple and organized manner. In this tutorial, we will show you how to install FACto on a Fedora Server.

Prerequisites

Steps to Install FACto

  1. Install required packages
sudo dnf update
sudo dnf -y install wget unzip httpd mariadb mariadb-server php php-mysqlnd php-xml php-zip php-json php-gd
  1. Start and enable Apache web server and MySQL database server
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl start mariadb
sudo systemctl enable mariadb
  1. Configure MySQL database

Secure your database by running the following command:

sudo mysql_secure_installation

After that, log in to your MySQL database:

sudo mysql -u root -p

And create a database and user for FACto:

CREATE DATABASE facto;
CREATE USER 'facto_user'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON facto.* TO 'facto_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
  1. Download and Install FACto

Download FACto from its GitHub repository:

sudo wget https://github.com/nymanjens/facto/archive/refs/heads/master.zip
sudo unzip master.zip -d /var/www/html/

Then move the files to their appropriate locations:

sudo mv /var/www/html/facto-master/* /var/www/html/
sudo rm -r /var/www/html/facto-master
  1. Configure FACto

Edit the configuration file config/config.dist.php to set up the database settings.

sudo nano /var/www/html/config/config.dist.php

Find the following lines:

$config['db']['host'] = "localhost";
$config['db']['user'] = "root";
$config['db']['password'] = "";
$config['db']['database'] = "";

And replace them with:

$config['db']['host'] = "localhost";
$config['db']['user'] = "facto_user";
$config['db']['password'] = "YOUR_PASSWORD";
$config['db']['database'] = "facto";

Finally, save the changes as config.php.

sudo cp /var/www/html/config/config.dist.php /var/www/html/config/config.php
  1. Set up permissions

To allow FACto to write to some directories, you need to change the ownership of some directories:

sudo chown -R apache:apache /var/www/html/
sudo chmod -R 775 /var/www/html/
  1. Test FACto

Open your browser and enter your server's IP address or domain name in the address bar. You should see FACto's login page.

Conclusion

Congratulations! You have successfully installed FACto on your Fedora server. Now you can create your account and start using FACto to organize your family's finances.

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!