How to Install InvoicePlane on Kali Linux

InvoicePlane is a simple and intuitive invoicing software designed for freelancers, small businesses, and entrepreneurs. In this tutorial, we will explain how to install InvoicePlane on Kali Linux latest version.

Prerequisites

Before you begin with the installation, make sure you have the following prerequisites:

Installation Steps

To install InvoicePlane on Kali Linux, follow the steps below.

Step 1: Update the System

Before installing any software, it is essential to update your system to the latest available packages. Open the terminal and run the following command:

sudo apt update && sudo apt upgrade -y

Step 2: Install Apache Web Server

Next, install the Apache web server by running the following command:

sudo apt install apache2 -y

Once the installation is complete, start the Apache service and enable it to start at boot time by running the commands:

sudo systemctl start apache2
sudo systemctl enable apache2

Step 3: Install MySQL Server

Install MySQL server by running the following command:

sudo apt install mysql-server -y

Once the installation is complete, start the MySQL service and enable it to start at boot time by running the commands:

sudo systemctl start mysql
sudo systemctl enable mysql

Step 4: Install PHP and Required Extensions

Install PHP and the necessary extensions by running the following command:

sudo apt install php7.3 php7.3-mysql php7.3-curl php7.3-json php7.3-cgi php7.3-gd php7.3-cli php7.3-xml php7.3-mbstring php7.3-zip -y

Step 5: Install Composer

Composer is a dependency manager for PHP. Run the following command to install Composer:

sudo apt install composer -y

Step 6: Download InvoicePlane

Download the latest version of InvoicePlane from the official website using the wget command:

sudo wget https://invoiceplane.com/download/v1.5.11 -O invoiceplane.tar.gz

Extract the downloaded archive and move the extracted files to the webserver document root directory:

sudo tar -xvzf invoiceplane.tar.gz
sudo mv InvoicePlane /var/www/html/

Step 7: Install InvoicePlane Dependencies

Navigate to the InvoicePlane directory and install the required dependencies using Composer:

cd /var/www/html/InvoicePlane
sudo composer install

Step 8: Configure Database

Create a new database and user for InvoicePlane:

sudo mysql -u root -p

# Enter MySQL root password when prompted
> CREATE DATABASE invoiceplane;
> CREATE USER 'invoiceplane_user'@'localhost' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON invoiceplane.* TO 'invoiceplane_user'@'localhost';
> FLUSH PRIVILEGES;
> exit;

Edit the configuration file and specify the database details:

sudo nano /var/www/html/InvoicePlane/application/config/database.php

Replace the following configuration settings in the file:

'hostname' => 'localhost',
'username' => 'invoiceplane_user',
'password' => 'password',
'database' => 'invoiceplane',

Step 9: Configure InvoicePlane

Navigate to the InvoicePlane directory and copy the sample configuration file:

cd /var/www/html/InvoicePlane
sudo cp ipconfig.php.example ipconfig.php

Edit the configuration file and specify the URL and application key:

sudo nano /var/www/html/InvoicePlane/ipconfig.php

Replace the following configuration settings in the file:

define('IP_URL', 'http://{your-domain-or-ip}');
define('ENCRYPTION_KEY', '{random-32-character-string}');

Step 10: Configure Apache

Use the following command to open the Apache default virtual host configuration file:

sudo nano /etc/apache2/sites-available/000-default.conf

Add the following lines to the configuration file:

<Directory /var/www/html/InvoicePlane>
AllowOverride All
</Directory>

Save and close the file.

Step 11: Restart Apache and MySQL

Once you have completed the above configuration, restart the Apache and MySQL services to apply the changes:

sudo systemctl restart apache2
sudo systemctl restart mysql

Step 12: Start InvoicePlane Installation

Open a web browser and navigate to the URL http://your-server-ip/InvoicePlane. You will be redirected to the InvoicePlane installation page. Follow the prompts to complete the installation.

Conclusion

That’s it. You have successfully installed InvoicePlane on Kali Linux. You should now have access to the InvoicePlane dashboard to manage your invoices and payments.

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!