How to Install Akaunting on POP! OS

Akaunting is a free and open-source accounting software designed for small businesses and organizations. It provides powerful features, such as invoicing, expenses tracking, inventory management, and more. In this tutorial, we will guide you through the steps of installing Akaunting on the latest version of POP! OS.

Prerequisites

Before you can install Akaunting, you need to ensure that you have the following prerequisites:

Step 1: Install Required Dependencies

Akaunting requires several dependencies to run correctly. Open the terminal application and run the following command to install them:

sudo apt-get update && sudo apt-get install -y curl unzip libzip-dev libpng-dev

Step 2: Install PHP v7.2

Akaunting requires PHP version 7.2 or above to function correctly. If you already have PHP v7.2 installed, you can skip this step. To install PHP v7.2, run the following command:

sudo apt-get install -y php7.2 php7.2-cli php7.2-fpm php7.2-mbstring php7.2-zip php7.2-gd php7.2-curl php7.2-xml php7.2-intl

After the installation is complete, verify that PHP v7.2 is installed correctly by running the following command:

php -v

Step 3: Download and Extract Akaunting

Download the latest version of Akaunting from the official website using the following command:

curl -s https://akaunting.com/download/latest | tar -xvz

Once the download is complete, extract the downloaded archive to the web directory using the following command:

sudo mv akaunting/ /var/www/html

Step 4: Configure Apache Web Server

Open the Apache configuration file using the following command:

sudo nano /etc/apache2/sites-available/000-default.conf

Add the following lines of code before the closing </VirtualHost> tag:

DocumentRoot /var/www/html/akaunting/public
<Directory /var/www/html/akaunting/public>
    AllowOverride All
</Directory>

Save and exit the configuration file by pressing CTRL+O and CTRL+X.

Once you have updated the configuration file, restart the Apache web server using the following command:

sudo systemctl restart apache2

Step 5: Configure MySQL

Akaunting requires a MySQL database to store its data. To configure MySQL, first, install it using the following command:

sudo apt-get install -y mysql-server

Once the installation is complete, log in to the MySQL server as the root user by running the following command:

sudo mysql -u root

Next, create a new MySQL user and assign it a password, replacing akaunting_user and password with your preferred username and password:

CREATE USER 'akaunting_user'@'localhost' IDENTIFIED BY 'password';

Create a new database and grant the new user full access to it:

CREATE DATABASE akaunting_db;
GRANT ALL PRIVILEGES ON akaunting_db.* TO 'akaunting_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 6: Complete the Installation

Open your web browser, and go to http://localhost/akaunting/public. The Akaunting installation wizard should appear. Follow the prompted steps to set up your Akaunting installation. When prompted for a database, use the following credentials, replacing akaunting_user and password with your preferred username and password:

Username: akaunting_user
Password: password
Database Name: akaunting_db

Conclusion

In this tutorial, you have learned how to install Akaunting on POP! OS. We hope that this tutorial was helpful to you, and you now have a working installation of Akaunting ready to use.

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!