How to Install InvoicePlane on Ubuntu Server Latest
InvoicePlane is a free and open-source invoicing and billing software tool that allows you to manage clients, quotes, invoices, and payments in a single platform. Here's how to install InvoicePlane on Ubuntu Server Latest.
Prerequisites
Before installing InvoicePlane, ensure that you have the following prerequisites:
- A running Ubuntu Server Latest version
- An SSH client such as PuTTY
- A non-root user with sudo privileges
Step 1: Update your server
Update your server's package list and upgrade the existing packages by running the following commands:
sudo apt update
sudo apt upgrade
Step 2: Install Apache webserver
Install the Apache webserver on your Ubuntu Server by running the following command:
sudo apt install apache2
Step 3: Install PHP
Install PHP version 5.5 or higher and its required modules by running the following command:
sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-zip php-xml php-mbstring
Step 4: Install MySQL
Install the MySQL server by running the following command:
sudo apt install mysql-server
During the installation process, you will be prompted to set up a root password for your MySQL server.
Step 5: Create a MySQL database for InvoicePlane
Create a new database for InvoicePlane, a new MySQL user and grant the user with full privileges to the database by running the following command:
mysql -uroot -p
Replace root with your MySQL root user and enter the MySQL root password. Run the following commands:
CREATE DATABASE invoiceplane;
CREATE USER 'invoiceplaneuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON invoiceplane.* TO 'invoiceplaneuser'@'localhost' WITH GRANT OPTION;
EXIT;
Step 6: Download and Extract InvoicePlane
Download and install InvoicePlane by running the following commands:
cd /var/www/html
sudo wget https://github.com/InvoicePlane/InvoicePlane/releases/download/v1.5.11/InvoicePlane-v1.5.11.zip
sudo unzip InvoicePlane-v1.5.11.zip
sudo mv InvoicePlane-v1.5.11 invoiceplane
Step 7: Configure Apache
Create a new virtual host configuration file for InvoicePlane by running the following command:
sudo nano /etc/apache2/sites-available/invoiceplane.conf
Add the following to the file and replace example.com with your domain name:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/html/invoiceplane/public
<Directory /var/www/html/invoiceplane/public>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/invoiceplane_error.log
CustomLog ${APACHE_LOG_DIR}/invoiceplane_access.log combined
</VirtualHost>
Save and close the file by pressing Ctrl + X, Y, and Enter.
Enable the new virtual host configuration file by running the following command:
sudo a2ensite invoiceplane.conf
Restart the Apache server by running the following command:
sudo service apache2 restart
Step 8: Install InvoicePlane
Open your web browser and navigate to your InvoicePlane installation URL. The web-based installation wizard will start guiding you through the installation process.
- Choose your language and hit "Next"
- Check the system requirements and make sure everything is green
- Enter your database details (database name, username, password) and hit "Next"
- Fill in the required fields for the Admin account to access InvoicePlane and hit "Next"
- Verify the installation summary and hit "Install Now"
After a few seconds, the installation process will be completed, and you should see the InvoicePlane dashboard page.
Conclusion
You've successfully installed InvoicePlane on your Ubuntu Server Latest version. You can now set up your clients, create invoices, and manage payments using the InvoicePlane platform.