Akaunting is a free, open source and online accounting software designed for small businesses and freelancers. This tool is built with modern technologies such as Laravel, Bootstrap, jQuery, RESTful API, and others.

In this blog post, we will look at how to install and configure Akaunting on Ubuntu 18.04. For a complete list of Akaunting features, refer to the official guide.

Install Akaunting on Ubuntu 18.04

Akaunting installation has the following environment dependencies:

  • PHP 5.6.4 or higher
  • Database (eg: MySQL, PostgreSQL, SQLite)
  • Web Server (eg: Apache, Nginx, IIS)
  • URL Rewrite (mod_rewrite)

For PHP, these extensions should be installed

  • PDO
  • MySQL
  • OpenSSL
  • Mbstring
  • Tokenizer
  • XML
  • Zip
  • GD
  • CURL

Our installation will use Nginx Web Server and MariaDB database server.

Step 1: Install PHP and Extensions

Start by installing PHP and required extensions on your Ubuntu 18.04 server

sudo apt install php php-fpm php-mysql php-gd php-curl php-zip php-xml php-mbstring php-tokenizer php-pdo

Step 2: Install MariaDB

We’ll use MariaDB to store Akaunting data, install it by following our previous guide on MariaDB installation:

Install MariaDB 10.x on Ubuntu 18.04 and CentOS 7

Once MariaDB is installed and running, create a database and user for Akaunting.

$ mysql -u root -p

GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting'@'localhost' IDENTIFIED BY 'StrongPassword';

Step 3: Download Akaunting

Download Akaunting to your local machine using the gitcommand

cd /srv
git clone https://github.com/akaunting/akaunting.git

Step 4: Install Nginx and initialize Akaunting

The last step is the installation of Nginx and UI configuration of Akaunting software.

sudo apt install nginx

Set /srv/akaunting directory permission to www-data user and group

sudo chown -R www-data:www-data /srv/akaunting

Create new Nginx VirtualHost

sudo vim /etc/nginx/conf.d/akaunting.conf


server {
   listen 80;
   server_name akaunting.example.com;
   access_log  /var/log/nginx/akaunting_access.log;
   error_log   /var/log/nginx/akaunting_error.log;

   root  /srv/akaunting/;
   index  index.php index.html;
   location / {
             try_files $uri /index.php;

   location ~ \.php$ {
            try_files $uri =404;
	    fastcgi_split_path_info ^(.+.php)(/.*)$;
            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_index index.php;
            include fastcgi_params;

   location ~ /\. {
             return 404;

    location ~ (?:composer.json|composer.lock|bower.json)$ {
             return 404;

Verify that our configuration file is loadable

# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Install and run compose

sudo apt install composer
cd /srv/akaunting
sudo -u www-data composer install

Restart nginx and php-fpm

sudo systemctl restart nginx php7.2-fpm.service

When done, launch the installer on http://akaunting.example.com

Select your preferred language

akaunting ubuntu 18.04 select language min

Then Configure Database:

  • Hostname: localhost
  • Username: akaunting
  • Password: akaunting
  • Database: StrongPassword

Wait for verification then continue to set admin account and company name

akaunting add admin

When done, you should get ad admin login page

akaunting ubuntu 18.04 login min

Login with the set user email and password. If all goes well, you should be greeted with an admin management portal like below.

akaunting ubuntu 18.04 web dashboard min

That’s all. Start exploring Akaunting open-source online accounting software. For further reading, check the Official documentation.

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here