How to host Akaunting on Contabo VM Instance - ServerAvatar

Published : Sep 10, 2024

Share This Post

cloud-platform

Contabo

Learn how to create an account and set up cloud VPS on CONTABO, a leading hosting provider. Follow our step-by-step guide to set up your account quickly and easily, and start managing your hosting services today.

Get started with Contabo
application

Akaunting

Akaunting is an open-source project with contributors from all over the world. We're disrupting the closed-source dominated market and introducing the power of open-source to the accounting world. Akaunting is hosted on GitHub and open for everyone to contribute

More info

Akaunting is a free, open-source, and online accounting software for small businesses and freelancers. Its open-source nature allows for customization and scalability, catering to diverse business needs. With real-time insights and automated processes, Akaunting streamlines financial management and enhances business efficiency. When choosing a hosting platform for Akaunting, opting for Contabo ensures reliability with its scalable infrastructure and straightforward deployment options. ServerAvatar makes the deployment of the Akaunting application on the Contabo platform an easy step-by-step process.

Create VM Instance in Contabo

What Is Contabo?

Contabo is a web hosting company that provides a variety of internet hosting services. Founded in Germany in 2003, Contabo offers services such as:

  1. VPS Hosting: Virtual Private Servers with scalable resources for various needs, from small projects to larger applications.
  2. Dedicated Servers: Physical servers dedicated to a single user, offering high performance and control.
  3. Web Hosting: Shared hosting solutions for websites, which include storage, bandwidth, and various management tools.
  4. Object Storage: Scalable storage solutions for managing large amounts of data.
  5. Domain Registration: Services for registering and managing domain names.

Contabo is known for its competitive pricing, high-performance hardware, and customer service, making it a popular choice for both individual users and businesses looking for reliable hosting solutions.

To set up a server in Contabo, begin by logging into your Contabo account. Once logged in, proceed with the following steps.

Step 1: Create an account on Contabo

Login to your Contabo account, select "VPS" from the dropdown menu, and then click on "Cloud VPS".

Create VM Instance in Contabo

Step 2: Select your Cloud VPS plan

Contabo offers a variety of Cloud VPS options. The minimum requirement is 2GB of RAM for better performance and 2GB of free disk space is required for the initial setup, additional space need is depending on your data. You can select another plan of higher configuration as per your requirements and usage.

You have to select the plan that best meets your requirements as shown in the below image.

Create VM Instance in Contabo

Step 3: Select Region

  • First, you need to select the term length (in months) according to your requirements.
  • Next, you will need to select the location for your VPS. Contabo offers multiple options for selecting the location.
  • It's recommended to select the region closest to your audience. This ensures that your sites load faster for the majority of your audience due to reduced latency.

Create VM Instance in Contabo

Step 4: Select your Storage Type

Contabo provides different types of storage space, including both complimentary and paid options. Here, you should select the storage type based on your specific requirements. As shown in the image below.

Create VM Instance in Contabo

Step 5: Select an Image or an OS

In this step, you need to select the Operating System for your cloud VPS. We recommend using Ubuntu 20.04 LTS x64 or Ubuntu 22.04 LTS x64. Ubuntu is known for its ease of configuration and management. If you are using ServerAvatar to manage your cloud VPS, these operating systems are recommended.

Create VM Instance in Contabo

Step 6: Setting a Password

Here, it's recommended to create a strong password for your root user, as it holds all privileges on the Linux OS.

Create VM Instance in Contabo

Step 7: Select Object Storage

Now, you need to select object storage space for backing up your VPS. You will find several options ranging from 250 GB to 1 TB. If you do not require object storage you can select the None option from the dropdown.

Create VM Instance in Contabo

Step 8: Select Network

  • In the Network section, you will find three options, You should select these according to your specific requirements:
    • Private Network
    • Bandwidth
    • IPv4

Create VM Instance in Contabo

Step 9: Selecting Additional Options

  • Backup Space: This option allows you to add additional storage space dedicated specifically for backups of your VPS data.
  • Server Management: Contabo offers server management services where they handle the day-to-day operations of your VPS.
  • Monitoring: This option provides monitoring services for your VPS. It includes monitoring server uptime, resource usage (CPU, RAM, disk), and network connectivity.
  • SSL: SSL (Secure Sockets Layer) certificates are crucial for securing communication between your website and its visitors.

After completing all the necessary steps, click on the "Next" button to proceed to the payment method where you can finalize your details.

Create VM Instance in Contabo

Step 10: Finalize Details

In this step, you can review all your selections for your Cloud VPS, finalize your details, and proceed with the payment. In a few minutes, your Cloud VPS will be ready. Now, we need to perform the initial configuration to host PHP-based frameworks and software.

Create VM Instance in Contabo

Initial Server Configuration

The Initial server configuration includes the installation and configuration of various packages required to host your website. Usually, You have to write commands and modify configuration files. Luckily, With ServerAvatar, Your full server configuration and optimization can be automated.

Here are the three ways to automatically configure your server with ServerAvatar.

Install and Setup akaunting on cloud using ServerAvatar

Step 1: Create Database

Access the Database tab on the ServerAvatar server panel to create a MySQL Database.

image

Enter the credentials including Database name, Username, and Password, and click on the Create Database button.

image

Step 2: Create a PHP application

Access the Applications tab from the server panel to create a new PHP application.

image

Click the Create button and fill up the required information, including the Application Name, Domain Name, and Advanced Options for more PHP settings.

image

Note that:

If you want to host Akaunting on your domain, then make sure to point your domain to the current IP address of your server, and for that:

  1. Log in to your domain provider site, where you buy your domain. Click here for more info about your domain name.
  2. Access DNS Manager to edit your DNS records(contact the support team if you don’t find them)
  3. Change the IP address of A Record of your website to the current server’s IP address. To host Akaunting on your subdomain, for example, Akaunting.yourdomain.com, create a new application with the subdomain as your primary domain and follow the same procedure. For accessing Akaunting on the subdomain, you need to add your subdomain on A Record that points to the current IP address of your server. To point to an IPV6 address, you would need to use an AAAA record.

Proceed to next by clicking on the Next step.

Now select method and service provider Git and GitHub, respectively (follow according to Snapshot).

image

Enter the required information as given below:
Repository Type: Public.
Deployment Key: generate new key by clicking on the Generate Key link.
Clone HTTPS URL: https://github.com/akaunting/akaunting.git
Branch: master
Deployment script:

composer install;
php artisan install --db-name="akaunting" --db-username="root" --db-password="pass" --admin-email="admin@company.com" --admin-password="123456";
composer dump-autoload;
php artisan sample-data:seed;

Enter db-name, db-username, and db-password according to the database we have created you check your database credentials in databases. Admin email and admin password are your login credentials when it is deployed on the server so you can set it any but remember them.

image

Move further by clicking on the Next Step.

Create a System User or choose a system user from an existing One.

image

Then choose PHP version 8.1 or above and leave the Custom Webroot field as it is.

After filling up all the details. click the Next Step button.

Step 3: Install and Run npm

Access SSH credentials from the dashboard of the application panel.

Make sure that in your server, Node js is installed. If it is not, then go to the Server Panel > Settings. Click on install Node js.

Login using the SSH credentials using the below command. Make sure to Replace the Username and Host with your actual credentials.

npm install;
npm run dev;

Now, the Akaunting software is successfully installed. You can go to the user interface by visiting the URL of your domain.

Tip:- It will run on HTTP, but to run it on HTTPs ServerAvatar provides a one-click solution to switch to HTTPs for that, go to the SSL Certificate in the application panel and click on force HTTP to HTTPs.