How to install Akaunting on Void Linux

Akaunting is a free and open-source accounting software that you can use to manage your finances, track your expenses, and create invoices. In this tutorial, we'll show you how to install Akaunting on your Void Linux system.

Prerequisites

Before we begin, you'll need the following:

Step 1 - Install Required Dependencies

The first step is to install the required dependencies for Akaunting to run properly.

Open a terminal and run the following command to update your package list:

sudo xbps-install -Suy

Once the package list is updated, run the following command to install the dependencies:

sudo xbps-install php7 php7-fpm php7-gd php7-mbstring php7-xml php7-curl mariadb mariadb-client mariadb-server

Step 2 - Configure MariaDB

Akaunting requires a database for storage. In this step, we'll configure MariaDB to work with Akaunting.

Run the following command to start the MariaDB server:

sudo systemctl start mysqld

Next, run the following command to secure your MariaDB server:

sudo mysql_secure_installation

Follow the prompts to set up a root password and secure your MariaDB installation.

After securing your MariaDB installation, run the following command to log in to the MariaDB server:

sudo mysql -u root -p

Enter your root password when prompted.

Execute the following commands to create the Akaunting database and user:

CREATE DATABASE akaunting;
CREATE USER 'akaunting'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting'@'localhost';
FLUSH PRIVILEGES;
exit;

Replace your_password_here with a strong password.

Step 3 - Download and Install Akaunting

In this step, we'll download and install Akaunting.

First, download the latest version of Akaunting:

wget https://akaunting.com/download/latest

Then, extract the downloaded archive:

unzip akaunting-latest.zip

Move the extracted folder to your web server's document root:

sudo mv akaunting /var/www/html/

Change the ownership of the akaunting folder:

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

Step 4 - Configure PHP

Akaunting requires some additional PHP settings to function properly.

Open the php.ini file with your preferred text editor:

sudo vi /etc/php7/php.ini

Locate the following PHP settings and update them as follows:

max_execution_time = 360
max_input_vars = 10000
memory_limit = 512M
post_max_size = 100M
upload_max_filesize = 100M

Save and close the php.ini file.

Restart the PHP-FPM service to apply the changes:

sudo systemctl restart php-fpm

Step 5 - Access Akaunting

You can now access Akaunting by navigating to your server's IP address or domain name in your web browser.

http://your_server_ip/akaunting

Follow the on-screen prompts to complete the installation of Akaunting.

Conclusion

In this tutorial, you learned how to install Akaunting on Void Linux. You have now everything set up to start using this accounting software.

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!