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.
sudo dnf update
sudo dnf -y install wget unzip httpd mariadb mariadb-server php php-mysqlnd php-xml php-zip php-json php-gd
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl start mariadb
sudo systemctl enable mariadb
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;
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
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
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/
Open your browser and enter your server's IP address or domain name in the address bar. You should see FACto's login page.
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!