How to install Akaunting on Ubuntu 18.04 – open-source online accounting software

(: October 17, 2018)

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:{text-align:left} img{margin:0 auto 0 0}
  • 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

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;
   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

Select your preferred language

Then Configure Database:

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

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

When done, you should get ad admin login page

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

That’s all. Start exploring Akaunting open-source online accounting software. For further reading, check the Official documentation.{text-align:left} img{margin:0 auto 0 0}

Related Posts