How to Install Akaunting on Manjaro
Akaunting is a free and open-source accounting software that allows users to manage their finances easily. In this tutorial, we will show you how to install Akaunting on Manjaro Linux.
Prerequisites
Before starting with the installation process, you need to have the following:
- Manjaro Linux installed on your system.
- A user account with sudo privileges.
Step 1: Install Apache, MariaDB, and PHP
To install Apache, MariaDB, and PHP, open the terminal and run the following command:
sudo pacman -S apache mariadb php php-apache php-gd php-imagick php-intl php-pear php-redis php-mcrypt php-mysqli php-json
Once the installation is complete, start and enable the Apache, MariaDB, and PHP services using the following commands:
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo systemctl start php-fpm
sudo systemctl enable php-fpm
Step 2: Create a Database for Akaunting
To create a database for Akaunting, first, log in to MariaDB using the following command:
sudo mysql -u root -p
Enter the root password when prompted. Once you are in the MariaDB shell, create a database, user, and grant privileges using the following commands:
CREATE DATABASE akaunting;
CREATE USER 'akaunting'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting'@'localhost';
FLUSH PRIVILEGES;
Replace the password with a strong password for the akaunting user.
Step 3: Download Akaunting
To download Akaunting, go to the Akaunting website and click on the Get started for free button. Once the download is complete, extract the downloaded file to the Apache root directory /srv/http/akaunting/ using the following command:
sudo mkdir -p /srv/http/akaunting
sudo chown http:http /srv/http/akaunting
sudo unzip akaunting.zip -d /srv/http/akaunting
Step 4: Configure Akaunting
Copy the .env.example file to .env using the following command:
cd /srv/http/akaunting
sudo cp .env.example .env
Open the .env file using your favorite text editor:
sudo nano .env
Update the database details with the following:
DB_DATABASE=akaunting
DB_USERNAME=akaunting
DB_PASSWORD=password
Again, replace password with the password you set for the akaunting user.
Step 5: Set Permissions
Set the permissions of the Akaunting files so that the web server can read and write them:
sudo chgrp -R http /srv/http/akaunting/storage /srv/http/akaunting/bootstrap/cache
sudo chmod -R 775 /srv/http/akaunting/storage /srv/http/akaunting/bootstrap/cache
Step 6: Access Akaunting
Now, you can access the Akaunting software by opening a web browser and typing http://localhost/akaunting in the address bar. This will launch the Akaunting installation wizard. Follow the on-screen instructions to complete the installation process.
Once the installation is complete, log in to Akaunting using the credentials you set during the installation process.
Conclusion
In this tutorial, we have shown you how to install Akaunting on Manjaro Linux. Now, you can manage your finances easily using the Akaunting software.