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

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

(: 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:

.td_uid_2_5d9072390b2fd_rand.td-a-rec-img{text-align:left}.td_uid_2_5d9072390b2fd_rand.td-a-rec-img 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

CREATE DATABASE akaunting;
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting'@'localhost' IDENTIFIED BY 'StrongPassword';
FLUSH PRIVILEGES;
q

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

Add:

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

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.

.td_uid_4_5d9072390b4f8_rand.td-a-rec-img{text-align:left}.td_uid_4_5d9072390b4f8_rand.td-a-rec-img img{margin:0 auto 0 0}

Related posts

ECB Council Member: Central Banks Considering Crypto Regulation

SXI ADMIN

BitPay or Coinbase? Shopify Now Lets Merchants Choose

SXI ADMIN

Wells Fargo Develops Blockchain Banking Prototype

SXI ADMIN

Linux: GNU/Screen Scroll Up and Down Look At Data

SXI ADMIN

How to install LAMP Stack on Fedora 30/29/28

SXI ADMIN

CentOS / RHEL 6: Install Suhosin PHP Advanced Protection System

SXI ADMIN

CentOS Install glib-devel

SXI ADMIN

US Income Tax Payers Can Now Get Refunds in Bitcoin

SXI ADMIN

Now Hiring: US DOJ Seeks Digital Currency Legal Experts

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More