Akaunting is a free and open-source accounting software. It is designed to help small businesses manage their finances and stay organized. In this tutorial, we will show you how to install Akaunting on Fedora CoreOS Latest.
Before installing Akaunting, we need to make sure that our system is up to date. To do that, we will run the following command:
sudo dnf update
There are a few packages that are required to run Akaunting. We will install these packages using the following command:
sudo dnf install php php-mysqlnd php-json php-mbstring php-xml php-gd nginx mariadb-server
Akaunting requires a database to store its data. We will be using MariaDB for this purpose. To configure MariaDB, run the following command:
sudo mysql_secure_installation
Follow the prompts to set the root password and secure your installation.
Next, log into MariaDB using the following command:
sudo mysql -u root -p
Create a new database for Akaunting:
CREATE DATABASE akaunting;
Create a new user and grant them permission to access the database:
CREATE USER 'akaunting'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting'@'localhost';
FLUSH PRIVILEGES;
Replace 'password' with a strong password of your choice.
Exit out of the MySQL prompt:
exit
Download the latest version of Akaunting from the official website (https://akaunting.com/download). Extract the files to the /var/www/html directory:
cd /var/www/html
sudo wget https://akaunting.com/download/latest.zip
sudo unzip latest.zip
sudo chown -R nginx:nginx akaunting
Akaunting requires a web server to run. We will be using Nginx for this purpose.
Create a new configuration file for Akaunting:
sudo vi /etc/nginx/conf.d/akaunting.conf
Add the following lines to the file:
server {
listen 80;
server_name localhost;
root /var/www/html/akaunting/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php-fpm/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save and exit the file.
Restart Nginx:
sudo systemctl restart nginx
Akaunting requires PHP-FPM to run. We need to configure it to work with Nginx.
Create a new configuration file for PHP-FPM:
sudo vi /etc/php-fpm.d/akaunting.conf
Add the following lines to the file:
[akaunting]
user = nginx
group = nginx
listen = /run/php-fpm/www.sock
listen.owner = nginx
listen.group = nginx
pm = ondemand
pm.max_children = 5
pm.max_requests = 500
Save and exit the file.
Restart PHP-FPM:
sudo systemctl restart php-fpm
Open a web browser and navigate to http://localhost. You will be prompted to set up Akaunting. Follow the prompts to complete the installation.
Congratulations! You have successfully installed Akaunting on Fedora CoreOS Latest.
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!