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.
Before you begin with the installation, make sure you have the following prerequisites:
To install InvoicePlane on Kali Linux, follow the steps below.
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
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
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
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
Composer is a dependency manager for PHP. Run the following command to install Composer:
sudo apt install composer -y
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/
Navigate to the InvoicePlane directory and install the required dependencies using Composer:
cd /var/www/html/InvoicePlane
sudo composer install
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',
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}');
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.
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
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.
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!
Alternatively, for the best virtual desktop, try Shells!