This tutorial will guide you through the process of installing Akaunting on FreeBSD latest version.
Before starting with the installation process, make sure that your system meets the following requirements:
The first step is to download the latest stable release of Akaunting from their official website:
$ wget https://akaunting.com/download/latest.zip
Akaunting is distributed in a ZIP file format. Therefore, you need to install the "unzip" package to extract the downloaded file:
$ pkg install -y unzip
Once the "unzip" package is installed, extract the Akaunting ZIP file:
$ unzip latest.zip
After extracting the file, you will have a "akaunting" directory containing all the necessary files.
At this point, you need to move the Akaunting directory to the document root of your web server. If you are using Apache, the document root is typically located at "/usr/local/www/apache24/data", and if you are using Nginx, the path is "/usr/local/www/nginx".
$ mv akaunting /usr/local/www/apache24/data/
Set the file permissions of the Akaunting directory to allow the webserver to read and write files. The following command will give read and write permissions to the web server:
$ chown -R www:www /usr/local/www/apache24/data/akaunting
The next step is to create a MySQL database for Akaunting. Log in to your MySQL server with the following command:
$ mysql -u root -p
Once logged in, execute the following commands to create a new database and a user with privileges to access it:
mysql> CREATE DATABASE akaunting;
mysql> GRANT ALL PRIVILEGES ON akaunting.* TO 'akauntinguser'@'localhost' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
mysql> exit
Note that you should replace "akauntinguser" and "password" with your preferred username and password.
Akaunting can be configured through the ".env" file located in the Akaunting directory. Copy the ".env.example" file to ".env" with the following command:
$ cp /usr/local/www/apache24/data/akaunting/.env.example /usr/local/www/apache24/data/akaunting/.env
Edit the file with your favorite text editor and set the following values:
APP_URL=http://localhost
DB_DATABASE=akaunting
DB_USERNAME=akauntinguser
DB_PASSWORD=password
Make sure to replace the values with the ones you set in Step 6.
Composer is a dependency management tool for PHP. Install it with the following command:
$ cd /usr/local/bin
$ curl -sS https://getcomposer.org/installer | php
Akaunting has several PHP dependencies that need to be installed. Navigate to the Akaunting directory and run the following command:
$ cd /usr/local/www/apache24/data/akaunting
$ php /usr/local/bin/composer.phar install --no-dev
You can now access Akaunting by navigating to "http://localhost/akaunting" in your web browser.
Congratulations! You have successfully installed and configured Akaunting on FreeBSD latest version. You can now use Akaunting to manage your business finances.
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!