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.
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.
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
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/
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
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
Now, we need to create a new MySQL database for our Akaunting installation. To do this, follow these steps:
sudo mysql -u root -p
CREATE DATABASE akaunting;
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.
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
Now, we need to restart the Apache server to load the new VirtualHost configuration:
sudo systemctl restart apache2
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!