How to Install Akaunting on Debian Latest

Akaunting is a free and open-source accounting software that helps businesses with their financial management. In this tutorial, we will learn how to install Akaunting on Debian Latest.

Prerequisites

Before we proceed with the installation, make sure that you have a Debian Latest installed machine with root privileges. You also need to have PHP, MySQL/MariaDB, and Apache installed on your machine.

Step 1: Download Akaunting

To get started, download the latest version of Akaunting from the official website by using the following command:

wget https://github.com/akaunting/akaunting/releases/latest

Step 2: Extract Akaunting Archive

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

sudo tar -zxvf akaunting-2.x.x.tar.gz -C /var/www/html/

Step 3: Configure Permissions

Next, we need to update the folder permissions for Akaunting to work correctly:

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

Step 4: Install Required PHP Modules

Before we proceed to the next step, we need to install some required PHP modules:

sudo apt-get install php-curl php-gd php-mbstring php-dom php-xml

Step 5: Create a New Database for Akaunting

Now, we need to create a new MySQL database for our Akaunting installation. To do this, follow these steps:

  1. Log in to your MySQL database using the following command:
sudo mysql -u root -p
  1. Once you are logged in to your MySQL database, create a new database using the following command:
CREATE DATABASE akaunting;
  1. Next, create a new MySQL user and grant all necessary permissions to the new database using the following command:
CREATE USER 'akauntinguser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akauntinguser'@'localhost' WITH GRANT OPTION;

NOTE: Replace "password" with your preferred password.

Step 6: Configure Apache Web Server

Now, we need to create a new Apache VirtualHost configuration file:

sudo nano /etc/apache2/sites-available/akaunting.conf

And add the following contents:

<VirtualHost *:80>
     ServerAdmin admin@example.com
     DocumentRoot /var/www/html/akaunting
     ServerName akaunting.example.com
 
     <Directory /var/www/html/akaunting/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
     </Directory>
 
     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Don't forget to replace example.com with your domain name.

Then save and close the file.

Next, enable the VirtualHost configuration file by running the following command:

sudo a2ensite akaunting.conf

Also, enable the Apache rewrite module by running:

sudo a2enmod rewrite

Step 7: Restart Apache Server

Now, we need to restart the Apache server to load the new VirtualHost configuration:

sudo systemctl restart apache2

Step 8: Setup Akaunting

Finally, open your web browser and navigate to http://akaunting.example.com/ to start the Akaunting setup.

Follow the on-screen instructions and enter your MySQL database details, then create your Akaunting admin account.

Once you have completed the setup process, you will be redirected to the Akaunting dashboard.

Congratulations! You have successfully installed Akaunting on your Debian Latest machine.

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!